[llvm] [RISCV][MC] Add aliases for beq/bne with x0 as the first argument => beqz/bnez (PR #139086)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 09:49:34 PDT 2025
================
@@ -965,8 +965,12 @@ def : InstAlias<"sgtu $rd, $rs, $rt", (SLTU GPR:$rd, GPR:$rt, GPR:$rs), 0>;
def : InstAlias<"beqz $rs, $offset",
(BEQ GPR:$rs, X0, bare_simm13_lsb0:$offset)>;
+def : InstAlias<"beqz $rs, $offset",
----------------
topperc wrote:
I think the initial sort is by Record name. Anonymous records don't have name so they are sorted by the source order.
https://github.com/llvm/llvm-project/pull/139086
More information about the llvm-commits
mailing list