annotate gcc/testsuite/gcc.dg/tree-ssa/20030824-1.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +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 "-O1 -fdump-tree-optimized" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct A
kono
parents:
diff changeset
5 {
kono
parents:
diff changeset
6 int a,b;
kono
parents:
diff changeset
7 };
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int foo (int x, int y)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 int i, j;
kono
parents:
diff changeset
12 struct A a,b;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 a.a = x;
kono
parents:
diff changeset
15 b.b = y;
kono
parents:
diff changeset
16 j = a.a;
kono
parents:
diff changeset
17 i = b.b;
kono
parents:
diff changeset
18 return i + j;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* The addition should be optimized into 'y+x'. */
kono
parents:
diff changeset
22 /* { dg-final { scan-tree-dump-times "\[xy\]_..D. \\+ \[xy]_..D." 1 "optimized"} } */