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.c-torture/] [execute/] [pr27073.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
void __attribute__((noinline))
2
foo (int *p, int d1, int d2, int d3,
3
     short count, int s1, int s2, int s3, int s4, int s5)
4
{
5
  int n = count;
6
  while (n--)
7
    {
8
      *p++ = s1;
9
      *p++ = s2;
10
      *p++ = s3;
11
      *p++ = s4;
12
      *p++ = s5;
13
    }
14
}
15
 
16
int main()
17
{
18
  int x[10], i;
19
 
20
  foo (x, 0, 0, 0, 2, 100, 200, 300, 400, 500);
21
  for (i = 0; i < 10; i++)
22
    if (x[i] != (i % 5 + 1) * 100)
23
      abort ();
24
  exit (0);
25
}

powered by: WebSVN 2.1.0

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