diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-12-07 01:48:46 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-07 01:48:46 +0000 |
commit | a97159336d383a360378deb5b15eeb7902b4fd8c (patch) | |
tree | 4ff32c5e1ba17191c8ab6c69f2ed4fa990c60ce4 | |
parent | dfb156143489e7d16e6b034d6e535fe97eafbb9c (diff) |
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44672 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/2007-12-05-VectorShuffle.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2007-12-05-VectorShuffle.ll b/test/CodeGen/X86/2007-12-05-VectorShuffle.ll new file mode 100644 index 0000000000..8933a63835 --- /dev/null +++ b/test/CodeGen/X86/2007-12-05-VectorShuffle.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 + +define void @test(<8 x i16>* %res, <8 x i16>* %A, <8 x i16>* %B) { + %tmp1 = load <8 x i16>* %A + %tmp2 = load <8 x i16>* %B + %tmp3 = shufflevector <8 x i16> %tmp1, <8 x i16> %tmp2, <8 x i32> < i32 8, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7 > + store <8 x i16> %tmp3, <8 x i16>* %res + ret void +} |