1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[PowerPC] Support "eieio" instruction

This adds support for the "eieio" instruction to
the asm parser.

llvm-svn: 185349
This commit is contained in:
Ulrich Weigand 2013-07-01 17:06:26 +00:00
parent 61e2254d15
commit 22cc4fd86f
3 changed files with 11 additions and 1 deletions

View File

@ -484,6 +484,12 @@ class XForm_24_sync<bits<6> opcode, bits<10> xo, dag OOL, dag IOL,
let Inst{31} = 0; let Inst{31} = 0;
} }
class XForm_24_eieio<bits<6> opcode, bits<10> xo, dag OOL, dag IOL,
string asmstr, InstrItinClass itin, list<dag> pattern>
: XForm_24_sync<opcode, xo, OOL, IOL, asmstr, itin, pattern> {
let L = 0;
}
class XForm_25<bits<6> opcode, bits<10> xo, dag OOL, dag IOL, string asmstr, class XForm_25<bits<6> opcode, bits<10> xo, dag OOL, dag IOL, string asmstr,
InstrItinClass itin, list<dag> pattern> InstrItinClass itin, list<dag> pattern>
: XForm_base_r3xo<opcode, xo, OOL, IOL, asmstr, itin, pattern> { : XForm_base_r3xo<opcode, xo, OOL, IOL, asmstr, itin, pattern> {

View File

@ -2257,6 +2257,9 @@ def ISYNC : XLForm_2_ext<19, 150, 0, 0, 0, (outs), (ins),
def ICBI : XForm_1a<31, 982, (outs), (ins memrr:$src), def ICBI : XForm_1a<31, 982, (outs), (ins memrr:$src),
"icbi $src", LdStICBI, []>; "icbi $src", LdStICBI, []>;
def EIEIO : XForm_24_eieio<31, 854, (outs), (ins),
"eieio", LdStLoad, []>;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// PowerPC Assembler Instruction Aliases // PowerPC Assembler Instruction Aliases
// //

View File

@ -37,7 +37,8 @@
# CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac] # CHECK: sync 2 # encoding: [0x7c,0x40,0x04,0xac]
sync 2 sync 2
# FIXME: eieio # CHECK: eieio # encoding: [0x7c,0x00,0x06,0xac]
eieio
# FIXME: wait 2 # FIXME: wait 2
# Extended mnemonics # Extended mnemonics