[llvm] [RISCV] Relax out of range Xqcibi conditional branches (PR #134336)

Sudharsan Veeravalli via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 3 19:56:15 PDT 2025


================
@@ -10,23 +10,22 @@
 
 .text
 
-# Check that branch to an undefined symbol is handled
-# FIXME: This should be relaxed to an inverse  branch and jump
+# Since foo is undefined, this will be relaxed to (qc.beqi + jal)
 qc.bnei x6, 10, foo
-# RELOC: R_RISCV_BRANCH foo 0x0
+# RELOC: R_RISCV_JAL foo 0x0
 # INSTR: qc.bnei t1, 10, foo
 # FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_branch
 
-# FIXME: This should be relaxed to an inverse  branch and jump
+# Since foo is undefined, this will be relaxed to (qc.e.bltui + jal)
 qc.e.bgeui x8, 12, foo
-# RELOC: R_RISCV_CUSTOM193 foo 0x0
+# RELOC: R_RISCV_JAL foo 0x0
 # INSTR: qc.e.bgeui s0, 12, foo
 # FIXUP: fixup A - offset: 0, value: foo, kind: fixup_riscv_qc_e_branch
 
 # Check that a label in a different section is handled similar to an undefined symbol
-# FIXME: This should be relaxed to an inverse  branch and jump
+# Since foo is undefined, this will be relaxed to (qc.e.bgeui + jal)
----------------
svs-quic wrote:

ah thanks that was a bad copy paste. fixed it.

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


More information about the llvm-commits mailing list