gcc/testsuite/gcc.target/arm/thumb1-Os-mult.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_thumb1_ok } */ |
| 3 | /* { dg-options "-Os" } */ |
| 4 | /* { dg-skip-if "-mpure-code generates an inline multiplication code sequence" { *-*-* } { "-mpure-code" } } */ |
| 5 | /* { dg-skip-if "" { ! { arm_thumb1 } } } */ |
| 6 | |
| 7 | int |
| 8 | mymul3 (int x) |
| 9 | { |
| 10 | return x * 0x555; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler "muls\[\\t \]*r.,\[\\t \]*r." } } */ |