25 lines · plain
1; RUN: llc -o - %s -mtriple=arm64-apple-ios7.0 | FileCheck %s2 3define ptr @rt0(i32 %x) nounwind readnone {4entry:5; CHECK-LABEL: rt0:6; CHECK: hint #77; CHECK: mov x0, x308 %0 = tail call ptr @llvm.returnaddress(i32 0)9 ret ptr %010}11 12define ptr @rt2() nounwind readnone {13entry:14; CHECK-LABEL: rt2:15; CHECK: ldr x[[reg:[0-9]+]], [x29]16; CHECK: ldr x[[reg]], [x[[reg]]]17; CHECK: ldr x30, [x[[reg]], #8]18; CHECK: hint #719; CHECK: mov x0, x3020 %0 = tail call ptr @llvm.returnaddress(i32 2)21 ret ptr %022}23 24declare ptr @llvm.returnaddress(i32) nounwind readnone25