gcc/testsuite/gcc.c-torture/compile/20090328-1.c
raw| 1 | union loc { unsigned reg; signed offset; }; |
| 2 | void __frame_state_for (volatile char *state_in, int x) |
| 3 | { |
| 4 | /* We should move all the loads out of this loop. Right now, we only |
| 5 | move one. It takes two insertions because we insert a cast. */ |
| 6 | union loc fs; |
| 7 | int reg; |
| 8 | for (;;) { |
| 9 | switch (x) { |
| 10 | case 0: |
| 11 | *state_in = fs.reg; |
| 12 | case 1: |
| 13 | *state_in = fs.offset; |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 |