OSDN Git Service

PR middle-end/29274
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / sse-10.c
1 /* PR 17930 */
2 /* { dg-do run } */
3 /* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" } */
4 /* { dg-options "-O1 -msse2 -mfpmath=sse -fno-omit-frame-pointer" { target *-*-mingw* *-*-cygwin* } } */
5
6 #include "sse2-check.h"
7
8 typedef _Complex double complex_16;
9
10 void __attribute__((noinline))
11 test (complex_16 a[5][5])
12 {
13   int i, j, k;
14   complex_16 x;
15
16   for (j = 0; j < 5; j++)
17     for (i = 0; i < 5; i++)
18       {
19         for (k = 0; k < j - 1; ++k)
20           x = a[k][i] * ~a[k][j];
21         a[j][i] = x;
22       }
23 }
24
25 static void
26 sse2_test (void)
27 {
28   static complex_16 work[5][5];
29
30   test (work); 
31 }