[all-commits] [llvm/llvm-project] b011bc: [RISCV] Reject XTHeadMemIdx load-update with rd ==...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Tue Sep 22 20:34:26 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b011bce803b02e0a13a593b70beec93c84a4a2e9
      https://github.com/llvm/llvm-project/commit/b011bce803b02e0a13a593b70beec93c84a4a2e9
  Author: Zeyi Xu <zeyi2 at nekoarch.cc>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
    A llvm/test/MC/Disassembler/RISCV/xthead-invalid-overlap.txt
    M llvm/test/MC/RISCV/rv64xtheadmemidx-invalid.s

  Log Message:
  -----------
  [RISCV] Reject XTHeadMemIdx load-update with rd == rs1 (#225271)

In spec: "The encoding of this instruction with equal _rd_ and _rs1_ is
reserved."

This commit fixes the problem in Assembler, Codegen is already correct.

Link:
-
[th.lbia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lbia.adoc#L28)
-
[th.lbib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lbib.adoc#L28)
-
[th.lbuia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lbuia.adoc#L28)
-
[th.lbuib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lbuib.adoc#L28)
-
[th.lhia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lhia.adoc#L28)
-
[th.lhib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lhib.adoc#L28)
-
[th.lhuia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lhuia.adoc#L28)
-
[th.lhuib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lhuib.adoc#L28)
-
[th.lwia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lwia.adoc#L28)
-
[th.lwib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lwib.adoc#L28)
-
[th.lwuia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lwuia.adoc#L28)
-
[th.lwuib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/lwuib.adoc#L28)
-
[th.ldia](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/ldia.adoc#L28)
-
[th.ldib](https://github.com/XUANTIE-RV/thead-extension-spec/blob/d16533b5a9cd790c369d849ddf9a48159a5a235c/xtheadmemidx/ldib.adoc#L28)

--

AI Usage: Cursor is used for resolving conflicts.

---------

Co-authored-by: Cursor <cursoragent at cursor.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list