blob: 6d3736b27343bcc7a548fd8b78966e647d89aa94 [file] [log] [blame]
Evan Chenga80ea032006-01-30 23:39:40 +00001; RUN: llvm-as < %s | 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}