Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.target / i386 / sse-10.c
blob8c0f28ff8d6233df2426a6a164c2c16f14d067aa
1 /* PR 17930 */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
5 #include "../../gcc.dg/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;