[llvm] [RISCV] Add an error that Xqciac and Xqcicm are not compatible with C+D or Zcd. (PR #130816)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 15:50:30 PDT 2025


================
@@ -740,13 +740,15 @@ Error RISCVISAInfo::checkDependency() {
   bool HasZfinx = Exts.count("zfinx") != 0;
   bool HasVector = Exts.count("zve32x") != 0;
   bool HasZvl = MinVLen != 0;
-  bool HasZcmt = Exts.count("zcmt") != 0;
+  bool HasZcmp = Exts.count("zcmp") != 0;
+  bool HasXqccmp = Exts.count("xqccmp") != 0;
+
   static constexpr StringLiteral XqciExts[] = {
       {"xqcia"},   {"xqciac"}, {"xqcibm"},  {"xqcicli"},
       {"xqcicm"},  {"xqcics"}, {"xqcicsr"}, {"xqciint"},
       {"xqcilia"}, {"xqcilo"}, {"xqcilsm"}, {"xqcisls"}};
-  bool HasZcmp = Exts.count("zcmp") != 0;
-  bool HasXqccmp = Exts.count("xqccmp") != 0;
+  static constexpr StringLiteral ZcdOverlaps[] = {
+      {"zcmt"}, {"zcmp"}, {"xqciac"}, {"xqcicm"}};
----------------
topperc wrote:

Good point. I forgot to look in your other .td file when I was checking encodings.

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


More information about the llvm-commits mailing list