https://bugs.kde.org/show_bug.cgi?id=427404

--- Comment #17 from Carl Love <c...@us.ibm.com> ---
The following commit was made to fix an issue with the functional support ISA
3.1 for reduced precision outer product operations support.

https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=eb82a294573d15c1be663673d55b559a82ca29d3

commit eb82a294573d15c1be663673d55b559a82ca29d3
Author: Julian Seward <jsew...@acm.org>
Date:   Tue Nov 10 21:10:48 2020 +0100

    Add a missing ifdef, whose absence caused build breakage on non-POWER
targets.

Diff:
---
 VEX/priv/guest_ppc_helpers.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

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
 }


______________________

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to