mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
72e0542f2c
When setting the frame pointer, the offset from SP is calculated based on the stack slot it gets allocated, but this slot is in turn based on the order of the CSR list so that list should match the order we actually save the registers in. Mostly it did, but in the edge-case of MachO AAPCS targets it was wrong. llvm-svn: 269459
13 lines
271 B
LLVM
13 lines
271 B
LLVM
; RUN: llc -mtriple thumbv7m-apple-macho -disable-fp-elim -o - %s | FileCheck %s
|
|
|
|
define void @func() {
|
|
; CHECK-LABEL: func:
|
|
; CHECK: push {r6, r7, lr}
|
|
; CHECK: add r7, sp, #4
|
|
call void @bar()
|
|
call void asm sideeffect "", "~{r11}"()
|
|
ret void
|
|
}
|
|
|
|
declare void @bar()
|