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