[llvm] [RISCV] Remove NoVendorXMIPSCBOP from the Zicbop instructions. (PR #191015)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 10:29:07 PDT 2026
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/191015
The XMIPSCBOP encodings use OP-CUSTOM-0 there's no encoding overlap here. Presence of a vendor extension should not disable parsing or disassembly of a standard extension that doesn't overlap.
>From e9f1eccf5217c607b438c17891d108688e075b2c Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Wed, 8 Apr 2026 10:27:23 -0700
Subject: [PATCH] [RISCV] Remove NoVendorXMIPSCBOP from the Zicbop
instructions.
The XMIPSCBOP encodings use OP-CUSTOM-0 there's no encoding overlap
here. Presence of a vendor extension should not disable parsing or
disassembly of a standard extension that doesn't overlap.
---
llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td b/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
index 3ddcb1d615dbb..674612e580bfc 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
@@ -58,7 +58,7 @@ let Predicates = [HasStdExtZicboz] in {
def CBO_ZERO : CBO_r<0b000000000100, "cbo.zero">, Sched<[]>;
} // Predicates = [HasStdExtZicboz]
-let Predicates = [HasStdExtZicbop, NoVendorXMIPSCBOP] in {
+let Predicates = [HasStdExtZicbop] in {
def PREFETCH_I : Prefetch_ri<0b00000, "prefetch.i">, Sched<[]>;
def PREFETCH_R : Prefetch_ri<0b00001, "prefetch.r">, Sched<[]>;
def PREFETCH_W : Prefetch_ri<0b00011, "prefetch.w">, Sched<[]>;
More information about the llvm-commits
mailing list