summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
blob: 4160b203e36b304786a4206ca26ce4f3c6efadb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -enable-unsafe-fp-math -march=x86 | grep jp
; rdar://5902801

declare void @test2()

define i32 @test(double %p) nounwind {
	%tmp5 = fcmp uno double %p, 0.000000e+00
	br i1 %tmp5, label %bb, label %UnifiedReturnBlock
bb:
	call void @test2()
	ret i32 17
UnifiedReturnBlock:
	ret i32 42
}