================
@@ -1187,6 +1187,9 @@ extern __inline int
     __attribute__((__gnu_inline__, __always_inline__, __artificial__))
     _mm_movemask_pd(__m128d __A) {
 #ifdef _ARCH_PWR10
+#ifdef __BIG_ENDIAN__
+  __A = vec_reve(__A);
+#endif
----------------
pkubaj wrote:

My version uses 2 instructions everywhere that take 10 cycles. Switching to 
vbpermq would make it take 3 instructions on FreeBSD and Linux, 4 instructions 
on AIX and 15 cycles on FreeBSD and Linux, 21 cycles on AIX.

https://github.com/llvm/llvm-project/pull/224328
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to