* config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
big endian.
From-SVN: r269891
+2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
+ big endian.
+
2019-03-22 Andrew Pinski <apinski@marvell.com>
* config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
#endif
return __builtin_bpermd (p, __A);
#else
+#ifdef __LITTLE_ENDIAN__
unsigned int mask = 0x20283038UL;
unsigned int r1 = __builtin_bpermd (mask, __A) & 0xf;
unsigned int r2 = __builtin_bpermd (mask, __A >> 32) & 0xf;
+#else
+ unsigned int mask = 0x38302820UL;
+ unsigned int r1 = __builtin_bpermd (mask, __A >> 32) & 0xf;
+ unsigned int r2 = __builtin_bpermd (mask, __A) & 0xf;
+#endif
return (r2 << 4) | r1;
#endif
}