diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll')
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll b/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll new file mode 100644 index 00000000000..3a8cac506c2 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll @@ -0,0 +1,15 @@ +; RUN: llc -O0 --frame-pointer=none -mtriple=powerpc-- -o - %S/../Inputs/stack-guard-reassign.ll | FileCheck %s + +; Verify that the offset assigned to the stack protector is at the top of the +; frame, covering the locals. +; CHECK-LABEL: fn: +; CHECK: mflr 0 +; CHECK-NEXT: stw 0, 4(1) +; CHECK-NEXT: lis 0, -2 +; CHECK-NEXT: ori 0, 0, 65488 +; CHECK-NEXT: stwux 1, 1, 0 +; CHECK-NEXT: subf 0, 0, 1 +; CHECK-NEXT: addi 4, 1, 36 +; CHECK-NEXT: lis 5, __stack_chk_guard@ha +; CHECK-NEXT: lwz 6, __stack_chk_guard@l(5) +; CHECK-NEXT: stw 6, 0(4) |

