annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-86.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-fre1" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 int foo(int *p, int b, float *q)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 int tem;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 if (b)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 *q = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 tem = *p;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 else
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 *q = 1;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 tem = *p;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 return *p - tem;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
20 /* { dg-final { scan-tree-dump "return 0;" "fre1" } } */