diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-09 15:03:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-09 15:03:55 +0000 |
commit | d23fa7d90d53aaa482f9310994908c78bcceb61c (patch) | |
tree | 8a1d58c0c4da4cca79dff387799230a37b96a88c /llvm/test | |
parent | 0a8175d1dbd99278ae05144c9deb48c0d893bf57 (diff) | |
download | bcm5719-llvm-d23fa7d90d53aaa482f9310994908c78bcceb61c.tar.gz bcm5719-llvm-d23fa7d90d53aaa482f9310994908c78bcceb61c.zip |
Merge a few fast-isel tests.
llvm-svn: 100860
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-phys.ll | 11 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-trunc.ll | 12 | ||||
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel.ll | 21 |
3 files changed, 21 insertions, 23 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-phys.ll b/llvm/test/CodeGen/X86/fast-isel-phys.ll deleted file mode 100644 index 158ef551ce4..00000000000 --- a/llvm/test/CodeGen/X86/fast-isel-phys.ll +++ /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/llvm/test/CodeGen/X86/fast-isel-trunc.ll b/llvm/test/CodeGen/X86/fast-isel-trunc.ll deleted file mode 100644 index 69b26c5442e..00000000000 --- a/llvm/test/CodeGen/X86/fast-isel-trunc.ll +++ /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 -} diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll index 84b3fd7caf3..3d26ae7018b 100644 --- a/llvm/test/CodeGen/X86/fast-isel.ll +++ b/llvm/test/CodeGen/X86/fast-isel.ll @@ -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 |