* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-ssetype-2.c
blobeb57dac7813e1b26b6099a88671d238cc9a00699
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2 -msse2 -march=k8" } */
3 /* { dg-final { scan-assembler "andpd" } } */
4 /* { dg-final { scan-assembler "andnpd" } } */
5 /* { dg-final { scan-assembler "xorpd" } } */
6 /* { dg-final { scan-assembler "orpd" } } */
7 /* { dg-final { scan-assembler-not "movdqa" } } */
9 /* Verify that we generate proper instruction without memory operand. */
11 #include <xmmintrin.h>
12 __m128d
13 t1(__m128d a, __m128d b)
15 a=_mm_sqrt_pd(a);
16 b=_mm_sqrt_pd(b);
17 return _mm_and_pd (a,b);
19 __m128d
20 t2(__m128d a, __m128d b)
22 a=_mm_sqrt_pd(a);
23 b=_mm_sqrt_pd(b);
24 return _mm_andnot_pd (a,b);
26 __m128d
27 t3(__m128d a, __m128d b)
29 a=_mm_sqrt_pd(a);
30 b=_mm_sqrt_pd(b);
31 return _mm_or_pd (a,b);
33 __m128d
34 t4(__m128d a, __m128d b)
36 a=_mm_sqrt_pd(a);
37 b=_mm_sqrt_pd(b);
38 return _mm_xor_pd (a,b);