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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
int y;
5
extern int foo (int, ...) __attribute__((pure));
6
 
7
int
8
zzz (char *s1, char *s2, int len, int *q, int c)
9
{
10
  int z = 5;
11
  unsigned int i, b;
12
  struct s { char a[z]; };
13
  struct s x;
14
  int y_tmp = 5;
15
 
16
  for (i = 0; i < len; i++)
17
    s1[i] = s2[i];
18
 
19
  b = z & 0x3;
20
 
21
  len += (b == 0 ? 0 : 1) + z;
22
 
23
  *q = len;
24
 
25
 if (c)
26
   y_tmp = foo (z, x, x) + 4;
27
 
28
 z = foo (z, x, x) + 4;
29
 y = y_tmp;
30
 
31
 return  z;
32
}

powered by: WebSVN 2.1.0

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