diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-03-15 01:49:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-03-15 01:49:08 +0000 |
commit | 49c69bb70f4c62d97c02e71c25fd615d67104ff4 (patch) | |
tree | bf67d29733f2585b820ccff3d526c4772ed4a663 /test/CodeGen/ARM | |
parent | 9a9d8b97325ca5e568afebe54dd0bffd64b3eff1 (diff) | |
download | external_llvm-49c69bb70f4c62d97c02e71c25fd615d67104ff4.zip external_llvm-49c69bb70f4c62d97c02e71c25fd615d67104ff4.tar.gz external_llvm-49c69bb70f4c62d97c02e71c25fd615d67104ff4.tar.bz2 |
Testcase for r127630.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r-- | test/CodeGen/ARM/shuffle.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/shuffle.ll b/test/CodeGen/ARM/shuffle.ll new file mode 100644 index 0000000..7d6be4f --- /dev/null +++ b/test/CodeGen/ARM/shuffle.ll @@ -0,0 +1,18 @@ +; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=pic -disable-fp-elim | FileCheck %s + +target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32" +target triple = "thumbv7-apple-darwin" + +define <8 x i8> @shuf(<8 x i8> %a) nounwind readnone optsize ssp { +entry: +; CHECK: vtbl + %shuffle = shufflevector <8 x i8> %a, <8 x i8> undef, <8 x i32> <i32 3, i32 1, i32 2, i32 0, i32 4, i32 4, i32 5, i32 0> + ret <8 x i8> %shuffle +} + +define <8 x i8> @shuf2(<8 x i8> %a, <8 x i8> %b) nounwind readnone optsize ssp { +entry: +; CHECK: vtbl + %shuffle = shufflevector <8 x i8> %a, <8 x i8> %b, <8 x i32> <i32 3, i32 1, i32 2, i32 0, i32 4, i32 4, i32 5, i32 8> + ret <8 x i8> %shuffle +} |