diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/powerpc/440-nmaclhw-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/440-nmaclhw-1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/440-nmaclhw-1.c b/gcc/testsuite/gcc.target/powerpc/440-nmaclhw-1.c new file mode 100644 index 000000000..1fe13b137 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/440-nmaclhw-1.c @@ -0,0 +1,14 @@ +/* Test generation of nmaclhw on 440. */ +/* Origin: Joseph Myers <joseph@codesourcery.com> */ +/* { dg-do compile } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-O2 -mcpu=440" } */ + +/* { dg-final { scan-assembler "nmaclhw " } } */ + +int +f(int a, int b, int c) +{ + a -= (short)b * (short)c; + return a; +} |