aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/ARM/constant-fold-hang.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/ARM/constant-fold-hang.ll')
-rw-r--r--test/Transforms/InstCombine/ARM/constant-fold-hang.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/ARM/constant-fold-hang.ll b/test/Transforms/InstCombine/ARM/constant-fold-hang.ll
new file mode 100644
index 000000000000..2ca6b86ccc2f
--- /dev/null
+++ b/test/Transforms/InstCombine/ARM/constant-fold-hang.ll
@@ -0,0 +1,14 @@
+; RUN: opt -instcombine < %s
+
+; Function Attrs: nounwind readnone ssp
+define void @mulByZero(<4 x i16> %x) #0 {
+entry:
+ %a = tail call <4 x i32> @llvm.arm.neon.vmulls.v4i32(<4 x i16> %x, <4 x i16> zeroinitializer) #2
+ ret void
+}
+
+; Function Attrs: nounwind readnone
+declare <4 x i32> @llvm.arm.neon.vmulls.v4i32(<4 x i16>, <4 x i16>) #1
+
+attributes #0 = { nounwind readnone ssp }
+attributes #1 = { nounwind readnone }