aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td2
-rw-r--r--test/MC/PowerPC/ppc64-encoding.s2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index e5daafe..1b7ea93 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -2154,6 +2154,8 @@ class PPCAsmPseudo<string asm, dag iops>
let isPseudo = 1;
}
+def : InstAlias<"sc", (SC 0)>;
+
def : InstAlias<"mr $rA, $rB", (OR8 g8rc:$rA, g8rc:$rB, g8rc:$rB)>;
def SLWI : PPCAsmPseudo<"slwi $rA, $rS, $n",
diff --git a/test/MC/PowerPC/ppc64-encoding.s b/test/MC/PowerPC/ppc64-encoding.s
index a955f4f..d11ad4f 100644
--- a/test/MC/PowerPC/ppc64-encoding.s
+++ b/test/MC/PowerPC/ppc64-encoding.s
@@ -43,6 +43,8 @@
# CHECK: sc 1 # encoding: [0x44,0x00,0x00,0x22]
sc 1
+# CHECK: sc 0 # encoding: [0x44,0x00,0x00,0x02]
+ sc
# Fixed-point facility