comparison gcc/testsuite/gcc.dg/tree-ssa/pr93582-4.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 /* PR tree-optimization/93582 */
2 /* { dg-do compile { target int32 } } */
3 /* { dg-options "-O2 -fdump-tree-fre1" } */
4 /* { dg-final { scan-tree-dump "return -1991560811;" "fre1" { target le } } } */
5 /* { dg-final { scan-tree-dump "return -733324916;" "fre1" { target be } } } */
6
7 union U {
8 struct S { int a : 1, b : 4, c : 27; } s;
9 unsigned int i;
10 };
11 struct A { char a[24]; union U u; };
12 void bar (struct A *);
13
14 int
15 foo (void)
16 {
17 struct A a;
18 bar (&a);
19 a.u.s.a = -1;
20 a.u.s.b = -6;
21 a.u.s.c = -62236276;
22 return a.u.i;
23 }