gcc/testsuite/gcc.target/arm/thumb-comparisons.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mthumb -Os" } */ |
| 3 | /* { dg-require-effective-target arm_thumb1_ok } */ |
| 4 | |
| 5 | int foo(char ch) |
| 6 | { |
| 7 | switch (ch) { |
| 8 | case '-': |
| 9 | case '?': |
| 10 | case '/': |
| 11 | case 99: |
| 12 | return 1; |
| 13 | default: |
| 14 | return 0; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-assembler-times "cmp\[\\t \]*r.,\[\\t \]*#63" 1 } } */ |