mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
If a function needs a frame pointer, but r11 (aka fp) has not been used,
remove it from the list of unspilled registers. Otherwise the following attempt to keep the stack aligned by picking an extra GPR register to spill will not work as it picks up r11. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208129 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,7 +29,7 @@ false:
|
||||
; ARM-linux-NEXT: cmp r4, r5
|
||||
; ARM-linux-NEXT: blo .LBB0_2
|
||||
|
||||
; ARM-linux: mov r4, #24
|
||||
; ARM-linux: mov r4, #16
|
||||
; ARM-linux-NEXT: mov r5, #0
|
||||
; ARM-linux-NEXT: stmdb sp!, {lr}
|
||||
; ARM-linux-NEXT: bl __morestack
|
||||
@@ -49,7 +49,7 @@ false:
|
||||
; ARM-android-NEXT: cmp r4, r5
|
||||
; ARM-android-NEXT: blo .LBB0_2
|
||||
|
||||
; ARM-android: mov r4, #24
|
||||
; ARM-android: mov r4, #16
|
||||
; ARM-android-NEXT: mov r5, #0
|
||||
; ARM-android-NEXT: stmdb sp!, {lr}
|
||||
; ARM-android-NEXT: bl __morestack
|
||||
|
Reference in New Issue
Block a user