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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [wmul-4.c] - Blame information for rev 764

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target arm_dsp } */
3
/* { dg-options "-O1 -fexpensive-optimizations" } */
4
 
5
int mac(const int *a, const int *b, long long sqr, long long *sum)
6
{
7
  int i;
8
  long long dotp = *sum;
9
 
10
  for (i = 0; i < 150; i++) {
11
    dotp += (long long) b[i] * a[i];
12
    sqr += (long long) b[i] * b[i];
13
  }
14
 
15
  *sum = dotp;
16
  return sqr;
17
}
18
 
19
/* { dg-final { scan-assembler-times "smlal" 2 } } */

powered by: WebSVN 2.1.0

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