forked from OSchip/llvm-project
parent
865866e7fe
commit
fa63d3096d
|
@ -24,4 +24,5 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
|
|||
ZeroDirective = "\t.space\t";
|
||||
GPRel32Directive = "\t.gpword\t";
|
||||
HasSetDirective = false;
|
||||
WeakRefDirective = "\t.weak\t";
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
; RUN: llc -march=mips < %s | FileCheck %s
|
||||
|
||||
@t = common global i32 (...)* null, align 4
|
||||
|
||||
define void @f() nounwind {
|
||||
entry:
|
||||
store i32 (...)* @test_weak, i32 (...)** @t, align 4
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: .weak test_weak
|
||||
declare extern_weak i32 @test_weak(...)
|
Loading…
Reference in New Issue