blob: 00ebd2ae36d5ff9f2c1a2125e3db5a3651354d16 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct B { unsigned bit0 : 1; unsigned bit1 : 1; };
void
bar (struct B *b, int x)
{
b->bit0 |= x;
}
/* This fails to combine in 32bit mode but not for x32. */
/* { dg-final { scan-assembler-times "and" 1 { xfail { { ! x32 } && ilp32 } } } } */
/* { dg-final { scan-assembler-times "or" 1 { xfail { { ! x32 } && ilp32 } } } } */