]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/arm-frameaddr.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / arm-frameaddr.ll
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