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

--- Comment #13 from [email protected] ---
I've just found that __attribute__((force_align_arg_pointer)) [Use this
attribute to force stack alignment.] helps as well as __attribute__((optnone))
:

-------- 8< -------
$ git diff
diff --git a/VEX/priv/guest_generic_helpers.h
b/VEX/priv/guest_generic_helpers.h
index 3584b7c2d..026d5db7a 100644
--- a/VEX/priv/guest_generic_helpers.h
+++ b/VEX/priv/guest_generic_helpers.h
@@ -116,6 +116,13 @@ static inline ULong sad_8x4 ( ULong xx, ULong yy )
 }

 /* CALLED FROM GENERATED CODE: CLEAN HELPER */
+#if defined(__clang__)
+// Work around https://bugs.kde.org/show_bug.cgi?id=523626
+// It would be sufficient to disable slp-vectorizer, but
+// clang can only disable all or nothing, it seems:
+// __attribute__((optnone))
+__attribute__((force_align_arg_pointer))
+#endif
 static inline ULong g_calc_mpsadbw ( ULong sHi, ULong sLo,
                                ULong dHi, ULong dLo,
                                ULong imm_and_return_control_bit )
$ 
-------- 8< -------

https://clang.llvm.org/docs/AttributeReference.html#force-align-arg-pointer

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

Reply via email to