blob: c6bb3e030e97b6681d972035ad42da4ae8270657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-optimized" } */
extern void foo (int);
void
f (int *p, int n)
{
foo (*(p + n++ * 4));
foo (*(p + 32 + n++ * 4));
foo (*(p + 16 + n * 4));
}
/* { dg-final { scan-tree-dump-times "\\+ 144|\\, 144>" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\\+ 96|\\, 96>" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|