mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
5c28673c3b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190298 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
289 B
LLVM
18 lines
289 B
LLVM
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
|
|
; CHECK: .weak fd
|
|
define weak void @fd() {
|
|
call void @fr(i32* @gd, i32* @gr)
|
|
ret void
|
|
}
|
|
|
|
; CHECK: .weak gd
|
|
@gd = weak global i32 0
|
|
|
|
; CHECK: .weak gr
|
|
@gr = extern_weak global i32
|
|
|
|
; CHECK: .weak fr
|
|
declare extern_weak void @fr(i32*, i32*)
|
|
|