================
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions 
&Opts,
     Builder.defineMacro("__riscv_muldiv");
   }
 
-  if (ISAInfo->hasExtension("a")) {
+  // The "a" extension is composed of "zalrsc" and "zaamo"
+  if (ISAInfo->hasExtension("zalrsc") && ISAInfo->hasExtension("zaamo"))
----------------
topperc wrote:

I think this should stay "a". I put up 
https://github.com/llvm/llvm-project/pull/163890 to make Zalrsc+Zaamo imply A.

https://github.com/llvm/llvm-project/pull/163672
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to