From: Julian Seward Date: Tue, 10 Nov 2020 20:10:48 +0000 (+0100) Subject: Add a missing ifdef, whose absence caused build breakage on non-POWER targets. X-Git-Tag: VALGRIND_3_17_0~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb82a294573d15c1be663673d55b559a82ca29d3;p=thirdparty%2Fvalgrind.git Add a missing ifdef, whose absence caused build breakage on non-POWER targets. --- diff --git a/VEX/priv/guest_ppc_helpers.c b/VEX/priv/guest_ppc_helpers.c index 45dce63512..ac4d7044a8 100644 --- a/VEX/priv/guest_ppc_helpers.c +++ b/VEX/priv/guest_ppc_helpers.c @@ -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 }