2018-07-12 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr45739.c
blobbb36318a51c9dd56792b5cfcd0361f4f745e68a6
1 /* PR rtl-optimization/45739 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -msse2" } */
5 #include <emmintrin.h>
7 __m128i var;
9 void
10 foo (void)
12 __m128i zero = _mm_setzero_si128 ();
13 var = _mm_xor_si128 (zero, var);
16 void
17 bar (void)
19 __m128i zero = _mm_setzero_si128 ();
20 var = _mm_or_si128 (var, zero);
23 /* { dg-final { scan-assembler-not "pxor\[^\n\]*xmm" } } */
24 /* { dg-final { scan-assembler-not "por\[^\n\]*xmm" } } */