[lld] [lld][LoongArch] Fix relaxation for R_LARCH_GOT_PC_{HI20, LO12} (PR #151264)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 19:19:00 PDT 2025


================
@@ -25,6 +25,11 @@
 # RELAX-NEXT:              pcaddi $a0, 4094
 # RELAX-NEXT:              pcaddi $a0, 4093
 
+# RELAX32-NEXT:            pcalau12i $a0, 4
----------------
SixWeining wrote:

This prefix is ambiguous. Actually this case is not relaxed.

https://github.com/llvm/llvm-project/pull/151264


More information about the llvm-commits mailing list