summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-11-28 16:35:04 +0000
committerTom Stellard <tstellar@redhat.com>2017-11-28 16:35:04 +0000
commit3e430490419645a35399e7937d96482681984e47 (patch)
tree9b0de90042eb53099317ac970c3ef0467917ca01 /test
parentf30c91881619bbedbdc70b3cb0ee9c90a67e51ee (diff)
Merging r319130:
------------------------------------------------------------------------ r319130 | matze | 2017-11-27 17:17:52 -0800 (Mon, 27 Nov 2017) | 7 lines ARM: Fix PR32578 https://llvm.org/PR32578 I simplified and converted the reproducer into a lit test. Patch by Vedant Kumar! ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@319181 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/pr32578.ll27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/pr32578.ll b/test/CodeGen/ARM/pr32578.ll
new file mode 100644
index 000000000000..541ba35e5be5
--- /dev/null
+++ b/test/CodeGen/ARM/pr32578.ll
@@ -0,0 +1,27 @@
+; RUN: llc -o - %s | FileCheck %s
+target triple = "armv7"
+
+; CHECK-LABEL: func:
+; CHECK: push {r11, lr}
+; CHECK: vpush {d8}
+; CEHCK: b .LBB0_2
+define arm_aapcscc double @func() {
+ br label %tailrecurse
+
+tailrecurse:
+ %v0 = load i16, i16* undef, align 8
+ %cond36.i = icmp eq i16 %v0, 3
+ br i1 %cond36.i, label %sw.bb.i, label %sw.epilog.i
+
+sw.bb.i:
+ %v1 = load double, double* undef, align 8
+ %call21.i = tail call arm_aapcscc double @func()
+ %mul.i = fmul double %v1, %call21.i
+ ret double %mul.i
+
+sw.epilog.i:
+ tail call arm_aapcscc void @_ZNK10shared_ptrdeEv()
+ br label %tailrecurse
+}
+
+declare arm_aapcscc void @_ZNK10shared_ptrdeEv() local_unnamed_addr