[lld] [lld][RISC-V] Implement Qualcomm Relocations (PR #178584)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 1 10:04:35 PST 2026
================
@@ -0,0 +1,118 @@
+# REQUIRES: riscv
+# RUN: rm -rf %t && split-file %s %t && cd %t
+# RUN: llvm-mc -filetype=obj -triple=riscv32-unknown-elf -mattr=+xqcili,+xqcibi,+xqcilb a.s -o rv32.o -riscv-add-build-attributes
+
+# RUN: ld.lld rv32.o lds -pie -o rv32
+# RUN: llvm-objdump -td -M no-aliases --no-show-raw-insn %t/rv32 | FileCheck %s
+
+#--- a.s
+
+ .text
+ .p2align 1
+
+ .option exact
+
+ .global _start
+_start:
+
+ # CHECK: qc.li t0, 0x0
----------------
MaskRay wrote:
A more common pattern is
```
# CHECK
# CHECK-NEXT:
# CHECK-NEXT:
qc.li ...
qc.li ...
qc.li ...
```
https://github.com/llvm/llvm-project/pull/178584
More information about the llvm-commits
mailing list