[clang] [llvm] [RISCV] CodeGen of RVE and ilp32e/lp64e ABIs (PR #76777)

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 00:54:28 PST 2024


================
@@ -386,6 +393,11 @@ bool RISCVTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
   if (llvm::is_contained(Features, "+experimental"))
     HasExperimental = true;
 
+  if (ABI == "ilp32e" && ISAInfo->hasExtension("d")) {
+    Diags.Report(diag::err_invalid_feature_combination)
+        << "ILP32E cannot be used with the D ISA extension";
+    return false;
+  }
----------------
tclin914 wrote:

Does it also need to check ilp32e isn't compatible with zcmp?

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


More information about the llvm-commits mailing list