1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse2 -march=k8" } */
3 /* { dg-final { scan-assembler "andps\[^\\n\]*magic" } } */
4 /* { dg-final { scan-assembler "andnps\[^\\n\]*magic" } } */
5 /* { dg-final { scan-assembler "xorps\[^\\n\]*magic" } } */
6 /* { dg-final { scan-assembler "orps\[^\\n\]*magic" } } */
7 /* { dg-final { scan-assembler-not "movdqa" } } */
8 /* { dg-final { scan-assembler "movaps\[^\\n\]*magic" } } */
10 /* Verify that we generate proper instruction with memory operand. */
12 #include <xmmintrin.h>
14 __m128 magic_a
, magic_b
;
18 return _mm_and_ps (magic_a
,magic_b
);
23 return _mm_andnot_ps (magic_a
,magic_b
);
28 return _mm_or_ps (magic_a
,magic_b
);
33 return _mm_xor_ps (magic_a
,magic_b
);