annotate gcc/testsuite/gcc.dg/tree-ssa/pr93582-3.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 /* PR tree-optimization/93582 */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-do compile { target int32 } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* { dg-options "-O2 -fdump-tree-fre1" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 /* { dg-final { scan-tree-dump "return 1;" "fre1" { target be } } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 /* { dg-final { scan-tree-dump "return 2;" "fre1" { target le } } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 union U {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 struct S { int a : 1, b : 14, c : 17; } s;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 struct T { int d : 10; int e : 4; int f : 18; } t;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 };
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 int
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 foo (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 union U u;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 u.s.b = -7005;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 return u.t.e;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 }