gcc/testsuite/gcc.target/i386/pr18041-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | struct B { unsigned bit0 : 1; unsigned bit1 : 1; }; |
| 5 | |
| 6 | void |
| 7 | foo (struct B *b) |
| 8 | { |
| 9 | b->bit0 = b->bit0 | b->bit1; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler-times {\tand[l|q]} 1 } } */ |
| 13 | /* { dg-final { scan-assembler-times {\tor[l|q]} 1 } } */ |