gcc/testsuite/gcc.target/h8300/pr17306-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mh -O2 -w" } */ |
| 3 | /* { dg-final { scan-assembler-times ":8" 2 } } */ |
| 4 | |
| 5 | |
| 6 | struct x { |
| 7 | char x; |
| 8 | char y; |
| 9 | }; |
| 10 | |
| 11 | void oof (void); |
| 12 | |
| 13 | struct x __attribute__ ((eightbit_data)) foo; |
| 14 | |
| 15 | int bar () |
| 16 | { |
| 17 | if ((foo.y & 0x80) != 0) |
| 18 | oof (); |
| 19 | } |
| 20 | |
| 21 | int com () |
| 22 | { |
| 23 | if ((foo.x & 0x80) != 0) |
| 24 | oof (); |
| 25 | } |