mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
[mips] Do not emit ".option pic0" if target is mips64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a308df027
commit
842cfc91f2
@ -562,7 +562,7 @@ void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||
if (OutStreamer.hasRawTextSupport()) {
|
||||
OutStreamer.EmitRawText(StringRef("\t.abicalls"));
|
||||
Reloc::Model RM = Subtarget->getRelocationModel();
|
||||
if (RM == Reloc::Static)
|
||||
if (RM == Reloc::Static && !Subtarget->hasMips64())
|
||||
OutStreamer.EmitRawText(StringRef("\t.option\tpic0"));
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 -relocation-model=static %s -o - | FileCheck -check-prefix=CHECK-STATIC %s
|
||||
; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | FileCheck -check-prefix=CHECK-PIC %s
|
||||
; RUN: llc -filetype=asm -mtriple mips64el-unknown-linux -mcpu=mips64 -relocation-model=static %s -o - | FileCheck -check-prefix=CHECK-PIC %s
|
||||
|
||||
; CHECK-STATIC: .abicalls
|
||||
; CHECK-STATIC-NEXT: pic0
|
||||
; CHECK-PIC: .abicalls
|
||||
|
Loading…
x
Reference in New Issue
Block a user