aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
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
commitf30f4e93c6d817c5b187c8664f84ebaf5b5e74c7 (patch)
tree35b30dc386d75eafe797e99e0f681bf19fe771ad /test/CodeGen/X86
parent056afe14a20cecfa5d8187883b0d60a5a9e1df14 (diff)
downloadexternal_llvm-f30f4e93c6d817c5b187c8664f84ebaf5b5e74c7.zip
external_llvm-f30f4e93c6d817c5b187c8664f84ebaf5b5e74c7.tar.gz
external_llvm-f30f4e93c6d817c5b187c8664f84ebaf5b5e74c7.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')
-rw-r--r--test/CodeGen/X86/dg.exp2
-rw-r--r--test/CodeGen/X86/isnan.ll12
-rw-r--r--test/CodeGen/X86/isnan.llx9
-rw-r--r--test/CodeGen/X86/isnan2.ll11
4 files changed, 17 insertions, 17 deletions
diff --git a/test/CodeGen/X86/dg.exp b/test/CodeGen/X86/dg.exp
index 161fccc..64b354b 100644
--- a/test/CodeGen/X86/dg.exp
+++ b/test/CodeGen/X86/dg.exp
@@ -1,5 +1,5 @@
load_lib llvm.exp
if { [llvm_supports_target X86] } {
- RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+ RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,tr}]]
}
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
}
diff --git a/test/CodeGen/X86/isnan.llx b/test/CodeGen/X86/isnan.llx
deleted file mode 100644
index 65916ff..0000000
--- a/test/CodeGen/X86/isnan.llx
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llvm-as < %s | llc -march=x86 | not grep call
-
-declare i1 @llvm.isunordered.f64(double)
-
-define i1 @test_isnan(double %X) {
- %R = fcmp uno double %X, %X ; <i1> [#uses=1]
- ret i1 %R
-}
-
diff --git a/test/CodeGen/X86/isnan2.ll b/test/CodeGen/X86/isnan2.ll
new file mode 100644
index 0000000..18fe29a
--- /dev/null
+++ b/test/CodeGen/X86/isnan2.ll
@@ -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
+}
+