new testcase for shufflevector
authorChris Lattner <sabre@nondot.org>
Sat, 8 Apr 2006 01:17:42 +0000 (01:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Apr 2006 01:17:42 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27508 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/instructions.ll

index a65adead691feee30229402f44927f165d862806..99cec7699c90b32cdb5223ceb529e9717edd37f0 100644 (file)
@@ -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
+}