* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / intrinsics_opt-2.c
blobfb87be8cc16638c21582a0380c6534ae39410486
1 /* { dg-do compile } */
2 /* { dg-options "-O -ffast-math -msse2 -fdump-tree-optimized" } */
4 #include <emmintrin.h>
6 int f(__m128d x){
7 x = _mm_sub_pd (x, x);
8 x = _mm_mul_pd (x, x);
9 double r = 42;
10 _mm_storeh_pd (&r, x);
11 int z = r == 0;
12 return __builtin_constant_p (z) && z;
15 /* { dg-final { scan-tree-dump "return 1;" "optimized" } } */