summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-09-10 14:01:21 +0000
committerJames Molloy <james.molloy@arm.com>2012-09-10 14:01:21 +0000
commit8cd08bf4ac67b9d711fd1f72e6f5e00425d8c6ad (patch)
tree929d49c75823f91b9992bc4a92e0111356c982bd /test
parentff1b63172d22c148c9180a546262f61a8c334974 (diff)
downloadllvm-8cd08bf4ac67b9d711fd1f72e6f5e00425d8c6ad.tar.gz
llvm-8cd08bf4ac67b9d711fd1f72e6f5e00425d8c6ad.tar.bz2
llvm-8cd08bf4ac67b9d711fd1f72e6f5e00425d8c6ad.tar.xz
Fix an assertion failure when optimising a shufflevector incorrectly into concat_vectors, and a followup bug with SelectionDAG::getNode() creating nodes with invalid types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/crash-shufflevector.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/crash-shufflevector.ll b/test/CodeGen/ARM/crash-shufflevector.ll
new file mode 100644
index 0000000000..bdc0e0ea4d
--- /dev/null
+++ b/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
+} \ No newline at end of file