Merge a few fast-isel tests.
authorDan Gohman <gohman@apple.com>
Fri, 9 Apr 2010 15:03:55 +0000 (15:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 9 Apr 2010 15:03:55 +0000 (15:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100860 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/fast-isel-phys.ll [deleted file]
test/CodeGen/X86/fast-isel-trunc.ll [deleted file]
test/CodeGen/X86/fast-isel.ll

diff --git a/test/CodeGen/X86/fast-isel-phys.ll b/test/CodeGen/X86/fast-isel-phys.ll
deleted file mode 100644 (file)
index 158ef55..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86
-
-define i8 @t2(i8 %a, i8 %c) nounwind {
-       %tmp = shl i8 %a, %c
-       ret i8 %tmp
-}
-
-define i8 @t1(i8 %a) nounwind {
-       %tmp = mul i8 %a, 17
-       ret i8 %tmp
-}
diff --git a/test/CodeGen/X86/fast-isel-trunc.ll b/test/CodeGen/X86/fast-isel-trunc.ll
deleted file mode 100644 (file)
index 69b26c5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-; RUN: llc < %s -march=x86 -fast-isel -fast-isel-abort
-; RUN: llc < %s -march=x86-64 -fast-isel -fast-isel-abort
-
-define i8 @t1(i32 %x) signext nounwind  {
-       %tmp1 = trunc i32 %x to i8
-       ret i8 %tmp1
-}
-
-define i8 @t2(i16 signext %x) signext nounwind  {
-       %tmp1 = trunc i16 %x to i8
-       ret i8 %tmp1
-}
index 84b3fd7caf3a50adc2e5504f11f4a755331bd1a4..3d26ae7018b573d180e45e5dd662ba1aa3677927 100644 (file)
@@ -1,4 +1,5 @@
 ; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86 -mattr=sse2
+; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86-64
 
 ; This tests very minimal fast-isel functionality.
 
@@ -65,6 +66,26 @@ define i8* @inttoptr_i32(i32 %p) nounwind {
   ret i8* %t
 }
 
+define i8 @trunc_i32_i8(i32 %x) signext nounwind  {
+       %tmp1 = trunc i32 %x to i8
+       ret i8 %tmp1
+}
+
+define i8 @trunc_i16_i8(i16 signext %x) signext nounwind  {
+       %tmp1 = trunc i16 %x to i8
+       ret i8 %tmp1
+}
+
+define i8 @shl_i8(i8 %a, i8 %c) nounwind {
+       %tmp = shl i8 %a, %c
+       ret i8 %tmp
+}
+
+define i8 @mul_i8(i8 %a) nounwind {
+       %tmp = mul i8 %a, 17
+       ret i8 %tmp
+}
+
 define void @store_i1(i1* %p, i1 %t) nounwind {
   store i1 %t, i1* %p
   ret void