annotate gcc/testsuite/gcc.dg/tree-ssa/pr61607.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 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-Os -fno-tree-fre -fdump-tree-dom2" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 void foo(int *);
kono
parents:
diff changeset
5 void f2(int dst[3], int R)
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 int i, inter[2];
kono
parents:
diff changeset
8 _Bool inter0p = 0;
kono
parents:
diff changeset
9 _Bool inter1p = 0;
kono
parents:
diff changeset
10 for (i = 1; i < R; i++)
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 inter0p = 1;
kono
parents:
diff changeset
13 inter1p = 1;
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15 if (inter0p)
kono
parents:
diff changeset
16 inter[0] = 1;
kono
parents:
diff changeset
17 if (inter1p)
kono
parents:
diff changeset
18 inter[1] = 1;
kono
parents:
diff changeset
19 foo(inter);
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 /* There should be precisely two conditionals. One for the loop condition
kono
parents:
diff changeset
24 and one for the test after the loop. Previously we failed to eliminate
kono
parents:
diff changeset
25 the second conditional after the loop. */
kono
parents:
diff changeset
26 /* { dg-final { scan-tree-dump-times "if" 2 "dom2"} } */
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28