* gcc.dg/const-elim-1.c: Remove xfail for xtensa-*-*.
[official-gcc.git] / gcc / testsuite / gcc.dg / i386-sse-10.c
blob688ae0f8e45e52ab82263c433dc4faa60a2c2b36
1 /* PR 17930 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args" } */
5 #include "i386-cpuid.h"
7 typedef _Complex double complex_16;
9 void NOINLINE
10 test (complex_16 a[5][5])
12 int i, j, k;
13 complex_16 x;
15 for (j = 0; j < 5; j++)
16 for (i = 0; i < 5; i++)
18 for (k = 0; k < j - 1; ++k)
19 x = a[k][i] * ~a[k][j];
20 a[j][i] = x;
24 int main()
26 static complex_16 work[5][5];
27 unsigned long cpu_facilities;
29 cpu_facilities = i386_cpuid ();
30 if (cpu_facilities & bit_SSE2)
31 test (work);
33 return 0;