mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34: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:
parent
7c6f90d486
commit
278916500a
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user