1 ; RUN: llc -mtriple=arm64-apple-ios -global-isel -o - %s | FileCheck %s
3 define ptr @rt0(i32 %x) nounwind readnone {
7 %0 = tail call ptr @llvm.frameaddress(i32 0)
11 define ptr @rt2() nounwind readnone {
14 ; CHECK: ldr x[[reg:[0-9]+]], [x29]
15 ; CHECK: ldr x0, [x[[reg]]]
16 %0 = tail call ptr @llvm.frameaddress(i32 2)
20 declare ptr @llvm.frameaddress(i32) nounwind readnone