Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ssetype-1.c
blobef89059b8d801e9c7d511e7b36889d2f63c8dbfa
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;
18 __m128d
19 t1(void)
21 return _mm_and_pd (magic_a,magic_b);
23 __m128d
24 t2(void)
26 return _mm_andnot_pd (magic_a,magic_b);
28 __m128d
29 t3(void)
31 return _mm_or_pd (magic_a,magic_b);
33 __m128d
34 t4(void)
36 return _mm_xor_pd (magic_a,magic_b);