1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse2 -march=k8" } */
3 /* { dg-final { scan-assembler "andpd" } } */
4 /* { dg-final { scan-assembler "andnpd" } } */
5 /* { dg-final { scan-assembler "xorpd" } } */
6 /* { dg-final { scan-assembler "orpd" } } */
7 /* { dg-final { scan-assembler-not "movdqa" } } */
9 /* Verify that we generate proper instruction without memory operand. */
11 #include <xmmintrin.h>
13 t1(__m128d a
, __m128d b
)
17 return _mm_and_pd (a
,b
);
20 t2(__m128d a
, __m128d b
)
24 return _mm_andnot_pd (a
,b
);
27 t3(__m128d a
, __m128d b
)
31 return _mm_or_pd (a
,b
);
34 t4(__m128d a
, __m128d b
)
38 return _mm_xor_pd (a
,b
);