1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse2 -march=k8" } */
3 /* { dg-final { scan-assembler "andps" } } */
4 /* { dg-final { scan-assembler "andnps" } } */
5 /* { dg-final { scan-assembler "xorps" } } */
6 /* { dg-final { scan-assembler "orps" } } */
8 /* Verify that we generate proper instruction without memory operand. */
10 #include <xmmintrin.h>
12 t1(__m128 a
, __m128 b
)
16 return _mm_and_ps (a
,b
);
19 t2(__m128 a
, __m128 b
)
23 return _mm_andnot_ps (a
,b
);
26 t3(__m128 a
, __m128 b
)
30 return _mm_or_ps (a
,b
);
33 t4(__m128 a
, __m128 b
)
37 return _mm_xor_ps (a
,b
);