PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ldist-1a.c
blob623aacfdbf5e0dfa83edc797de4dfb4caada651c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
4 int foo (int * __restrict__ ia,
5 int * __restrict__ ib,
6 int * __restrict__ oxa,
7 int * __restrict__ oxb)
9 int i;
10 int oya[52], oyb[52];
12 for (i=0; i < 52; i++)
14 oya[i] = (ia[i] * oxa[i] + ib[i] * oxb[i]) >> 10;
15 oyb[i] = (-ia[i] * oxb[i] + ib[i] * oxa[i]) >> 10;
18 return oya[22] + oyb[21];
21 /* { dg-final { scan-tree-dump-times "distributed: split to 2 loops" 0 "ldist" } } */
22 /* { dg-final { cleanup-tree-dump "ldist" } } */