diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/mult-17.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mult-17.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/mult-17.c b/gcc/testsuite/gcc.target/mips/mult-17.c new file mode 100644 index 00000000000..3539f63d96a --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/mult-17.c @@ -0,0 +1,13 @@ +/* { dg-options "-O -mgp32 (-mips16)" } */ +/* { dg-final { scan-assembler "\tmultu\t" } } */ +/* { dg-final { scan-assembler-not "\tmflo\t" } } */ +/* { dg-final { scan-assembler "\tmfhi\t" } } */ + +typedef unsigned int DI __attribute__((mode(DI))); +typedef unsigned int SI __attribute__((mode(SI))); + +MIPS16 SI +f (SI x, SI y) +{ + return ((DI) x * y) >> 32; +} |