mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Add more test coverage for addFrameMove.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
992c3817ea
commit
3808c4d206
@ -5,16 +5,20 @@ declare void @use_addr(i8*)
|
||||
|
||||
define void @test_bigframe() {
|
||||
; CHECK: test_bigframe:
|
||||
; CHECK: .cfi_startproc
|
||||
|
||||
%var1 = alloca i8, i32 20000000
|
||||
%var2 = alloca i8, i32 16
|
||||
%var3 = alloca i8, i32 20000000
|
||||
; CHECK: sub sp, sp, #496
|
||||
; CHECK: .cfi_def_cfa sp, 496
|
||||
; CHECK: str x30, [sp, #488]
|
||||
; Total adjust is 39999536
|
||||
; CHECK: movz [[SUBCONST:x[0-9]+]], #22576
|
||||
; CHECK: movk [[SUBCONST]], #610, lsl #16
|
||||
; CHECK: sub sp, sp, [[SUBCONST]]
|
||||
; CHECK: .cfi_def_cfa sp, 40000032
|
||||
; CHECK: .cfi_offset x30, -8
|
||||
|
||||
; Total offset is 20000024
|
||||
; CHECK: movz [[VAR1OFFSET:x[0-9]+]], #11544
|
||||
@ -41,6 +45,7 @@ define void @test_bigframe() {
|
||||
; CHECK: movz [[ADDCONST:x[0-9]+]], #22576
|
||||
; CHECK: movk [[ADDCONST]], #610, lsl #16
|
||||
; CHECK: add sp, sp, [[ADDCONST]]
|
||||
; CHECK: .cfi_endproc
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user