mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
11 lines
210 B
LLVM
11 lines
210 B
LLVM
|
; RUN: llc < %s -mtriple=arm64-apple-ios | FileCheck %s
|
||
|
|
||
|
@x = extern_weak global i32
|
||
|
|
||
|
define i32 @fn() nounwind ssp {
|
||
|
; CHECK-LABEL: fn:
|
||
|
; CHECK: .weak_reference
|
||
|
%val = load i32* @x, align 4
|
||
|
ret i32 %val
|
||
|
}
|