mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
2ebb4f81f7
for the linux targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106029 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
395 B
LLVM
18 lines
395 B
LLVM
; 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: t:
|
|
; DARWIN: mov r0, r7
|
|
|
|
; LINUX: t:
|
|
; LINUX: mov r0, r11
|
|
%0 = call i8* @llvm.frameaddress(i32 0)
|
|
ret i8* %0
|
|
}
|
|
|
|
declare i8* @llvm.frameaddress(i32) nounwind readnone
|