[llvm] 0bec7e4 - Revert "[NFC][PowerPC] Remove the repeated definition for some InstAlias of mtspr/mfspr"
Kang Zhang via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 7 22:33:09 PST 2020
Author: Kang Zhang
Date: 2020-03-08T06:32:12Z
New Revision: 0bec7e47d0ab99958854c52fa0b68d20e14f763f
URL: https://github.com/llvm/llvm-project/commit/0bec7e47d0ab99958854c52fa0b68d20e14f763f
DIFF: https://github.com/llvm/llvm-project/commit/0bec7e47d0ab99958854c52fa0b68d20e14f763f.diff
LOG: Revert "[NFC][PowerPC] Remove the repeated definition for some InstAlias of mtspr/mfspr"
This reverts commit 46126a30f268a54dc68a40ca07556cf8aca5edbc.
Some test cases failed.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCInstrInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 9edf0ae5d4f4..844ba72d93b1 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -4627,8 +4627,19 @@ foreach SPRG = 4-7 in {
def : InstAlias<"mtasr $RS", (MTSPR 280, gprc:$RS)>;
+def : InstAlias<"mfdec $RT", (MFSPR gprc:$RT, 22)>;
+def : InstAlias<"mtdec $RT", (MTSPR 22, gprc:$RT)>;
+
def : InstAlias<"mfpvr $RT", (MFSPR gprc:$RT, 287)>;
+def : InstAlias<"mfsdr1 $RT", (MFSPR gprc:$RT, 25)>;
+def : InstAlias<"mtsdr1 $RT", (MTSPR 25, gprc:$RT)>;
+
+def : InstAlias<"mfsrr0 $RT", (MFSPR gprc:$RT, 26)>;
+def : InstAlias<"mfsrr1 $RT", (MFSPR gprc:$RT, 27)>;
+def : InstAlias<"mtsrr0 $RT", (MTSPR 26, gprc:$RT)>;
+def : InstAlias<"mtsrr1 $RT", (MTSPR 27, gprc:$RT)>;
+
def : InstAlias<"tlbie $RB", (TLBIE R0, gprc:$RB)>;
def : InstAlias<"tlbrehi $RS, $A", (TLBRE2 gprc:$RS, gprc:$A, 0)>,
More information about the llvm-commits
mailing list