1 /* PR rtl-optimization/45739 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -msse2" } */ 4 5 #include <emmintrin.h> 6 7 __m128i var; 8 9 void foo(void)10foo (void) 11 { 12 __m128i zero = _mm_setzero_si128 (); 13 var = _mm_xor_si128 (zero, var); 14 } 15 16 void bar(void)17bar (void) 18 { 19 __m128i zero = _mm_setzero_si128 (); 20 var = _mm_or_si128 (var, zero); 21 } 22 23 /* { dg-final { scan-assembler-not "pxor\[^\n\]*xmm" } } */ 24 /* { dg-final { scan-assembler-not "por\[^\n\]*xmm" } } */ 25