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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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