mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
ca0f4dc4f0
This commit starts with a "git mv ARM64 AArch64" and continues out from there, renaming the C++ classes, intrinsics, and other target-local objects for consistency. "ARM64" test directories are also moved, and tests that began their life in ARM64 use an arm64 triple, those from AArch64 use an aarch64 triple. Both should be equivalent though. This finishes the AArch64 merge, and everyone should feel free to continue committing as normal now. llvm-svn: 209577
21 lines
810 B
LLVM
21 lines
810 B
LLVM
; RUN: llc < %s -verify-coalescing
|
|
; <rdar://problem/11522048>
|
|
target triple = "arm64-apple-macosx10.8.0"
|
|
|
|
; Verify that we can handle spilling the stack pointer without attempting
|
|
; spilling it directly.
|
|
; CHECK: f
|
|
; CHECK: mov [[X0:x[0-9]+]], sp
|
|
; CHECK: str [[X0]]
|
|
; CHECK: inlineasm
|
|
define void @f() nounwind ssp {
|
|
entry:
|
|
%savedstack = call i8* @llvm.stacksave() nounwind
|
|
call void asm sideeffect "; inlineasm", "~{x0},~{x1},~{x2},~{x3},~{x4},~{x5},~{x6},~{x7},~{x8},~{x9},~{x10},~{x11},~{x12},~{x13},~{x14},~{x15},~{x16},~{x17},~{x18},~{x19},~{x20},~{x21},~{x22},~{x23},~{x24},~{x25},~{x26},~{x27},~{x28},~{fp},~{lr},~{sp},~{memory}"() nounwind
|
|
call void @llvm.stackrestore(i8* %savedstack) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare i8* @llvm.stacksave() nounwind
|
|
declare void @llvm.stackrestore(i8*) nounwind
|