annotate gcc/testsuite/gcc.dg/tree-ssa/loop-31.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR 32283 */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4 /* { dg-options "-O1 -fdump-tree-optimized" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 short a[(2048)];
kono
parents:
diff changeset
7 short foo (int len, int v)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 int i;
kono
parents:
diff changeset
10 for (i = 0; i < len; i++) {
kono
parents:
diff changeset
11 a[i] = v;
kono
parents:
diff changeset
12 }
kono
parents:
diff changeset
13 return a[0];
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 /* When we do not have addressing mode including multiplication,
kono
parents:
diff changeset
17 the memory access should be strength-reduced. */
kono
parents:
diff changeset
18 /* { dg-final { scan-tree-dump-times " \\+ 2;" 1 "optimized" { target arm*-*-* } } } */
kono
parents:
diff changeset
19 /* { dg-final { scan-tree-dump-times " \\+ 2;" 1 "optimized" { target { ia64-*-* && ilp32 } } } } */
kono
parents:
diff changeset
20 /* { dg-final { scan-tree-dump-times " \\+ 2;" 2 "optimized" { target { ia64-*-* && lp64 } } } } */