[clang] [clang][Mips] Use the ISA features instead of CPU name checks (PR #245672)
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 00:07:56 PST 2026
================
@@ -314,8 +295,7 @@ bool MipsTargetInfo::validateTarget(DiagnosticsEngine &Diags) const {
return false;
}
// Option -mmsa permitted on Mips32 iff revision 2 or higher is present
- if (HasMSA && (CPU == "mips1" || CPU == "mips2" || getISARev() < 2) &&
- ABI == "o32") {
+ if (HasMSA && ISARev < 2 && ABI == "o32") {
----------------
brad0 wrote:
Same as above.
https://github.com/llvm/llvm-project/pull/245672
More information about the cfe-commits
mailing list