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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [mips/] [madd-7.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-O2 -march=5kc" } */
2
/* { dg-final { scan-assembler-not "\tmul\t" } } */
3
/* { dg-final { scan-assembler "\tmadd\t" } } */
4
 
5
NOMIPS16 int
6
f1 (int *a, int *b, int n)
7
{
8
  int x, i;
9
 
10
  x = 0;
11
  for (i = 0; i < n; i++)
12
    x += a[i] * b[i];
13
  return x;
14
}

powered by: WebSVN 2.1.0

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