mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
1e3f66afe8
No code changes for this bunch, just some test rejigs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206291 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
508 B
LLVM
22 lines
508 B
LLVM
; RUN: llc < %s -mtriple=aarch64-none-linux-gnu | FileCheck %s
|
|
; RUN: llc -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
|
|
|
|
define i8* @t() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: t:
|
|
; CHECK: mov x0, x29
|
|
%0 = call i8* @llvm.frameaddress(i32 0)
|
|
ret i8* %0
|
|
}
|
|
|
|
define i8* @t2() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: t2:
|
|
; CHECK: ldr x[[reg:[0-9]+]], [x29]
|
|
; CHECK: ldr {{x[0-9]+}}, [x[[reg]]]
|
|
%0 = call i8* @llvm.frameaddress(i32 2)
|
|
ret i8* %0
|
|
}
|
|
|
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|