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-*-* } } */
12 void bar(double x
, double y
)
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
;