Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / mult-9.c
blob59d450ab2c0eb01c50c133e06cae2b0c20dbbe93
1 /* This test requires widening_mul */
2 /* { dg-options "-mgp64 (-mips16) -fexpensive-optimizations" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-final { scan-assembler "\tmultu\t" } } */
5 /* { dg-final { scan-assembler "\tmflo\t" } } */
6 /* { dg-final { scan-assembler "\tmfhi\t" } } */
7 /* { dg-final { scan-assembler-times "\tdsll\t" 2 } } */
8 /* { dg-final { scan-assembler "\tdsrl\t" } } */
10 typedef unsigned int DI __attribute__((mode(DI)));
11 typedef unsigned int SI __attribute__((mode(SI)));
13 MIPS16 DI
14 f (SI x, SI y)
16 return (DI) x * y;