Tim Northover | 00ed996 | 2014-03-29 10:18:08 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -verify-machineinstrs | FileCheck %s |
2 | target triple = "arm64-apple-macosx10" | ||||
3 | |||||
4 | ; Make sure that a store to [sp] addresses off sp directly. | ||||
5 | ; A move isn't necessary. | ||||
6 | ; <rdar://problem/11492712> | ||||
7 | ; CHECK-LABEL: g: | ||||
8 | ; CHECK: str xzr, [sp] | ||||
9 | ; CHECK: bl | ||||
10 | ; CHECK: ret | ||||
11 | define void @g() nounwind ssp { | ||||
12 | entry: | ||||
13 | tail call void (i32, ...)* @f(i32 0, i32 0) nounwind | ||||
14 | ret void | ||||
15 | } | ||||
16 | |||||
17 | declare void @f(i32, ...) |