aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/isnan.ll
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-20 19:52:04 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-20 19:52:04 +0000
commit722243bd402aaed698a279cb323cf37554befd53 (patch)
tree35b30dc386d75eafe797e99e0f681bf19fe771ad /test/CodeGen/X86/isnan.ll
parent8e8de684c7b62c21a3fa9d0cd2b142e669b61ba9 (diff)
downloadexternal_llvm-722243bd402aaed698a279cb323cf37554befd53.zip
external_llvm-722243bd402aaed698a279cb323cf37554befd53.tar.gz
external_llvm-722243bd402aaed698a279cb323cf37554befd53.tar.bz2
Rename the last test with .llx extension to .ll, resolve duplicate test by renaming to isnan2. Now that no test has llx ending there is no need to search for them from dg.exp too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/isnan.ll')
-rw-r--r--test/CodeGen/X86/isnan.ll12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/CodeGen/X86/isnan.ll b/test/CodeGen/X86/isnan.ll
index 18fe29a..65916ff 100644
--- a/test/CodeGen/X86/isnan.ll
+++ b/test/CodeGen/X86/isnan.ll
@@ -1,11 +1,9 @@
-; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | not grep pxor
+; RUN: llvm-as < %s | llc -march=x86 | not grep call
-; This should not need to materialize 0.0 to evaluate the condition.
+declare i1 @llvm.isunordered.f64(double)
-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
+define i1 @test_isnan(double %X) {
+ %R = fcmp uno double %X, %X ; <i1> [#uses=1]
+ ret i1 %R
}