diff options
Diffstat (limited to 'llvm/test/CodeGen/ARM/macho-frame-offset.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/macho-frame-offset.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/macho-frame-offset.ll b/llvm/test/CodeGen/ARM/macho-frame-offset.ll new file mode 100644 index 00000000000..f3dacf66b6c --- /dev/null +++ b/llvm/test/CodeGen/ARM/macho-frame-offset.ll @@ -0,0 +1,12 @@ +; 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() |