[llvm] [RISCV] Mark QC Relocations as Relaxable (PR #142794)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 10:34:07 PDT 2025
================
@@ -70,6 +70,35 @@ qc.e.li s3, other_section
same_section:
nop
+.option relax
+
+# ASM: qc.li a1, %qc.abs20(0)
+# OBJ: qc.li a1, 0x0
+# OBJ-NEXT: R_RISCV_VENDOR QUALCOMM{{$}}
+# OBJ-NEXT: R_RISCV_CUSTOM192 *ABS*{{$}}
+# OBJ-NEXT: R_RISCV_RELAX
+qc.li a1, %qc.abs20(abs_symbol)
+
+# ASM: qc.e.li s1, 0
+# OBJ-NEXT: qc.e.li s1, 0x0
+qc.e.li s1, abs_symbol
+
+# ASM: qc.li a1, %qc.abs20(undef)
+# OBJ: qc.li a1, 0x0
----------------
lenary wrote:
well spotted, thanks.
https://github.com/llvm/llvm-project/pull/142794
More information about the llvm-commits
mailing list