]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a missing ifdef, whose absence caused build breakage on non-POWER targets.
authorJulian Seward <jseward@acm.org>
Tue, 10 Nov 2020 20:10:48 +0000 (21:10 +0100)
committerJulian Seward <jseward@acm.org>
Tue, 10 Nov 2020 20:10:48 +0000 (21:10 +0100)
VEX/priv/guest_ppc_helpers.c

index 45dce63512defcfe124d30cec47dbc6727a6b6c9..ac4d7044a81f09cec42a7b7f0609a3e9af409827 100644 (file)
@@ -1112,12 +1112,16 @@ static ULong reinterpret_double_as_long( Double input )
 
 static Double conv_f16_to_double( ULong input )
 {
-  // This all seems to be very alignment sensitive??
-  __attribute__ ((aligned (64))) ULong src;
-  __attribute__ ((aligned (64))) Double result;
-  src = input;
-  __asm__ __volatile__ ("xscvhpdp %x0,%x1" : "=wa" (result) : "wa" (src));
-  return result;
+#  if defined(__powerpc__)
+   // This all seems to be very alignment sensitive??
+   __attribute__ ((aligned (64))) ULong src;
+   __attribute__ ((aligned (64))) Double result;
+   src = input;
+   __asm__ __volatile__ ("xscvhpdp %x0,%x1" : "=wa" (result) : "wa" (src));
+   return result;
+#  else
+   return 0.0;
+#  endif
 }