aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-10-24 23:08:52 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-10-24 23:08:52 +0000
commit5c89cb8cd613c5a9d2bb2d6ab68afe8c2b41db70 (patch)
treeb8ad3e5465b6d74e568d1f06e9b825951ef2d452 /test/CodeGen
parent671215464c8335e383fa2db90df2eab73ef83b10 (diff)
downloadexternal_llvm-5c89cb8cd613c5a9d2bb2d6ab68afe8c2b41db70.zip
external_llvm-5c89cb8cd613c5a9d2bb2d6ab68afe8c2b41db70.tar.gz
external_llvm-5c89cb8cd613c5a9d2bb2d6ab68afe8c2b41db70.tar.bz2
Don't crash on variable insertelement on ARM. PR10258.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/vstlane.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vstlane.ll b/test/CodeGen/ARM/vstlane.ll
index 08b7232..f3239da 100644
--- a/test/CodeGen/ARM/vstlane.ll
+++ b/test/CodeGen/ARM/vstlane.ll
@@ -358,6 +358,13 @@ define void @vst4laneQf(float* %A, <4 x float>* %B) nounwind {
ret void
}
+; Make sure this doesn't crash; PR10258
+define <8 x i16> @variable_insertelement(<8 x i16> %a, i16 %b, i32 %c) nounwind readnone {
+;CHECK: variable_insertelement:
+ %r = insertelement <8 x i16> %a, i16 %b, i32 %c
+ ret <8 x i16> %r
+}
+
declare void @llvm.arm.neon.vst4lane.v8i8(i8*, <8 x i8>, <8 x i8>, <8 x i8>, <8 x i8>, i32, i32) nounwind
declare void @llvm.arm.neon.vst4lane.v4i16(i8*, <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16>, i32, i32) nounwind
declare void @llvm.arm.neon.vst4lane.v2i32(i8*, <2 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, i32, i32) nounwind