[llvm] [RISCV] Add support for vendor relocations on Xqci extensions (PR #135400)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 12:02:43 PDT 2025


================
@@ -19,6 +21,15 @@ qc.e.bgeui x8, 12, foo
 # RELOC: R_RISCV_JAL foo 0x0
 # INSTR: qc.e.bgeui s0, 12, foo
 
+# Check that we print the correct relocations in exact mode
+.option exact
+qc.e.bgeui x8, 12, foo
+# RELOC: R_RISCV_VENDOR QUALCOMM 0x0
----------------
lenary wrote:

QUALCOMM should be emitted even without `exact`, we have started to use exact to avoid instruction compression happening and make testing more specific.

I will move to `objdump -dr`, I agree it's often clearer. I will revisit these tests.

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


More information about the llvm-commits mailing list