OSDN Git Service

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