[llvm] [AArch64][llvm] Redefine some insns as an alias of `SYS` (PR #187004)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 09:07:44 PDT 2026
================
@@ -1123,9 +1214,34 @@ bool AArch64InstPrinter::printSyslAlias(const MCInst *MI,
Name = std::string(GICR->Name);
} else
return false;
+ } else if (CnVal == 7 && CmVal == 7) {
+ if (!(STI.hasFeature(AArch64::FeatureAll) ||
+ STI.hasFeature(AArch64::FeatureGCS)) ||
+ Op1Val != 3)
+ return false;
+
+ Name = "";
+ switch (Op2Val) {
+ default:
+ return false;
+ case 1:
+ Ins = "gcspopm";
+ OptionalReg = true;
+ break;
+ case 3:
+ Ins = "gcsss2";
+ break;
+ }
} else
return false;
+ if (Name.empty()) {
----------------
Lukacma wrote:
This could also be unified with existing code.
https://github.com/llvm/llvm-project/pull/187004
More information about the llvm-commits
mailing list