Don't generate (or setp, setae) for SETUGE. Simply flip the operands around and
[oota-llvm.git] / test / CodeGen / X86 / setuge.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | not grep 'set'
2
3 declare bool %llvm.isunordered.f32(float, float)
4
5 float %cmp(float %A, float %B, float %C, float %D) {
6 entry:
7         %tmp.1 = call bool %llvm.isunordered.f32(float %A, float %B)
8         %tmp.2 = setge float %A, %B
9         %tmp.3 = or bool %tmp.1, %tmp.2
10         %tmp.4 = select bool %tmp.3, float %C, float %D
11         ret float %tmp.4
12 }