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 "andpd\[^\\n\]*magic" } } */
6 /* { dg-final { scan-assembler "andnpd\[^\\n\]*magic" } } */
7 /* { dg-final { scan-assembler "xorpd\[^\\n\]*magic" } } */
8 /* { dg-final { scan-assembler "orpd\[^\\n\]*magic" } } */
9 /* { dg-final { scan-assembler-not "movdqa" } } */
10 /* { dg-final { scan-assembler "movapd\[^\\n\]*magic" } } */
12 /* Verify that we generate proper instruction with memory operand. */
14 #include <xmmintrin.h>
16 static __m128d magic_a
, magic_b
;
21 return _mm_and_pd (magic_a
,magic_b
);
26 return _mm_andnot_pd (magic_a
,magic_b
);
31 return _mm_or_pd (magic_a
,magic_b
);
36 return _mm_xor_pd (magic_a
,magic_b
);