1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

mfdcr / mtdcr support

llvm-svn: 214639
This commit is contained in:
Joerg Sonnenberger 2014-08-02 20:00:26 +00:00
parent 4cdbc63bd2
commit e208527e31
3 changed files with 18 additions and 0 deletions

View File

@ -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 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
//

View File

@ -2268,3 +2268,8 @@
0x7c 0x6c 0x5a 0xec
# CHECK: dststt 12, 11, 3
0x7e 0x6c 0x5a 0xec
# CHECK: mfdcr 3, 178
0x7c 0x72 0x2a 0x86
# CHECK: mtdcr 178, 3
0x7c 0x72 0x2b 0x86

View File

@ -3613,3 +3613,11 @@
# CHECK-BE: dststt 12, 11, 3 # encoding: [0x7e,0x6c,0x5a,0xec]
# CHECK-LE: dststt 12, 11, 3 # encoding: [0xec,0x5a,0x6c,0x7e]
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