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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr48159-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/48159 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -ftree-loop-distribution -fcompare-debug" } */
4
 
5
int foo (int * __restrict__ ia, int * __restrict__ ib,
6
         int * __restrict__ oxa, int * __restrict__ oxb)
7
{
8
  int i;
9
  int oya[52], oyb[52];
10
  for (i = 0; i < 52; i++)
11
    {
12
      int w1 = ia[i];
13
      int w2 = oxa[i];
14
      int w3 = ib[i];
15
      int w4 = oxb[i];
16
      int w5 = w1 + w2 + 5;
17
      oya[i] = (w1 * w2) >> 10;
18
      int w6 = w3 + w4 + 6;
19
      oyb[i] = (w3 * w4) >> 10;
20
    }
21
  return oya[22] + oyb[21];
22
}

powered by: WebSVN 2.1.0

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