diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/small-multiply-m0plus-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/small-multiply-m0plus-3.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/small-multiply-m0plus-3.c b/gcc/testsuite/gcc.target/arm/small-multiply-m0plus-3.c new file mode 100644 index 00000000000..75e34321ec2 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/small-multiply-m0plus-3.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target arm_thumb1_ok } */ +/* { dg-skip-if "Test is specific to cortex-m0plus.small-multiply" { arm*-*-* } { "*" } { "-mcpu=cortex-m0plus.small-multiply" } } */ +/* { dg-options "-mcpu=cortex-m0plus.small-multiply -mthumb -Os" } */ + +int +test (int a) +{ + return a * 0x13; +} + +/* { dg-final { scan-assembler-not "\[\\t \]+mul" } } */ |