mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
29f94c7201
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209577 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
611 B
LLVM
27 lines
611 B
LLVM
; RUN: llc < %s -march=arm64 | FileCheck %s
|
|
|
|
define i8* @rt0(i32 %x) nounwind readnone {
|
|
entry:
|
|
; CHECK-LABEL: rt0:
|
|
; CHECK: mov x0, x30
|
|
; CHECK: ret
|
|
%0 = tail call i8* @llvm.returnaddress(i32 0)
|
|
ret i8* %0
|
|
}
|
|
|
|
define i8* @rt2() nounwind readnone {
|
|
entry:
|
|
; CHECK-LABEL: rt2:
|
|
; CHECK: stp x29, x30, [sp, #-16]!
|
|
; CHECK: mov x29, sp
|
|
; CHECK: ldr x[[REG:[0-9]+]], [x29]
|
|
; CHECK: ldr x[[REG2:[0-9]+]], [x[[REG]]]
|
|
; CHECK: ldr x0, [x[[REG2]], #8]
|
|
; CHECK: ldp x29, x30, [sp], #16
|
|
; CHECK: ret
|
|
%0 = tail call i8* @llvm.returnaddress(i32 2)
|
|
ret i8* %0
|
|
}
|
|
|
|
declare i8* @llvm.returnaddress(i32) nounwind readnone
|