[llvm] [RISCV] fixup_riscv_rvc_imm may be linker relaxable (PR #161797)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 12:08:07 PDT 2025
================
@@ -0,0 +1,43 @@
+
+# RUN: llvm-mc --triple=riscv32 -mattr=+relax,+experimental-xqcili \
+# RUN: %s -filetype=obj -o - -riscv-add-build-attributes \
+# RUN: | llvm-objdump -dr -M no-aliases - \
+# RUN: | FileCheck %s
+
+## This tests that we correctly emit relocations for linker relaxation when
+## emitting `QC.E.LI` and `QC.LI`.
+
+ .section .text.ex1, "ax", @progbits
+ .global ex1
----------------
lenary wrote:
Done
https://github.com/llvm/llvm-project/pull/161797
More information about the llvm-commits
mailing list