Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / mips / mips-sched-madd.c
blob92f14e1f3bcff2c517c8613469c8df061d29f00e
1 /* Test for case where another independent multiply insn may interfere
2 with a macc chain. */
3 /* { dg-do compile } */
4 /* { dg-mips-options "-Os -march=24kf" } */
6 NOMIPS16 int foo (int a, int b, int c, int d, int e, int f, int g)
8 int temp;
9 int acc;
11 acc = a * b;
12 temp = a * c;
13 acc = d * e + acc;
14 acc = f * g + acc;
15 return acc > temp ? acc : temp;
18 /* { dg-final { scan-assembler "\tmult\t" } } */
19 /* { dg-final { scan-assembler "\tmadd\t" } } */