1 ; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s
2 ; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s
6 define i8* @rt0(i32 %x) nounwind readnone {
11 %0 = tail call i8* @llvm.returnaddress(i32 0)
15 define i8* @rt2() nounwind readnone {
21 ; CHECK: ldr r0, [r0, #4]
22 %0 = tail call i8* @llvm.returnaddress(i32 2)
26 declare i8* @llvm.returnaddress(i32) nounwind readnone