mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
23b1e30d04
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
18 lines
413 B
LLVM
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, ...)
|