mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
18 lines
407 B
LLVM
18 lines
407 B
LLVM
|
; RUN: llc < %s -verify-machineinstrs | FileCheck %s
|
||
|
target triple = "arm64-apple-macosx10"
|
||
|
|
||
|
; Make sure that a store to [sp] addresses off sp directly.
|
||
|
; A move isn't necessary.
|
||
|
; <rdar://problem/11492712>
|
||
|
; CHECK-LABEL: g:
|
||
|
; CHECK: str xzr, [sp]
|
||
|
; CHECK: bl
|
||
|
; CHECK: ret
|
||
|
define void @g() nounwind ssp {
|
||
|
entry:
|
||
|
tail call void (i32, ...)* @f(i32 0, i32 0) nounwind
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
declare void @f(i32, ...)
|