* config/xtensa/xtensa.c (function_arg): Generalize logic so that it
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-ssetype-4.c
blobe9d989ba974ed530d7059af41eacfa0c54204792
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
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);