OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mips-sched-madd.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* 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" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.