Debian Codegraph @

gcc/testsuite/gcc.target/mips/mult-8.c

raw
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" } } */
9
10 typedef int DI __attribute__((mode(DI)));
11 typedef int SI __attribute__((mode(SI)));
12
13 MIPS16 DI
14 f (SI x, SI y)
15 {
16 return (DI) x * y;
17 }