blob: 1d7748bccc4ed70b3ddb84edab00654ac4415a5e [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 {\tand[lq]} 1 { xfail { { ! x32 } && ilp32 } } } } */
/* { dg-final { scan-assembler-times {\tor} 1 { xfail { { ! x32 } && ilp32 } } } } */