summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/arm-frameaddr.ll
blob: 9c4173ef0ce23a7cc7c12941c4e73eea86f47942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc < %s -mtriple=arm-apple-darwin  | FileCheck %s -check-prefix=DARWIN
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX
; PR4344
; PR4416

define i8* @t() nounwind {
entry:
; DARWIN-LABEL: t:
; DARWIN: mov r0, r7

; LINUX-LABEL: t:
; LINUX: mov r0, r11
	%0 = call i8* @llvm.frameaddress(i32 0)
        ret i8* %0
}

declare i8* @llvm.frameaddress(i32) nounwind readnone