Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr37248-3.c
blob60ef716963aa65eaa260d6afc8c042f47d6797bd
1 /* PR middle-end/37248 */
2 /* { dg-do compile { target { ! default_packed } } } */
3 /* { dg-options "-O2 -fdump-tree-optimized -mno-ms-bitfields" } */
5 struct S
7 unsigned char a : 1;
8 unsigned char b : 1;
9 unsigned char c : 1;
10 unsigned int d : 6;
11 unsigned int e : 14;
12 unsigned int f : 6;
13 unsigned char g : 1;
14 unsigned char h : 1;
15 unsigned char i : 1;
16 } s;
18 int
19 foo (struct S x)
21 return x.a && x.i && x.b && x.h && x.c && x.g && x.e == 131;
24 /* { dg-final { scan-tree-dump "& (3766484487|0x0e07ffe07);" "optimized" } } */
25 /* { dg-final { scan-tree-dump "== (3758163463|0x0e0010607);" "optimized" } } */
26 /* { dg-final { cleanup-tree-dump "optimized" } } */