annotate gcc/testsuite/gcc.dg/pr48159-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR debug/48159 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-O2 -ftree-loop-distribution -fcompare-debug" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 int foo (int * __restrict__ ia, int * __restrict__ ib,
kono
parents:
diff changeset
6 int * __restrict__ oxa, int * __restrict__ oxb)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int i;
kono
parents:
diff changeset
9 int oya[52], oyb[52];
kono
parents:
diff changeset
10 for (i = 0; i < 52; i++)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 int w1 = ia[i];
kono
parents:
diff changeset
13 int w2 = oxa[i];
kono
parents:
diff changeset
14 int w3 = ib[i];
kono
parents:
diff changeset
15 int w4 = oxb[i];
kono
parents:
diff changeset
16 int w5 = w1 + w2 + 5;
kono
parents:
diff changeset
17 oya[i] = (w1 * w2) >> 10;
kono
parents:
diff changeset
18 int w6 = w3 + w4 + 6;
kono
parents:
diff changeset
19 oyb[i] = (w3 * w4) >> 10;
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21 return oya[22] + oyb[21];
kono
parents:
diff changeset
22 }