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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mips-sched-madd.c] - Rev 321

Compare with Previous | Blame | View Log

/* Test for case where another independent multiply insn may interfere
   with a macc chain.  */
/* { dg-do compile } */
/* { dg-options "-Os -march=24kf" } */
 
NOMIPS16 int foo (int a, int b, int c, int d, int e, int f, int g)
{
  int temp;
  int acc;
 
  acc = a * b;
  temp = a * c;
  acc = d * e + acc;
  acc = f * g + acc;
  return acc > temp ? acc : temp;
}
 
/* { dg-final { scan-assembler "\tmult\t" } } */
/* { dg-final { scan-assembler "\tmadd\t" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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