[llvm] [AArch64][llvm] Redefine some insns as an alias of `SYS` (PR #187004)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 07:27:41 PDT 2026


================
@@ -1123,9 +1199,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";
----------------
CarolineConcatto wrote:

I dont see tests for this alias

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


More information about the llvm-commits mailing list