1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/CodeGen/AArch64/arm64-join-reserved.ll
Chad Rosier 23b1e30d04 [AArch64] Remove an unnecessary restriction on pre-index instructions.
Previously, the index was constrained to the size of the memory operation for
no apparent reason.  This change removes that constraint so that we can form
pre-index instructions with any valid offset.

llvm-svn: 248931
2015-09-30 19:44:40 +00:00

18 lines
413 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, #-16]!
; 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, ...)