2010-05-22 01:47:14 +00:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
|
|
|
|
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX
|
2009-06-22 18:38:48 +00:00
|
|
|
; PR4344
|
|
|
|
; PR4416
|
|
|
|
|
2010-06-15 19:04:29 +00:00
|
|
|
define i8* @t() nounwind {
|
2009-06-22 18:38:48 +00:00
|
|
|
entry:
|
2010-05-22 01:47:14 +00:00
|
|
|
; DARWIN: t:
|
|
|
|
; DARWIN: mov r0, r7
|
|
|
|
|
|
|
|
; LINUX: t:
|
|
|
|
; LINUX: mov r0, r11
|
2009-06-22 18:38:48 +00:00
|
|
|
%0 = call i8* @llvm.frameaddress(i32 0)
|
|
|
|
ret i8* %0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|