merge from 3.3.2 release branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20031009-1.c
blob696d574daf9b066cc0412885905e1966403f55c7
1 /* PR optimization/12510 */
2 /* Origin: Lars Skovlund <lskovlun@image.dk> */
3 /* Reduced testcase by Volker Reichelt <reichelt@igpm.rwth-aachen.de> */
5 /* Verify that one splitting pass is not missing on x86 at -O1 */
7 /* { dg-do compile } */
8 /* { dg-options "-O -mcpu=i686" { target i?86-*-* } } */
10 extern foo(double);
12 void bar(double x, double y)
14 foo (x);
15 if (y) x = y ? 0 : 1/y;
16 else if (y) x = y < 1 ? 1 : y;
17 else x = 1/y < 1 ? 1 : x;
18 foo (x);