mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
mfdcr / mtdcr support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3123,6 +3123,11 @@ def RFCI : XForm_0<19, 51, (outs), (ins), "rfci", IIC_BrB, []>,
|
|||||||
def RFDI : XForm_0<19, 39, (outs), (ins), "rfdi", IIC_BrB, []>;
|
def RFDI : XForm_0<19, 39, (outs), (ins), "rfdi", IIC_BrB, []>;
|
||||||
def RFMCI : XForm_0<19, 38, (outs), (ins), "rfmci", IIC_BrB, []>;
|
def RFMCI : XForm_0<19, 38, (outs), (ins), "rfmci", IIC_BrB, []>;
|
||||||
|
|
||||||
|
def MFDCR : XFXForm_1<31, 323, (outs gprc:$RT), (ins i32imm:$SPR),
|
||||||
|
"mfdcr $RT, $SPR", IIC_SprMFSPR>;
|
||||||
|
def MTDCR : XFXForm_1<31, 451, (outs), (ins gprc:$RT, i32imm:$SPR),
|
||||||
|
"mtdcr $SPR, $RT", IIC_SprMTSPR>;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PowerPC Assembler Instruction Aliases
|
// PowerPC Assembler Instruction Aliases
|
||||||
//
|
//
|
||||||
|
@@ -2268,3 +2268,8 @@
|
|||||||
0x7c 0x6c 0x5a 0xec
|
0x7c 0x6c 0x5a 0xec
|
||||||
# CHECK: dststt 12, 11, 3
|
# CHECK: dststt 12, 11, 3
|
||||||
0x7e 0x6c 0x5a 0xec
|
0x7e 0x6c 0x5a 0xec
|
||||||
|
|
||||||
|
# CHECK: mfdcr 3, 178
|
||||||
|
0x7c 0x72 0x2a 0x86
|
||||||
|
# CHECK: mtdcr 178, 3
|
||||||
|
0x7c 0x72 0x2b 0x86
|
||||||
|
@@ -3613,3 +3613,11 @@
|
|||||||
# CHECK-BE: dststt 12, 11, 3 # encoding: [0x7e,0x6c,0x5a,0xec]
|
# CHECK-BE: dststt 12, 11, 3 # encoding: [0x7e,0x6c,0x5a,0xec]
|
||||||
# CHECK-LE: dststt 12, 11, 3 # encoding: [0xec,0x5a,0x6c,0x7e]
|
# CHECK-LE: dststt 12, 11, 3 # encoding: [0xec,0x5a,0x6c,0x7e]
|
||||||
dststt %r12, %r11, 3
|
dststt %r12, %r11, 3
|
||||||
|
|
||||||
|
# PPC 403 support
|
||||||
|
# CHECK-BE: mfdcr 3, 178 # encoding: [0x7c,0x72,0x2a,0x86]
|
||||||
|
# CHECK-LE: mfdcr 3, 178 # encoding: [0x86,0x2a,0x72,0x7c]
|
||||||
|
mfdcr 3,178
|
||||||
|
# CHECK-BE: mtdcr 178, 3 # encoding: [0x7c,0x72,0x2b,0x86]
|
||||||
|
# CHECK-LE: mtdcr 178, 3 # encoding: [0x86,0x2b,0x72,0x7c]
|
||||||
|
mtdcr 178,3
|
||||||
|
Reference in New Issue
Block a user