summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/dwarf-unwind.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-11-14 22:45:31 +0000
committerTim Northover <tnorthover@apple.com>2014-11-14 22:45:31 +0000
commit9d2d218f49653c4816d5d2671b71b6736b75598f (patch)
tree1cb94b8dc13e7934331fdcdf9a1acc60c0f70f20 /llvm/test/CodeGen/ARM/dwarf-unwind.ll
parenta0691c8983434901710492283d07c37fbcb82019 (diff)
downloadbcm5719-llvm-9d2d218f49653c4816d5d2671b71b6736b75598f.tar.gz
bcm5719-llvm-9d2d218f49653c4816d5d2671b71b6736b75598f.zip
ARM: correctly calculate the offset of FP in its push.
When we folded the DPR alignment gap into a push, we weren't noting the extra distance from the beginning of the push to the FP, and so FP ended up pointing at an incorrect offset. The .cfi_def_cfa_offset directives are still wrong in this case, but I think that can be improved by refactoring. llvm-svn: 222056
Diffstat (limited to 'llvm/test/CodeGen/ARM/dwarf-unwind.ll')
-rw-r--r--llvm/test/CodeGen/ARM/dwarf-unwind.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/dwarf-unwind.ll b/llvm/test/CodeGen/ARM/dwarf-unwind.ll
index 58f486d76ab..0359e4b623e 100644
--- a/llvm/test/CodeGen/ARM/dwarf-unwind.ll
+++ b/llvm/test/CodeGen/ARM/dwarf-unwind.ll
@@ -66,3 +66,12 @@ define void @test_nodpr_noalign(i8 %l, i8 %r) {
call void @bar()
ret void
}
+
+define void @test_frame_pointer_offset() minsize "no-frame-pointer-elim"="true" {
+; CHECK-LABEL: test_frame_pointer_offset:
+; CHECK: push.w {r3, r4, r5, r6, r7, r8, r9, r10, r11, lr}
+; CHECK: add r7, sp, #16
+ call void asm sideeffect "", "~{r4},~{r5},~{r6},~{r7},~{r8},~{r9},~{r10},~{r11},~{d8}"()
+ call void @bar()
+ ret void
+} \ No newline at end of file
OpenPOWER on IntegriCloud