summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll')
-rw-r--r--test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll b/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
new file mode 100644
index 000000000000..d7b5f25de6c9
--- /dev/null
+++ b/test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -enable-unsafe-fp-math -march=x86 | grep jnp
+; 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
+}
+