summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorStepan Dyatkovskiy <stpworld@narod.ru>2012-08-20 08:03:18 +0000
committerStepan Dyatkovskiy <stpworld@narod.ru>2012-08-20 08:03:18 +0000
commit6ee89aafc88af387d954cde7323a552f2a675f5d (patch)
treeb65580b84e261ff84ad30b80411af13a8737b236 /llvm/test
parent6a638ec521e9fad6ff06b098653d7be2b87ad9e3 (diff)
downloadbcm5719-llvm-6ee89aafc88af387d954cde7323a552f2a675f5d.tar.gz
bcm5719-llvm-6ee89aafc88af387d954cde7323a552f2a675f5d.zip
Forget to add testcase for r162195. Sorry.
llvm-svn: 162196
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/crash-shufflevector.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/crash-shufflevector.ll b/llvm/test/CodeGen/ARM/crash-shufflevector.ll
new file mode 100644
index 00000000000..ece4234699d
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/crash-shufflevector.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -mtriple=armv7--
+
+declare void @g(<16 x i8>)
+define void @f(<4 x i8> %param1, <4 x i8> %param2) {
+ %y1 = shufflevector <4 x i8> %param1, <4 x i8> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
+ %y2 = shufflevector <4 x i8> %param2, <4 x i8> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
+ %z = shufflevector <16 x i8> %y1, <16 x i8> %y2, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 16, i32 17, i32 18, i32 19>
+ call void @g(<16 x i8> %z)
+ ret void
+}
OpenPOWER on IntegriCloud