2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ssetype-3.c
blobc2eff2be1348a09ec7d0c10968f9791331899e83
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;
17 __m128
18 t1(void)
20 return _mm_and_ps (magic_a,magic_b);
22 __m128
23 t2(void)
25 return _mm_andnot_ps (magic_a,magic_b);
27 __m128
28 t3(void)
30 return _mm_or_ps (magic_a,magic_b);
32 __m128
33 t4(void)
35 return _mm_xor_ps (magic_a,magic_b);