1 ; RUN: opt < %s -instcombine -S | grep fcmp | count 3
2 ; RUN: opt < %s -instcombine -S | grep ret | grep 0
4 define zeroext i8 @t1(float %x, float %y) nounwind {
5 %a = fcmp ueq float %x, %y
6 %b = fcmp ord float %x, %y
8 %retval = zext i1 %c to i8
12 define zeroext i8 @t2(float %x, float %y) nounwind {
13 %a = fcmp olt float %x, %y
14 %b = fcmp ord float %x, %y
16 %retval = zext i1 %c to i8
20 define zeroext i8 @t3(float %x, float %y) nounwind {
21 %a = fcmp oge float %x, %y
22 %b = fcmp uno float %x, %y
24 %retval = zext i1 %c to i8
28 define zeroext i8 @t4(float %x, float %y) nounwind {
29 %a = fcmp one float %y, %x
30 %b = fcmp ord float %x, %y
32 %retval = zext i1 %c to i8