summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-08-26 00:13:36 +0000
committerBob Wilson <bob.wilson@apple.com>2010-08-26 00:13:36 +0000
commit2ac124c561c6c6687ce0a4f7709586010b6c80c4 (patch)
treeaba36dd135c12ba0c80141ecd15c41b7fa8f8b8d /test
parentc87a6d4fb088a28b71c3718ae6af78fef3f1d0bf (diff)
downloadllvm-2ac124c561c6c6687ce0a4f7709586010b6c80c4.tar.gz
llvm-2ac124c561c6c6687ce0a4f7709586010b6c80c4.tar.bz2
llvm-2ac124c561c6c6687ce0a4f7709586010b6c80c4.tar.xz
Revert svn 107892 (with changes to work with trunk). It caused a crash if
a VLD result was not used (Radar 8355607). It should also fix pr7988, but I haven't verified that yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/vld1.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vld1.ll b/test/CodeGen/ARM/vld1.ll
index c61ea8c9a7..65c5932d66 100644
--- a/test/CodeGen/ARM/vld1.ll
+++ b/test/CodeGen/ARM/vld1.ll
@@ -89,3 +89,17 @@ declare <8 x i16> @llvm.arm.neon.vld1.v8i16(i8*) nounwind readonly
declare <4 x i32> @llvm.arm.neon.vld1.v4i32(i8*) nounwind readonly
declare <4 x float> @llvm.arm.neon.vld1.v4f32(i8*) nounwind readonly
declare <2 x i64> @llvm.arm.neon.vld1.v2i64(i8*) nounwind readonly
+
+; Radar 8355607
+; Do not crash if the vld1 result is not used.
+define void @unused_vld1_result() {
+entry:
+;CHECK: unused_vld1_result
+;CHECK: vld1.32
+ %0 = call <4 x float> @llvm.arm.neon.vld1.v4f32(i8* undef)
+ call void @llvm.trap()
+ unreachable
+}
+
+declare void @llvm.trap() nounwind
+