mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
Add dci/ici instructions for PPC 476 and friends.
llvm-svn: 214864
This commit is contained in:
parent
f726eed55e
commit
bc6e9b7c12
@ -3090,6 +3090,22 @@ def WRTEEI: I<31, (outs), (ins i1imm:$E), "wrteei $E", IIC_SprMTMSR>,
|
|||||||
let Inst{21-30} = 163;
|
let Inst{21-30} = 163;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def DCI: I<31, (outs), (ins u4imm:$CT), "dci $CT", IIC_LdStLoad>,
|
||||||
|
Requires<[IsPPC4xx]> {
|
||||||
|
bits<4> CT;
|
||||||
|
|
||||||
|
let Inst{7-10} = CT;
|
||||||
|
let Inst{21-30} = 454;
|
||||||
|
}
|
||||||
|
|
||||||
|
def ICI: I<31, (outs), (ins u4imm:$CT), "ici $CT", IIC_LdStLoad>,
|
||||||
|
Requires<[IsPPC4xx]> {
|
||||||
|
bits<4> CT;
|
||||||
|
|
||||||
|
let Inst{7-10} = CT;
|
||||||
|
let Inst{21-30} = 966;
|
||||||
|
}
|
||||||
|
|
||||||
def MFMSR : XForm_rs<31, 83, (outs gprc:$RT), (ins),
|
def MFMSR : XForm_rs<31, 83, (outs gprc:$RT), (ins),
|
||||||
"mfmsr $RT", IIC_SprMFMSR, []>;
|
"mfmsr $RT", IIC_SprMFMSR, []>;
|
||||||
|
|
||||||
|
@ -19,3 +19,8 @@
|
|||||||
0x7c 0x43 0x0f 0x24
|
0x7c 0x43 0x0f 0x24
|
||||||
# CHECK: tlbsx. 2, 3, 1
|
# CHECK: tlbsx. 2, 3, 1
|
||||||
0x7c 0x43 0x0f 0x25
|
0x7c 0x43 0x0f 0x25
|
||||||
|
|
||||||
|
# CHECK-BE: dci 14
|
||||||
|
0x7d 0xc0 0x03 0x8c
|
||||||
|
# CHECK-BE: ici 14
|
||||||
|
0x7d 0xc0 0x07 0x8c
|
||||||
|
@ -90,3 +90,10 @@
|
|||||||
# CHECK-BE: mtspr 988, 2 # encoding: [0x7c,0x5c,0xf3,0xa6]
|
# CHECK-BE: mtspr 988, 2 # encoding: [0x7c,0x5c,0xf3,0xa6]
|
||||||
# CHECK-LE: mtspr 988, 2 # encoding: [0xa6,0xf3,0x5c,0x7c]
|
# CHECK-LE: mtspr 988, 2 # encoding: [0xa6,0xf3,0x5c,0x7c]
|
||||||
mttbhi %r2
|
mttbhi %r2
|
||||||
|
|
||||||
|
# CHECK-BE: dci 14 # encoding: [0x7d,0xc0,0x03,0x8c]
|
||||||
|
# CHECK-LE: dci 14 # encoding: [0x8c,0x03,0xc0,0x7d]
|
||||||
|
dci 14
|
||||||
|
# CHECK-BE: ici 14 # encoding: [0x7d,0xc0,0x07,0x8c]
|
||||||
|
# CHECK-LE: ici 14 # encoding: [0x8c,0x07,0xc0,0x7d]
|
||||||
|
ici 14
|
||||||
|
Loading…
x
Reference in New Issue
Block a user