diff options
Diffstat (limited to 'llvm/test')
5 files changed, 10 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/AArch64/stack-guard-reassign.ll b/llvm/test/CodeGen/AArch64/stack-guard-reassign.ll index a3b00fd2cca..632774c970e 100644 --- a/llvm/test/CodeGen/AArch64/stack-guard-reassign.ll +++ b/llvm/test/CodeGen/AArch64/stack-guard-reassign.ll @@ -3,7 +3,7 @@ ; Verify that the offset assigned to the stack protector is at the top of the ; frame, covering the locals. ; CHECK-LABEL: fn: -; CHECK: add x8, sp, #24 +; CHECK: sub x8, x29, #24 ; CHECK-NEXT: adrp x9, __stack_chk_guard ; CHECK-NEXT: ldr x9, [x9, :lo12:__stack_chk_guard] ; CHECK-NEXT: str x9, [x8] diff --git a/llvm/test/CodeGen/AArch64/stack-guard-reassign.mir b/llvm/test/CodeGen/AArch64/stack-guard-reassign.mir index 296290e2b0f..c0dfcbce1d8 100644 --- a/llvm/test/CodeGen/AArch64/stack-guard-reassign.mir +++ b/llvm/test/CodeGen/AArch64/stack-guard-reassign.mir @@ -11,13 +11,13 @@ name: main tracksRegLiveness: true frameInfo: -# CHECK: stackSize: 560 +# CHECK: stackSize: 544 stackProtector: '%stack.0.StackGuardSlot' stack: - { id: 0, name: StackGuardSlot, size: 8, alignment: 8, stack-id: default } # Verify that the offset assigned to the stack protector is at the top of the # frame, covering the locals. -# CHECK: - { id: 0, name: StackGuardSlot, type: default, offset: -552, size: 8, +# CHECK: - { id: 0, name: StackGuardSlot, type: default, offset: -24, size: 8, # CHECK-NEXT: alignment: 8, stack-id: default, callee-saved-register: '', callee-saved-restored: true, # CHECK-NEXT: local-offset: -8, debug-info-variable: '', debug-info-expression: '', # CHECK-NEXT: debug-info-location: '' } diff --git a/llvm/test/CodeGen/AArch64/stack-guard-vaarg.ll b/llvm/test/CodeGen/AArch64/stack-guard-vaarg.ll index e083aa10e33..29e66d95787 100644 --- a/llvm/test/CodeGen/AArch64/stack-guard-vaarg.ll +++ b/llvm/test/CodeGen/AArch64/stack-guard-vaarg.ll @@ -9,7 +9,7 @@ ; CHECK: ldr [[GUARD:x[0-9]+]]{{.*}}:lo12:__stack_chk_guard] ; Make sure the canary is placed relative to the frame pointer, not ; the stack pointer. -; CHECK: str [[GUARD]], [sp, #8] +; CHECK: stur [[GUARD]], [x29, #-24] define void @test(i8* %i, ...) #0 { entry: %buf = alloca [10 x i8], align 1 diff --git a/llvm/test/CodeGen/ARM/stack-guard-reassign.ll b/llvm/test/CodeGen/ARM/stack-guard-reassign.ll index ae3d91361e2..2ce1d1588a4 100644 --- a/llvm/test/CodeGen/ARM/stack-guard-reassign.ll +++ b/llvm/test/CodeGen/ARM/stack-guard-reassign.ll @@ -3,12 +3,12 @@ ; Verify that the offset assigned to the stack protector is at the top of the ; frame, covering the locals. ; CHECK-LABEL: fn: -; CHECK: sub sp, sp, #40 +; CHECK: sub sp, sp, #32 ; CHECK-NEXT: sub sp, sp, #65536 -; CHECK-NEXT: add r1, sp, #28 +; CHECK-NEXT: add lr, sp, #65536 +; CHECK-NEXT: add r1, lr, #28 ; CHECK-NEXT: ldr r2, .LCPI0_0 ; CHECK-NEXT: ldr r3, [r2] ; CHECK-NEXT: str r3, [r1] -; CHECK-NEXT: str r0, [sp, #32] ; CHECK: .LCPI0_0: ; CHECK-NEXT: .long __stack_chk_guard diff --git a/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll b/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll index 3a8cac506c2..8128b63d598 100644 --- a/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll +++ b/llvm/test/CodeGen/PowerPC/stack-guard-reassign.ll @@ -9,7 +9,9 @@ ; 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 4, 1 +; CHECK-NEXT: ori 4, 4, 44 +; CHECK-NEXT: add 4, 1, 4 ; CHECK-NEXT: lis 5, __stack_chk_guard@ha ; CHECK-NEXT: lwz 6, __stack_chk_guard@l(5) ; CHECK-NEXT: stw 6, 0(4) |