summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/instructions.ll
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
commita348351da397170a075db21c9e614ba2cbec4f2e (patch)
treeb3790ce368f64409b34d6d656bdc9f9876a4f0b3 /llvm/test/Feature/instructions.ll
parentc951f4c1125cd64e1093a01918f0eed99a3b7cf4 (diff)
downloadbcm5719-llvm-a348351da397170a075db21c9e614ba2cbec4f2e.tar.gz
bcm5719-llvm-a348351da397170a075db21c9e614ba2cbec4f2e.zip
new testcase for shufflevector
llvm-svn: 27508
Diffstat (limited to 'llvm/test/Feature/instructions.ll')
-rw-r--r--llvm/test/Feature/instructions.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Feature/instructions.ll b/llvm/test/Feature/instructions.ll
index a65adead691..99cec7699c9 100644
--- a/llvm/test/Feature/instructions.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud