SH: Fix outage caused by recently added 2nd combine pass after reg alloc
[official-gcc.git] / gcc / testsuite / gcc.target / mips / mult-8.c
blob18dce2013d6a1021fb10dd0826318ac922d1bba1
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 "\tmult\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 int DI __attribute__((mode(DI)));
11 typedef int SI __attribute__((mode(SI)));
13 MIPS16 DI
14 f (SI x, SI y)
16 return (DI) x * y;