aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/isnan.llx
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/isnan.llx')
-rw-r--r--test/CodeGen/X86/isnan.llx12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/CodeGen/X86/isnan.llx b/test/CodeGen/X86/isnan.llx
index 0665e55e90..65916ff577 100644
--- a/test/CodeGen/X86/isnan.llx
+++ b/test/CodeGen/X86/isnan.llx
@@ -1,7 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep call
-declare bool %llvm.isunordered.f64(double)
+; RUN: llvm-as < %s | llc -march=x86 | not grep call
-bool %test_isnan(double %X) {
- %R = call bool %llvm.isunordered.f64(double %X, double %X)
- ret bool %R
+declare i1 @llvm.isunordered.f64(double)
+
+define i1 @test_isnan(double %X) {
+ %R = fcmp uno double %X, %X ; <i1> [#uses=1]
+ ret i1 %R
}
+