[lld] [lld][LoongArch] Relax R_LARCH_PCALA_HI20 and R_LARCH_PCALA_LO12 (PR #112696)
Jinyang He via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 22:21:22 PST 2024
================
@@ -22,6 +22,40 @@ using namespace lld;
using namespace lld::elf;
namespace {
+#define LARCH_GET_RD(insn) (insn & 0x1f)
+#define LARCH_GET_RJ(insn) ((insn >> 5) & 0x1f)
+#define LARCH_MK_ADDI_D 0xffc00000
----------------
MQ-mengqing wrote:
Use functions rather than macros.
https://github.com/llvm/llvm-project/pull/112696
More information about the llvm-commits
mailing list