mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
9105f66d6f
I'm doing this in two phases for a better "git blame" record. This commit removes the previous AArch64 backend and redirects all functionality to ARM64. It also deduplicates test-lines and removes orphaned AArch64 tests. The next step will be "git mv ARM64 AArch64" and rewire most of the tests. Hopefully LLVM is still functional, though it would be even better if no-one ever had to care because the rename happens straight afterwards. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209576 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
505 B
LLVM
22 lines
505 B
LLVM
; RUN: llc -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
|
|
|
|
define i8* @rt0(i32 %x) nounwind readnone {
|
|
entry:
|
|
; CHECK-LABEL: rt0:
|
|
; CHECK: mov x0, x30
|
|
%0 = tail call i8* @llvm.returnaddress(i32 0)
|
|
ret i8* %0
|
|
}
|
|
|
|
define i8* @rt2() nounwind readnone {
|
|
entry:
|
|
; CHECK-LABEL: rt2:
|
|
; CHECK: ldr x[[reg:[0-9]+]], [x29]
|
|
; CHECK: ldr x[[reg]], [x[[reg]]]
|
|
; CHECK: ldr x0, [x[[reg]], #8]
|
|
%0 = tail call i8* @llvm.returnaddress(i32 2)
|
|
ret i8* %0
|
|
}
|
|
|
|
declare i8* @llvm.returnaddress(i32) nounwind readnone
|