[llvm] 95e18b2 - [PowerPC] Fix a typo for InstAlias of mfsprg
Kang Zhang via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 18:11:11 PDT 2020
Author: Kang Zhang
Date: 2020-08-21T01:10:52Z
New Revision: 95e18b2d9d5f93c209ea81df79c2e18ef77de506
URL: https://github.com/llvm/llvm-project/commit/95e18b2d9d5f93c209ea81df79c2e18ef77de506
DIFF: https://github.com/llvm/llvm-project/commit/95e18b2d9d5f93c209ea81df79c2e18ef77de506.diff
LOG: [PowerPC] Fix a typo for InstAlias of mfsprg
D77531 has a type for mfsprg, it should be mtsprg. This patch is to fix
this typo.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td
index 0c3f63fa0fce..4346f8d99390 100644
--- a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td
+++ b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td
@@ -1029,8 +1029,8 @@ def : InstAlias<"mfamr $Rx", (MFSPR8 g8rc:$Rx, 29)>;
foreach SPRG = 0-3 in {
def : InstAlias<"mfsprg $RT, "#SPRG, (MFSPR8 g8rc:$RT, !add(SPRG, 272))>;
def : InstAlias<"mfsprg"#SPRG#" $RT", (MFSPR8 g8rc:$RT, !add(SPRG, 272))>;
- def : InstAlias<"mfsprg "#SPRG#", $RT", (MTSPR8 !add(SPRG, 272), g8rc:$RT)>;
- def : InstAlias<"mfsprg"#SPRG#" $RT", (MTSPR8 !add(SPRG, 272), g8rc:$RT)>;
+ def : InstAlias<"mtsprg "#SPRG#", $RT", (MTSPR8 !add(SPRG, 272), g8rc:$RT)>;
+ def : InstAlias<"mtsprg"#SPRG#" $RT", (MTSPR8 !add(SPRG, 272), g8rc:$RT)>;
}
def : InstAlias<"mfasr $RT", (MFSPR8 g8rc:$RT, 280)>;
More information about the llvm-commits
mailing list