summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-08 01:17:42 +0000
committerChris Lattner <sabre@nondot.org>2006-04-08 01:17:42 +0000
commitf40210dd26ccf796d9e45fd5fb0b9e3b00f2e949 (patch)
treeeb5411ea1b8c568b8ae1732a3fe36920eef9c65b
parent9fc18d24ae525a0047718d28e7a8735e8582ddb2 (diff)
downloadllvm-f40210dd26ccf796d9e45fd5fb0b9e3b00f2e949.tar.gz
llvm-f40210dd26ccf796d9e45fd5fb0b9e3b00f2e949.tar.bz2
llvm-f40210dd26ccf796d9e45fd5fb0b9e3b00f2e949.tar.xz
new testcase for shufflevector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27508 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Feature/instructions.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Feature/instructions.ll b/test/Feature/instructions.ll
index a65adead69..99cec7699c 100644
--- a/test/Feature/instructions.ll
+++ b/test/Feature/instructions.ll
@@ -11,3 +11,15 @@ uint %test_extractelement(<4 x uint> %V) {
%R = insertelement <4 x uint> %V, uint 0, uint 0
ret <4 x uint> %R
}
+
+<4 x uint> %test_shufflevector(<4 x uint> %V) {
+ %R = shufflevector <4 x uint> %V, <4 x uint> %V,
+ <4 x uint> < uint 1, uint undef, uint 7, uint 2>
+ ret <4 x uint> %R
+}
+
+<4 x float> %test_shufflevector(<4 x float> %V) {
+ %R = shufflevector <4 x float> %V, <4 x float> undef,
+ <4 x uint> < uint 1, uint undef, uint 7, uint 2>
+ ret <4 x float> %R
+}