summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-06 12:30:00 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-09-06 12:30:00 +0000
commit020ec299bff6dbc9a4f8dd1d19e09a3f26441f30 (patch)
treea629c717cde86cd980fdad61a57bb760c574d26b /llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
parentde970cfb0c1311ae34b11e36edc8569122ce04e9 (diff)
downloadbcm5719-llvm-020ec299bff6dbc9a4f8dd1d19e09a3f26441f30.tar.gz
bcm5719-llvm-020ec299bff6dbc9a4f8dd1d19e09a3f26441f30.zip
[PPC] Claim stack frame before storing into it, if no red zone is present
Unlike PPC64, PPC32/SVRV4 does not have red zone. In the absence of it there is no guarantee that this part of the stack will not be modified by any interrupt. To avoid this, make sure to claim the stack frame first before storing into it. This fixes https://llvm.org/bugs/show_bug.cgi?id=26519. Differential Revision: https://reviews.llvm.org/D24093 llvm-svn: 280705
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll b/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
index bc1d0a58284..dbfbc1c5ab5 100644
--- a/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc32-pic-large.ll
@@ -15,7 +15,8 @@ entry:
; LARGE-BSS: [[POFF:\.L[0-9]+\$poff]]:
; LARGE-BSS-NEXT: .long .LTOC-[[PB:\.L[0-9]+\$pb]]
; LARGE-BSS-NEXT: foo:
-; LARGE-BSS: stw 30, -8(1)
+; LARGE-BSS: stwu 1, -32(1)
+; LARGE-BSS: stw 30, 24(1)
; LARGE-BSS: bl [[PB]]
; LARGE-BSS-NEXT: [[PB]]:
; LARGE-BSS: mflr 30
OpenPOWER on IntegriCloud