This patch introduces support for %hix, %lox, %gdop_hix22, %gdop_lox10 and %gdop.
An extra test is introduced to make sure the fixups are correctly applied.
Paths
| Differential D102575
[SPARC][MC] Support more relocation types ClosedPublic Authored by LemonBoy on May 16 2021, 4:41 AM.
Details Summary This patch introduces support for %hix, %lox, %gdop_hix22, %gdop_lox10 and %gdop. An extra test is introduced to make sure the fixups are correctly applied.
Diff Detail
Event Timelinejrtc27 added inline comments.
This revision now requires changes to proceed.May 16 2021, 4:52 AM
Comment Actions Is "tail reloc" a standard term for this? Seems like that could be confused with the notion of tail calls...
Comment Actions
Not really, the operand matches relocation operands in tail position hence the name. I'm open to suggestions.
Comment Actions This looks good to me. Maybe change TailRelocSym to TailOpRelocSym or TailOperandRelocSym to make it more clear that it refers to the tail operand? Comment Actions LemonBoy seems to have disappeared for the time being. Anyway of moving this forward? This revision was landed with ongoing or failed builds. Closed by commit rG1bfc5e720cad: [SPARC][MC] Support more relocation types (authored by LemonBoy, committed by brad). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 434339 llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
llvm/lib/Target/Sparc/MCTargetDesc/SparcFixupKinds.h
llvm/lib/Target/Sparc/MCTargetDesc/SparcMCCodeEmitter.cpp
llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h
llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
llvm/lib/Target/Sparc/SparcISelLowering.h
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/lib/Target/Sparc/SparcInstr64Bit.td
llvm/lib/Target/Sparc/SparcInstrInfo.td
llvm/test/MC/Sparc/sparc-fixups.s
llvm/test/MC/Sparc/sparc-relocations.s
|
Load isn't a great name given there's Load_TLS. Should say GOT or similar in it.