Debian Codegraph @

gcc/testsuite/gcc.target/mips/mips-sched-madd.c

raw
1 /* Test for case where another independent multiply insn may interfere
2 with a macc chain. */
3 /* { dg-do compile } */
4 /* { dg-options "-march=24kf" } */
5 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
6
7 NOMIPS16 int foo (int a, int b, int c, int d, int e, int f, int g)
8 {
9 int temp;
10 int acc;
11
12 acc = a * b;
13 temp = a * c;
14 acc = d * e + acc;
15 acc = f * g + acc;
16 return acc > temp ? acc : temp;
17 }
18
19 /* { dg-final { scan-assembler "\tmult\t" } } */
20 /* { dg-final { scan-assembler "\tmadd\t" } } */