1 ; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN 2 ; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX 3 ; PR4344 4 ; PR4416 5 6 define i8* @t() nounwind { 7 entry: 8 ; DARWIN-LABEL: t: 9 ; DARWIN: mov r0, r7 10 11 ; LINUX-LABEL: t: 12 ; LINUX: mov r0, r11 13 %0 = call i8* @llvm.frameaddress(i32 0) 14 ret i8* %0 15 } 16 17 declare i8* @llvm.frameaddress(i32) nounwind readnone 18