1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
4 int foo (int * __restrict__ ia
,
6 int * __restrict__ oxa
,
7 int * __restrict__ oxb
)
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" } } */