2010-05-22 09:47:14 +08: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-23 02:38:48 +08:00
|
|
|
; PR4344
|
|
|
|
; PR4416
|
|
|
|
|
2010-06-16 03:04:29 +08:00
|
|
|
define i8* @t() nounwind {
|
2009-06-23 02:38:48 +08:00
|
|
|
entry:
|
2010-05-22 09:47:14 +08:00
|
|
|
; DARWIN: t:
|
|
|
|
; DARWIN: mov r0, r7
|
|
|
|
|
|
|
|
; LINUX: t:
|
|
|
|
; LINUX: mov r0, r11
|
2009-06-23 02:38:48 +08:00
|
|
|
%0 = call i8* @llvm.frameaddress(i32 0)
|
|
|
|
ret i8* %0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|