blob: a21ee4d8c267a8d6408964ebbfe034476cbcad53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-optimized" } */
int
foo (int a[], int b[], int i)
{
a[i] = b[i] + 2;
i++;
a[i] = b[i] + 2;
i++;
a[i] = b[i] + 2;
i++;
a[i] = b[i] + 2;
i++;
return i;
}
/* { dg-final { scan-tree-dump-times "\\* 4" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\\+ 4" 2 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\\+ 8" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\\+ 12" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|