1 ; RUN: llc -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
3 define i8* @rt0(i32 %x) nounwind readnone {
7 %0 = tail call i8* @llvm.returnaddress(i32 0)
11 define i8* @rt2() nounwind readnone {
14 ; CHECK: ldr x[[reg:[0-9]+]], [x29]
15 ; CHECK: ldr x[[reg]], [x[[reg]]]
16 ; CHECK: ldr x0, [x[[reg]], #8]
17 %0 = tail call i8* @llvm.returnaddress(i32 2)
21 declare i8* @llvm.returnaddress(i32) nounwind readnone