[flang-commits] [flang] [PowerPC] Fix use of FPSCR builtins in smmintrin.h (PR #67299)

Qiu Chaofan via flang-commits flang-commits at lists.llvm.org
Mon Oct 23 23:10:43 PDT 2023


================
@@ -68,10 +68,10 @@ extern __inline __m128d
     __asm__("mffsce %0" : "=f"(__fpscr_save.__fr));
     __enables_save.__fpscr = __fpscr_save.__fpscr & 0xf8;
 #else
-    __fpscr_save.__fr = __builtin_mffs();
+    __fpscr_save.__fr = __builtin_ppc_mffs();
----------------
ecnelises wrote:

Should we remove `__fpscr_save.__fpscr &= 0x70007f0ffL;`? I suspect it may break some assumption of following code

https://github.com/llvm/llvm-project/pull/67299


More information about the flang-commits mailing list