Fix PR5421 by APInt'izing switch lowering.
[oota-llvm.git] / test / CodeGen / Generic / isunord.ll
index 2b94a1386d2a0f829cb083a418b07047589779c1..ebbba010793b3b4a640e528dbaee88399e73346c 100644 (file)
@@ -1,10 +1,9 @@
-; RUN: llvm-as < %s | llc
-; XFAIL: alpha|ia64|sparcv8
+; RUN: llc < %s
 
+declare i1 @llvm.isunordered.f64(double, double)
 
-declare bool %llvm.isunordered(double, double)
-
-bool %test(double %X, double %Y) {
-  %tmp27 = call bool %llvm.isunordered( double %X, double %Y)
-  ret bool %tmp27
+define i1 @test(double %X, double %Y) {
+        %tmp27 = fcmp uno double %X, %Y         ; <i1> [#uses=1]
+        ret i1 %tmp27
 }
+