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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011219-2.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* This testcase failed on Alpha at -O2 when simplifying conditional
2
   expressions.  */
3
 
4
struct S {
5
  unsigned long a;
6
  double b, c;
7
};
8
 
9
extern double bar (double, double);
10
 
11
int
12
foo (unsigned long x, unsigned int y, struct S *z)
13
{
14
  unsigned int a = z->a;
15
  int b = y / z->a > 1 ? y / z->a : 1;
16
 
17
  a = y / b < z->a ? y / b : z->a;
18
  z->c = z->b * bar ((double) a, (double) x);
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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