blob: 2960c6b4d1e194886197f6e7cef0719367df2cf0 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep set
2
3declare bool %llvm.isunordered.f32(float, float)
4
5float %cmp(float %A, float %B, float %C, float %D) {
6entry:
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}