[llvm] 0c36771 - [RISCV] Remove NoVendorXMIPSCBOP from the Zicbop instructions. (#191015)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 19:22:31 PDT 2026


Author: Craig Topper
Date: 2026-04-08T19:22:25-07:00
New Revision: 0c36771309f4f87a76a006a3a1430b30bede624a

URL: https://github.com/llvm/llvm-project/commit/0c36771309f4f87a76a006a3a1430b30bede624a
DIFF: https://github.com/llvm/llvm-project/commit/0c36771309f4f87a76a006a3a1430b30bede624a.diff

LOG: [RISCV] Remove NoVendorXMIPSCBOP from the Zicbop instructions. (#191015)

The XMIPSCBOP encodings use OP-CUSTOM-0 so 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.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td b/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
index 3ddcb1d615dbb..6a13af992c1fd 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td
@@ -58,11 +58,11 @@ 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<[]>;
-} // Predicates = [HasStdExtZicbop, NoVendorXMIPSCBOP]
+} // Predicates = [HasStdExtZicbop]
 
 //===----------------------------------------------------------------------===//
 // Patterns


        


More information about the llvm-commits mailing list