[all-commits] [llvm/llvm-project] b3ef8d: [LoongArch] Emit R_LARCH_RELAX when expanding some...

Jinyang He via All-commits all-commits at lists.llvm.org
Tue Dec 26 16:52:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3ef8dce9811b2725639b0d4fac3f85c7e112817
      https://github.com/llvm/llvm-project/commit/b3ef8dce9811b2725639b0d4fac3f85c7e112817
  Author: Jinyang He <hejinyang at loongson.cn>
  Date:   2023-12-27 (Wed, 27 Dec 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.h
    M llvm/test/MC/LoongArch/Macros/macros-la.s
    M llvm/test/MC/LoongArch/Misc/subsection.s
    M llvm/test/MC/LoongArch/Relocations/relax-addsub.s

  Log Message:
  -----------
  [LoongArch] Emit R_LARCH_RELAX when expanding some LoadAddress (#72961)

Emit relax relocs when expand non-large la.pcrel and non-large la.got on
llvm-mc stage, which like what does on GAS.
1, la.pcrel -> PCALA_HI20 + RELAX + PCALA_LO12 + RELAX
2, la.got -> GOT_PC_HI20 + RELAX + GOT_PC_LO12 + RELAX




More information about the All-commits mailing list