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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20081203-1.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR rtl-optimization/38281 */
2
/* Reporter: John Regehr <regehr@cs.utah.edu> */
3
/* Testcase by Jakub Jelinek <jakub@redhat.com> */
4
 
5
inline unsigned short
6
foo (unsigned short x, unsigned short y)
7
{
8
  if (y == 0)
9
    return x;
10
  return x / y;
11
}
12
 
13
unsigned short a, b, c;
14
 
15
extern int baz (int, int);
16
 
17
void
18
bar (void)
19
{
20
  int d = 0x3D75D162;
21
  a = foo (b > d, baz (0, 1));
22
  for (c = 0; c; c = 1)
23
    ;
24
}

powered by: WebSVN 2.1.0

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