3 /* { dg-do compile } */
4 /* { dg-options "-O1 -fdump-tree-optimized" } */
7 short foo (int len
, int v
)
10 for (i
= 0; i
< len
; i
++) {
16 /* When we do not have addressing mode including multiplication,
17 the memory access should be strength-reduced. */
18 /* { dg-final { scan-tree-dump-times " \\+ 2;" 1 "optimized" { target arm*-*-* } } } */
19 /* { dg-final { scan-tree-dump-times " \\+ 2;" 1 "optimized" { target { ia64-*-* && ilp32 } } } } */
20 /* { dg-final { scan-tree-dump-times " \\+ 2;" 2 "optimized" { target { ia64-*-* && lp64 } } } } */