mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
85f4fdaed4
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103531 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
590 B
LLVM
22 lines
590 B
LLVM
; RUN: llc < %s -regalloc=local -relocation-model=pic | FileCheck %s
|
|
; RUN: llc < %s -regalloc=fast -relocation-model=pic | FileCheck %s
|
|
|
|
target triple = "thumbv6-apple-darwin10"
|
|
|
|
@fred = internal global i32 0 ; <i32*> [#uses=1]
|
|
|
|
define arm_apcscc void @foo() nounwind {
|
|
entry:
|
|
; CHECK: str r0, [sp
|
|
%0 = call arm_apcscc i32 (...)* @bar() nounwind ; <i32> [#uses=1]
|
|
; CHECK: blx _bar
|
|
; CHECK: ldr r1, [sp
|
|
store i32 %0, i32* @fred, align 4
|
|
br label %return
|
|
|
|
return: ; preds = %entry
|
|
ret void
|
|
}
|
|
|
|
declare arm_apcscc i32 @bar(...)
|