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