Add AMD SSE5 support; Add iterator over function arguments; Add stdarg_p, prototype_p...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ssetype-4.c
blob9994b07f21c66b489cfbd014c54fe44260bc5d51
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -msse2 -march=k8" } */
3 /* { dg-final { scan-assembler "andps" } } */
4 /* { dg-final { scan-assembler "andnps" } } */
5 /* { dg-final { scan-assembler "xorps" } } */
6 /* { dg-final { scan-assembler "orps" } } */
8 /* Verify that we generate proper instruction without memory operand. */
10 #include <xmmintrin.h>
11 __m128
12 t1(__m128 a, __m128 b)
14 a=_mm_sqrt_ps(a);
15 b=_mm_sqrt_ps(b);
16 return _mm_and_ps (a,b);
18 __m128
19 t2(__m128 a, __m128 b)
21 a=_mm_sqrt_ps(a);
22 b=_mm_sqrt_ps(b);
23 return _mm_andnot_ps (a,b);
25 __m128
26 t3(__m128 a, __m128 b)
28 a=_mm_sqrt_ps(a);
29 b=_mm_sqrt_ps(b);
30 return _mm_or_ps (a,b);
32 __m128
33 t4(__m128 a, __m128 b)
35 a=_mm_sqrt_ps(a);
36 b=_mm_sqrt_ps(b);
37 return _mm_xor_ps (a,b);