* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-ssetype-3.c
blob3b2461be32cb6f460e2b422ab3b3464cf2380d42
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;
15 __m128
16 t1(void)
18 return _mm_and_ps (magic_a,magic_b);
20 __m128
21 t2(void)
23 return _mm_andnot_ps (magic_a,magic_b);
25 __m128
26 t3(void)
28 return _mm_or_ps (magic_a,magic_b);
30 __m128
31 t4(void)
33 return _mm_xor_ps (magic_a,magic_b);