* Mainline merge as of 2006-02-16 (@111136).
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20011219-2.c
blob2ad7eb1a372f3bfa0ccff5ecd6c569e927f472d7
1 /* This testcase failed on Alpha at -O2 when simplifying conditional
2 expressions. */
4 struct S {
5 unsigned long a;
6 double b, c;
7 };
9 extern double bar (double, double);
11 int
12 foo (unsigned long x, unsigned int y, struct S *z)
14 unsigned int a = z->a;
15 int b = y / z->a > 1 ? y / z->a : 1;
17 a = y / b < z->a ? y / b : z->a;
18 z->c = z->b * bar ((double) a, (double) x);
19 return 0;