bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Mips/weak.ll

13 lines
236 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc -march=mips < %s | FileCheck %s
@t = common global ptr null, align 4
define void @f() nounwind {
entry:
store ptr @test_weak, ptr @t, align 4
ret void
}
; CHECK: .weak test_weak
declare extern_weak i32 @test_weak(...)