[llvm-commits] [llvm] r100860 - in /llvm/trunk/test/CodeGen/X86: fast-isel-phys.ll fast-isel-trunc.ll fast-isel.ll

Dan Gohman gohman at apple.com
Fri Apr 9 08:03:55 PDT 2010


Author: djg
Date: Fri Apr  9 10:03:55 2010
New Revision: 100860

URL: http://llvm.org/viewvc/llvm-project?rev=100860&view=rev
Log:
Merge a few fast-isel tests.

Removed:
    llvm/trunk/test/CodeGen/X86/fast-isel-phys.ll
    llvm/trunk/test/CodeGen/X86/fast-isel-trunc.ll
Modified:
    llvm/trunk/test/CodeGen/X86/fast-isel.ll

Removed: llvm/trunk/test/CodeGen/X86/fast-isel-phys.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-phys.ll?rev=100859&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-phys.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-phys.ll (removed)
@@ -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
-}

Removed: llvm/trunk/test/CodeGen/X86/fast-isel-trunc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-trunc.ll?rev=100859&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-trunc.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-trunc.ll (removed)
@@ -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
-}

Modified: llvm/trunk/test/CodeGen/X86/fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel.ll?rev=100860&r1=100859&r2=100860&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel.ll Fri Apr  9 10:03:55 2010
@@ -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 @@
   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





More information about the llvm-commits mailing list