Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr37248-2.c
blob3ea4d669393af0e1416731d737c7c5ae1d91eccc
1 /* PR middle-end/37248 */
2 /* { dg-do compile { target { ! default_packed } } } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 struct S
7 unsigned char a : 1;
8 unsigned char b : 1;
9 unsigned char c : 1;
10 unsigned int d : 26;
11 unsigned char e : 1;
12 unsigned char f : 1;
13 unsigned char g : 1;
14 } s;
16 int
17 foo (struct S x)
19 return x.a && x.g && x.b && x.f && x.c && x.e;
22 /* { dg-final { scan-tree-dump "& (3758096391|0x0e0000007);" "optimized" } } */
23 /* { dg-final { scan-tree-dump "== (3758096391|0x0e0000007);" "optimized" } } */
24 /* { dg-final { cleanup-tree-dump "optimized" } } */