[lld] [lld][LoongArch] Relax R_LARCH_PCALA_HI20 and R_LARCH_PCALA_LO12 (PR #112696)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 01:12:36 PDT 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)
----------------
ywgrit wrote:
Here it is because I referenced most of the other similar places. I will remove the () on both sides of the insn >> 5.
https://github.com/llvm/llvm-project/pull/112696
More information about the llvm-commits
mailing list