Rename the last test with .llx extension to .ll, resolve duplicate test by renaming...
[oota-llvm.git] / test / CodeGen / X86 / isnan2.ll
diff --git a/test/CodeGen/X86/isnan2.ll b/test/CodeGen/X86/isnan2.ll
new file mode 100644 (file)
index 0000000..18fe29a
--- /dev/null
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | not grep pxor
+
+; This should not need to materialize 0.0 to evaluate the condition.
+
+define i32 @test(double %X) nounwind  {
+entry:
+       %tmp6 = fcmp uno double %X, 0.000000e+00                ; <i1> [#uses=1]
+       %tmp67 = zext i1 %tmp6 to i32           ; <i32> [#uses=1]
+       ret i32 %tmp67
+}
+