1 /* PR debug/48159 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-loop-distribution -fcompare-debug" } */
4 
foo(int * __restrict__ ia,int * __restrict__ ib,int * __restrict__ oxa,int * __restrict__ oxb)5 int foo (int * __restrict__ ia, int * __restrict__ ib,
6 	 int * __restrict__ oxa, int * __restrict__ oxb)
7 {
8   int i;
9   int oya[52], oyb[52];
10   for (i = 0; i < 52; i++)
11     {
12       int w1 = ia[i];
13       int w2 = oxa[i];
14       int w3 = ib[i];
15       int w4 = oxb[i];
16       int w5 = w1 + w2 + 5;
17       oya[i] = (w1 * w2) >> 10;
18       int w6 = w3 + w4 + 6;
19       oyb[i] = (w3 * w4) >> 10;
20     }
21   return oya[22] + oyb[21];
22 }
23