summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr43107.c
blob: 879652931167ef5068e718ee46633abe3e5ab16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR target/43107 */
/* { dg-do compile } */
/* { dg-options "-O3 -mavx" } */

extern void bar (float b[4][4]);

void
foo ()
{
  float a[4][4], b[4][4];
  int i, j;
  for (i = 0; i < 4; i++)
    {
      for (j = 0; j < 4; j++)
	a[i][j] = 0;
      for (j = 0; j < 4; j++)
	b[i][j] = a[i][j];
    }
  bar (b);
}