1 /* { dg-do compile } */
2 /* This test checks for absolute memory operands. */
3 /* { dg-require-effective-target nonpic } */
4 /* { dg-options "-O2 -msse2 -march=k8" } */
5 /* { dg-final { scan-assembler "andps\[^\\n\]*magic" } } */
6 /* { dg-final { scan-assembler "andnps\[^\\n\]*magic" } } */
7 /* { dg-final { scan-assembler "xorps\[^\\n\]*magic" } } */
8 /* { dg-final { scan-assembler "orps\[^\\n\]*magic" } } */
9 /* { dg-final { scan-assembler-not "movdqa" } } */
10 /* { dg-final { scan-assembler "movaps\[^\\n\]*magic" } } */
12 /* Verify that we generate proper instruction with memory operand. */
14 #include <xmmintrin.h>
16 __m128 magic_a
, magic_b
;
20 return _mm_and_ps (magic_a
,magic_b
);
25 return _mm_andnot_ps (magic_a
,magic_b
);
30 return _mm_or_ps (magic_a
,magic_b
);
35 return _mm_xor_ps (magic_a
,magic_b
);