1 /* { dg-do assemble } */
2 /* { dg-options "-Os -fdump-tree-ivopts -save-temps" } */
4 extern unsigned int foo2 (short*) __attribute__((pure
));
7 tr3 (short array
[], unsigned int n
)
11 for (x
= 0; x
< n
; ++x
)
12 sum
+= foo2 (&array
[x
]);
16 /* { dg-final { scan-tree-dump-times "PHI <ivtmp" 1 "ivopts"} } */
17 /* { dg-final { scan-tree-dump-times "PHI <x" 0 "ivopts"} } */
18 /* { dg-final { scan-tree-dump-times ", x" 0 "ivopts"} } */
19 /* { dg-final { object-size text <= 30 { target arm_thumb2 } } } */