mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
[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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user