1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/CodeGen/ARM/macho-frame-offset.ll
Tim Northover 72e0542f2c ARM: use callee-saved list in the order they're actually saved.
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
2016-05-13 19:16:14 +00:00

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()