[PowerPC] Support extended sc mnemonic

A plain "sc" without argument is supposed to be treated like "sc 0"
by the assembler.  This patch adds a corresponding alias.

Problem reported by Joerg Sonnenberger.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ulrich Weigand
2013-06-10 17:19:43 +00:00
parent 7c6f90d486
commit 278916500a
2 changed files with 4 additions and 0 deletions

View File

@@ -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",