annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-14.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 /* { dg-do compile } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-options "-O2 -fdump-tree-sink" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 int x;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 void foo (int b)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 if (b)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 x = b;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 else
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 x = 2;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 /* We should have sunk the store and inserted a PHI to merge the
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 stored values. */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 /* { dg-final { scan-tree-dump-times " = PHI" 1 "sink" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 /* { dg-final { scan-tree-dump-times "x = " 1 "sink" } } */