bolt/deps/llvm-18.1.8/llvm/test/CodeGen/AArch64/arm64-weak-reference.ll

11 lines
214 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; 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, ptr @x, align 4
ret i32 %val
}