1 /* PR rtl-optimization/21239 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O2 -msse2" } */
5 #include "i386-cpuid.h"
7 extern void abort (void);
10 foo (unsigned int x
, double *y
, const double *z
)
15 tmp
= _mm_load_sd (z
);
16 _mm_store_sd (y
, tmp
);
21 void __attribute__((noinline
))
26 for (i
= 0; i
< 16; ++i
)
32 for (i
= 0; i
< 16; ++i
)
42 unsigned long cpu_facilities
;
46 cpu_facilities
= i386_cpuid ();
48 if ((cpu_facilities
& (bit_MMX
| bit_SSE
| bit_SSE2
| bit_CMOV
))
49 != (bit_MMX
| bit_SSE
| bit_SSE2
| bit_CMOV
))
50 /* If host has no vector support, pass. */