gcc/testsuite/gcc.target/m68k/pr54555.c
raw| 1 | /* PR rtl-optimization/54555 |
| 2 | Test that postreload does not shorten the load of small constants to |
| 3 | use move.b instead of moveq. */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-O2" } */ |
| 6 | /* { dg-final { scan-assembler-not "move\\.?b" } } */ |
| 7 | |
| 8 | void foo (void); |
| 9 | void bar (int a) |
| 10 | { |
| 11 | if (a == 16 || a == 23) foo (); |
| 12 | if (a == -110 || a == -128) foo (); |
| 13 | } |