mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[X86] Remove system/control schedule itineraries (PR37093)
llvm-svn: 329903
This commit is contained in:
parent
7fc6d5de4e
commit
d04a5657c8
@ -35,7 +35,7 @@ def GetLo8XForm : SDNodeXForm<imm, [{
|
||||
let hasSideEffects = 0, isNotDuplicable = 1, Uses = [ESP, SSP],
|
||||
SchedRW = [WriteJump] in
|
||||
def MOVPC32r : Ii32<0xE8, Pseudo, (outs GR32:$reg), (ins i32imm:$label),
|
||||
"", [], IIC_CALL_RI>;
|
||||
"", []>;
|
||||
|
||||
|
||||
// ADJCALLSTACKDOWN/UP implicitly use/def ESP because they may be expanded into
|
||||
@ -163,7 +163,7 @@ let isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
hasCtrlDep = 1, isCodeGenOnly = 1 in {
|
||||
def EH_RETURN : I<0xC3, RawFrm, (outs), (ins GR32:$addr),
|
||||
"ret\t#eh_return, addr: $addr",
|
||||
[(X86ehret GR32:$addr)], IIC_RET>, Sched<[WriteJumpLd]>;
|
||||
[(X86ehret GR32:$addr)]>, Sched<[WriteJumpLd]>;
|
||||
|
||||
}
|
||||
|
||||
@ -171,7 +171,7 @@ let isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
hasCtrlDep = 1, isCodeGenOnly = 1 in {
|
||||
def EH_RETURN64 : I<0xC3, RawFrm, (outs), (ins GR64:$addr),
|
||||
"ret\t#eh_return, addr: $addr",
|
||||
[(X86ehret GR64:$addr)], IIC_RET>, Sched<[WriteJumpLd]>;
|
||||
[(X86ehret GR64:$addr)]>, Sched<[WriteJumpLd]>;
|
||||
|
||||
}
|
||||
|
||||
@ -256,14 +256,12 @@ let isPseudo = 1, SchedRW = [WriteSystem] in {
|
||||
// this so that we don't have to have a MachineBasicBlock which ends
|
||||
// with a RET and also has successors.
|
||||
let isPseudo = 1, SchedRW = [WriteJumpLd] in {
|
||||
def MORESTACK_RET: I<0, Pseudo, (outs), (ins),
|
||||
"", [], IIC_RET>;
|
||||
def MORESTACK_RET: I<0, Pseudo, (outs), (ins), "", []>;
|
||||
|
||||
// This instruction is lowered to a RET followed by a MOV. The two
|
||||
// instructions are not generated on a higher level since then the
|
||||
// verifier sees a MachineBasicBlock ending with a non-terminator.
|
||||
def MORESTACK_RET_RESTORE_R10 : I<0, Pseudo, (outs), (ins),
|
||||
"", [], IIC_RET>;
|
||||
def MORESTACK_RET_RESTORE_R10 : I<0, Pseudo, (outs), (ins), "", []>;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -22,47 +22,37 @@
|
||||
let isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
hasCtrlDep = 1, FPForm = SpecialFP, SchedRW = [WriteJumpLd] in {
|
||||
def RETL : I <0xC3, RawFrm, (outs), (ins variable_ops),
|
||||
"ret{l}", [], IIC_RET>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
"ret{l}", []>, OpSize32, Requires<[Not64BitMode]>;
|
||||
def RETQ : I <0xC3, RawFrm, (outs), (ins variable_ops),
|
||||
"ret{q}", [], IIC_RET>, OpSize32,
|
||||
Requires<[In64BitMode]>;
|
||||
"ret{q}", []>, OpSize32, Requires<[In64BitMode]>;
|
||||
def RETW : I <0xC3, RawFrm, (outs), (ins),
|
||||
"ret{w}",
|
||||
[], IIC_RET>, OpSize16;
|
||||
"ret{w}", []>, OpSize16;
|
||||
def RETIL : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops),
|
||||
"ret{l}\t$amt",
|
||||
[], IIC_RET_IMM>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
"ret{l}\t$amt", []>, OpSize32, Requires<[Not64BitMode]>;
|
||||
def RETIQ : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops),
|
||||
"ret{q}\t$amt",
|
||||
[], IIC_RET_IMM>, OpSize32,
|
||||
Requires<[In64BitMode]>;
|
||||
"ret{q}\t$amt", []>, OpSize32, Requires<[In64BitMode]>;
|
||||
def RETIW : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt),
|
||||
"ret{w}\t$amt",
|
||||
[], IIC_RET_IMM>, OpSize16;
|
||||
"ret{w}\t$amt", []>, OpSize16;
|
||||
def LRETL : I <0xCB, RawFrm, (outs), (ins),
|
||||
"{l}ret{l|f}", [], IIC_RET>, OpSize32;
|
||||
"{l}ret{l|f}", []>, OpSize32;
|
||||
def LRETQ : RI <0xCB, RawFrm, (outs), (ins),
|
||||
"{l}ret{|f}q", [], IIC_RET>, Requires<[In64BitMode]>;
|
||||
"{l}ret{|f}q", []>, Requires<[In64BitMode]>;
|
||||
def LRETW : I <0xCB, RawFrm, (outs), (ins),
|
||||
"{l}ret{w|f}", [], IIC_RET>, OpSize16;
|
||||
"{l}ret{w|f}", []>, OpSize16;
|
||||
def LRETIL : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
|
||||
"{l}ret{l|f}\t$amt", [], IIC_RET>, OpSize32;
|
||||
"{l}ret{l|f}\t$amt", []>, OpSize32;
|
||||
def LRETIQ : RIi16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
|
||||
"{l}ret{|f}q\t$amt", [], IIC_RET>, Requires<[In64BitMode]>;
|
||||
"{l}ret{|f}q\t$amt", []>, Requires<[In64BitMode]>;
|
||||
def LRETIW : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt),
|
||||
"{l}ret{w|f}\t$amt", [], IIC_RET>, OpSize16;
|
||||
"{l}ret{w|f}\t$amt", []>, OpSize16;
|
||||
|
||||
// The machine return from interrupt instruction, but sometimes we need to
|
||||
// perform a post-epilogue stack adjustment. Codegen emits the pseudo form
|
||||
// which expands to include an SP adjustment if necessary.
|
||||
def IRET16 : I <0xcf, RawFrm, (outs), (ins), "iret{w}", [], IIC_IRET>,
|
||||
def IRET16 : I <0xcf, RawFrm, (outs), (ins), "iret{w}", []>,
|
||||
OpSize16;
|
||||
def IRET32 : I <0xcf, RawFrm, (outs), (ins), "iret{l|d}", [],
|
||||
IIC_IRET>, OpSize32;
|
||||
def IRET64 : RI <0xcf, RawFrm, (outs), (ins), "iretq", [],
|
||||
IIC_IRET>, Requires<[In64BitMode]>;
|
||||
def IRET32 : I <0xcf, RawFrm, (outs), (ins), "iret{l|d}", []>, OpSize32;
|
||||
def IRET64 : RI <0xcf, RawFrm, (outs), (ins), "iretq", []>, Requires<[In64BitMode]>;
|
||||
let isCodeGenOnly = 1 in
|
||||
def IRET : PseudoI<(outs), (ins i32imm:$adj), [(X86iret timm:$adj)]>;
|
||||
def RET : PseudoI<(outs), (ins i32imm:$adj, variable_ops), [(X86retflag timm:$adj)]>;
|
||||
@ -71,12 +61,12 @@ let isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
// Unconditional branches.
|
||||
let isBarrier = 1, isBranch = 1, isTerminator = 1, SchedRW = [WriteJump] in {
|
||||
def JMP_1 : Ii8PCRel<0xEB, RawFrm, (outs), (ins brtarget8:$dst),
|
||||
"jmp\t$dst", [(br bb:$dst)], IIC_JMP_REL>;
|
||||
"jmp\t$dst", [(br bb:$dst)]>;
|
||||
let hasSideEffects = 0, isCodeGenOnly = 1, ForceDisassemble = 1 in {
|
||||
def JMP_2 : Ii16PCRel<0xE9, RawFrm, (outs), (ins brtarget16:$dst),
|
||||
"jmp\t$dst", [], IIC_JMP_REL>, OpSize16;
|
||||
"jmp\t$dst", []>, OpSize16;
|
||||
def JMP_4 : Ii32PCRel<0xE9, RawFrm, (outs), (ins brtarget32:$dst),
|
||||
"jmp\t$dst", [], IIC_JMP_REL>, OpSize32;
|
||||
"jmp\t$dst", []>, OpSize32;
|
||||
}
|
||||
}
|
||||
|
||||
@ -84,12 +74,12 @@ let isBarrier = 1, isBranch = 1, isTerminator = 1, SchedRW = [WriteJump] in {
|
||||
let isBranch = 1, isTerminator = 1, Uses = [EFLAGS], SchedRW = [WriteJump] in {
|
||||
multiclass ICBr<bits<8> opc1, bits<8> opc4, string asm, PatFrag Cond> {
|
||||
def _1 : Ii8PCRel <opc1, RawFrm, (outs), (ins brtarget8:$dst), asm,
|
||||
[(X86brcond bb:$dst, Cond, EFLAGS)], IIC_Jcc>;
|
||||
[(X86brcond bb:$dst, Cond, EFLAGS)]>;
|
||||
let hasSideEffects = 0, isCodeGenOnly = 1, ForceDisassemble = 1 in {
|
||||
def _2 : Ii16PCRel<opc4, RawFrm, (outs), (ins brtarget16:$dst), asm,
|
||||
[], IIC_Jcc>, OpSize16, TB;
|
||||
[]>, OpSize16, TB;
|
||||
def _4 : Ii32PCRel<opc4, RawFrm, (outs), (ins brtarget32:$dst), asm,
|
||||
[], IIC_Jcc>, TB, OpSize32;
|
||||
[]>, TB, OpSize32;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -118,92 +108,89 @@ let isBranch = 1, isTerminator = 1, hasSideEffects = 0, SchedRW = [WriteJump] in
|
||||
// jecxz.
|
||||
let Uses = [CX] in
|
||||
def JCXZ : Ii8PCRel<0xE3, RawFrm, (outs), (ins brtarget8:$dst),
|
||||
"jcxz\t$dst", [], IIC_JCXZ>, AdSize16,
|
||||
Requires<[Not64BitMode]>;
|
||||
"jcxz\t$dst", []>, AdSize16, Requires<[Not64BitMode]>;
|
||||
let Uses = [ECX] in
|
||||
def JECXZ : Ii8PCRel<0xE3, RawFrm, (outs), (ins brtarget8:$dst),
|
||||
"jecxz\t$dst", [], IIC_JCXZ>, AdSize32;
|
||||
"jecxz\t$dst", []>, AdSize32;
|
||||
|
||||
let Uses = [RCX] in
|
||||
def JRCXZ : Ii8PCRel<0xE3, RawFrm, (outs), (ins brtarget8:$dst),
|
||||
"jrcxz\t$dst", [], IIC_JCXZ>, AdSize64,
|
||||
Requires<[In64BitMode]>;
|
||||
"jrcxz\t$dst", []>, AdSize64, Requires<[In64BitMode]>;
|
||||
}
|
||||
|
||||
// Indirect branches
|
||||
let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in {
|
||||
def JMP16r : I<0xFF, MRM4r, (outs), (ins GR16:$dst), "jmp{w}\t{*}$dst",
|
||||
[(brind GR16:$dst)], IIC_JMP_REG>, Requires<[Not64BitMode]>,
|
||||
OpSize16, Sched<[WriteJump]>;
|
||||
[(brind GR16:$dst)]>, Requires<[Not64BitMode]>,
|
||||
OpSize16, Sched<[WriteJump]>;
|
||||
def JMP16m : I<0xFF, MRM4m, (outs), (ins i16mem:$dst), "jmp{w}\t{*}$dst",
|
||||
[(brind (loadi16 addr:$dst))], IIC_JMP_MEM>,
|
||||
Requires<[Not64BitMode]>, OpSize16, Sched<[WriteJumpLd]>;
|
||||
[(brind (loadi16 addr:$dst))]>, Requires<[Not64BitMode]>,
|
||||
OpSize16, Sched<[WriteJumpLd]>;
|
||||
|
||||
def JMP32r : I<0xFF, MRM4r, (outs), (ins GR32:$dst), "jmp{l}\t{*}$dst",
|
||||
[(brind GR32:$dst)], IIC_JMP_REG>, Requires<[Not64BitMode]>,
|
||||
OpSize32, Sched<[WriteJump]>;
|
||||
[(brind GR32:$dst)]>, Requires<[Not64BitMode]>,
|
||||
OpSize32, Sched<[WriteJump]>;
|
||||
def JMP32m : I<0xFF, MRM4m, (outs), (ins i32mem:$dst), "jmp{l}\t{*}$dst",
|
||||
[(brind (loadi32 addr:$dst))], IIC_JMP_MEM>,
|
||||
Requires<[Not64BitMode]>, OpSize32, Sched<[WriteJumpLd]>;
|
||||
[(brind (loadi32 addr:$dst))]>, Requires<[Not64BitMode]>,
|
||||
OpSize32, Sched<[WriteJumpLd]>;
|
||||
|
||||
def JMP64r : I<0xFF, MRM4r, (outs), (ins GR64:$dst), "jmp{q}\t{*}$dst",
|
||||
[(brind GR64:$dst)], IIC_JMP_REG>, Requires<[In64BitMode]>,
|
||||
Sched<[WriteJump]>;
|
||||
[(brind GR64:$dst)]>, Requires<[In64BitMode]>,
|
||||
Sched<[WriteJump]>;
|
||||
def JMP64m : I<0xFF, MRM4m, (outs), (ins i64mem:$dst), "jmp{q}\t{*}$dst",
|
||||
[(brind (loadi64 addr:$dst))], IIC_JMP_MEM>,
|
||||
Requires<[In64BitMode]>, Sched<[WriteJumpLd]>;
|
||||
[(brind (loadi64 addr:$dst))]>, Requires<[In64BitMode]>,
|
||||
Sched<[WriteJumpLd]>;
|
||||
|
||||
let isCodeGenOnly = 1, Predicates = [HasIBT] in {
|
||||
def JMP16r_NT : I<0xFF, MRM4r, (outs), (ins GR16 : $dst), "jmp{w}\t{*}$dst",
|
||||
[(X86NoTrackBrind GR16 : $dst)], IIC_JMP_REG>, Requires<[Not64BitMode]>,
|
||||
OpSize16, Sched<[WriteJump]>, NOTRACK;
|
||||
[(X86NoTrackBrind GR16 : $dst)]>, Requires<[Not64BitMode]>,
|
||||
OpSize16, Sched<[WriteJump]>, NOTRACK;
|
||||
|
||||
def JMP16m_NT : I<0xFF, MRM4m, (outs), (ins i16mem : $dst), "jmp{w}\t{*}$dst",
|
||||
[(X86NoTrackBrind (loadi16 addr : $dst))], IIC_JMP_MEM>,
|
||||
Requires<[Not64BitMode]>, OpSize16, Sched<[WriteJumpLd]>, NOTRACK;
|
||||
[(X86NoTrackBrind (loadi16 addr : $dst))]>,
|
||||
Requires<[Not64BitMode]>, OpSize16, Sched<[WriteJumpLd]>,
|
||||
NOTRACK;
|
||||
|
||||
def JMP32r_NT : I<0xFF, MRM4r, (outs), (ins GR32 : $dst), "jmp{l}\t{*}$dst",
|
||||
[(X86NoTrackBrind GR32 : $dst)], IIC_JMP_REG>, Requires<[Not64BitMode]>,
|
||||
OpSize32, Sched<[WriteJump]>, NOTRACK;
|
||||
[(X86NoTrackBrind GR32 : $dst)]>, Requires<[Not64BitMode]>,
|
||||
OpSize32, Sched<[WriteJump]>, NOTRACK;
|
||||
def JMP32m_NT : I<0xFF, MRM4m, (outs), (ins i32mem : $dst), "jmp{l}\t{*}$dst",
|
||||
[(X86NoTrackBrind (loadi32 addr : $dst))], IIC_JMP_MEM>,
|
||||
Requires<[Not64BitMode]>, OpSize32, Sched<[WriteJumpLd]>, NOTRACK;
|
||||
[(X86NoTrackBrind (loadi32 addr : $dst))]>,
|
||||
Requires<[Not64BitMode]>, OpSize32, Sched<[WriteJumpLd]>,
|
||||
NOTRACK;
|
||||
|
||||
def JMP64r_NT : I<0xFF, MRM4r, (outs), (ins GR64 : $dst), "jmp{q}\t{*}$dst",
|
||||
[(X86NoTrackBrind GR64 : $dst)], IIC_JMP_REG>, Requires<[In64BitMode]>,
|
||||
Sched<[WriteJump]>, NOTRACK;
|
||||
[(X86NoTrackBrind GR64 : $dst)]>, Requires<[In64BitMode]>,
|
||||
Sched<[WriteJump]>, NOTRACK;
|
||||
def JMP64m_NT : I<0xFF, MRM4m, (outs), (ins i64mem : $dst), "jmp{q}\t{*}$dst",
|
||||
[(X86NoTrackBrind(loadi64 addr : $dst))], IIC_JMP_MEM>,
|
||||
Requires<[In64BitMode]>, Sched<[WriteJumpLd]>, NOTRACK;
|
||||
[(X86NoTrackBrind(loadi64 addr : $dst))]>,
|
||||
Requires<[In64BitMode]>, Sched<[WriteJumpLd]>, NOTRACK;
|
||||
}
|
||||
|
||||
let Predicates = [Not64BitMode] in {
|
||||
def FARJMP16i : Iseg16<0xEA, RawFrmImm16, (outs),
|
||||
(ins i16imm:$off, i16imm:$seg),
|
||||
"ljmp{w}\t$seg, $off", [],
|
||||
IIC_JMP_FAR_PTR>, OpSize16, Sched<[WriteJump]>;
|
||||
"ljmp{w}\t$seg, $off", []>,
|
||||
OpSize16, Sched<[WriteJump]>;
|
||||
def FARJMP32i : Iseg32<0xEA, RawFrmImm16, (outs),
|
||||
(ins i32imm:$off, i16imm:$seg),
|
||||
"ljmp{l}\t$seg, $off", [],
|
||||
IIC_JMP_FAR_PTR>, OpSize32, Sched<[WriteJump]>;
|
||||
"ljmp{l}\t$seg, $off", []>,
|
||||
OpSize32, Sched<[WriteJump]>;
|
||||
}
|
||||
def FARJMP64 : RI<0xFF, MRM5m, (outs), (ins opaque80mem:$dst),
|
||||
"ljmp{q}\t{*}$dst", [], IIC_JMP_FAR_MEM>,
|
||||
Sched<[WriteJump]>;
|
||||
"ljmp{q}\t{*}$dst", []>, Sched<[WriteJump]>;
|
||||
|
||||
def FARJMP16m : I<0xFF, MRM5m, (outs), (ins opaque32mem:$dst),
|
||||
"ljmp{w}\t{*}$dst", [], IIC_JMP_FAR_MEM>, OpSize16,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"ljmp{w}\t{*}$dst", []>, OpSize16, Sched<[WriteJumpLd]>;
|
||||
def FARJMP32m : I<0xFF, MRM5m, (outs), (ins opaque48mem:$dst),
|
||||
"{l}jmp{l}\t{*}$dst", [], IIC_JMP_FAR_MEM>, OpSize32,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"{l}jmp{l}\t{*}$dst", []>, OpSize32, Sched<[WriteJumpLd]>;
|
||||
}
|
||||
|
||||
// Loop instructions
|
||||
let SchedRW = [WriteJump] in {
|
||||
def LOOP : Ii8PCRel<0xE2, RawFrm, (outs), (ins brtarget8:$dst), "loop\t$dst", [], IIC_LOOP>;
|
||||
def LOOPE : Ii8PCRel<0xE1, RawFrm, (outs), (ins brtarget8:$dst), "loope\t$dst", [], IIC_LOOPE>;
|
||||
def LOOPNE : Ii8PCRel<0xE0, RawFrm, (outs), (ins brtarget8:$dst), "loopne\t$dst", [], IIC_LOOPNE>;
|
||||
def LOOP : Ii8PCRel<0xE2, RawFrm, (outs), (ins brtarget8:$dst), "loop\t$dst", []>;
|
||||
def LOOPE : Ii8PCRel<0xE1, RawFrm, (outs), (ins brtarget8:$dst), "loope\t$dst", []>;
|
||||
def LOOPNE : Ii8PCRel<0xE0, RawFrm, (outs), (ins brtarget8:$dst), "loopne\t$dst", []>;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@ -217,67 +204,61 @@ let isCall = 1 in
|
||||
let Uses = [ESP, SSP] in {
|
||||
def CALLpcrel32 : Ii32PCRel<0xE8, RawFrm,
|
||||
(outs), (ins i32imm_pcrel:$dst),
|
||||
"call{l}\t$dst", [], IIC_CALL_RI>, OpSize32,
|
||||
"call{l}\t$dst", []>, OpSize32,
|
||||
Requires<[Not64BitMode]>, Sched<[WriteJump]>;
|
||||
let hasSideEffects = 0 in
|
||||
def CALLpcrel16 : Ii16PCRel<0xE8, RawFrm,
|
||||
(outs), (ins i16imm_pcrel:$dst),
|
||||
"call{w}\t$dst", [], IIC_CALL_RI>, OpSize16,
|
||||
"call{w}\t$dst", []>, OpSize16,
|
||||
Sched<[WriteJump]>;
|
||||
def CALL16r : I<0xFF, MRM2r, (outs), (ins GR16:$dst),
|
||||
"call{w}\t{*}$dst", [(X86call GR16:$dst)], IIC_CALL_RI>,
|
||||
"call{w}\t{*}$dst", [(X86call GR16:$dst)]>,
|
||||
OpSize16, Requires<[Not64BitMode]>, Sched<[WriteJump]>;
|
||||
def CALL16m : I<0xFF, MRM2m, (outs), (ins i16mem:$dst),
|
||||
"call{w}\t{*}$dst", [(X86call (loadi16 addr:$dst))],
|
||||
IIC_CALL_MEM>, OpSize16,
|
||||
Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"call{w}\t{*}$dst", [(X86call (loadi16 addr:$dst))]>,
|
||||
OpSize16, Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
Sched<[WriteJumpLd]>;
|
||||
def CALL32r : I<0xFF, MRM2r, (outs), (ins GR32:$dst),
|
||||
"call{l}\t{*}$dst", [(X86call GR32:$dst)], IIC_CALL_RI>,
|
||||
OpSize32, Requires<[Not64BitMode,NotUseRetpoline]>,
|
||||
Sched<[WriteJump]>;
|
||||
"call{l}\t{*}$dst", [(X86call GR32:$dst)]>, OpSize32,
|
||||
Requires<[Not64BitMode,NotUseRetpoline]>, Sched<[WriteJump]>;
|
||||
def CALL32m : I<0xFF, MRM2m, (outs), (ins i32mem:$dst),
|
||||
"call{l}\t{*}$dst", [(X86call (loadi32 addr:$dst))],
|
||||
IIC_CALL_MEM>, OpSize32,
|
||||
Requires<[Not64BitMode,FavorMemIndirectCall,NotUseRetpoline]>,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"call{l}\t{*}$dst", [(X86call (loadi32 addr:$dst))]>,
|
||||
OpSize32,
|
||||
Requires<[Not64BitMode,FavorMemIndirectCall,NotUseRetpoline]>,
|
||||
Sched<[WriteJumpLd]>;
|
||||
|
||||
let isCodeGenOnly = 1, Predicates = [HasIBT] in {
|
||||
def CALL16r_NT : I<0xFF, MRM2r, (outs), (ins GR16 : $dst),
|
||||
"call{w}\t{*}$dst",[(X86NoTrackCall GR16 : $dst)], IIC_CALL_RI>,
|
||||
"call{w}\t{*}$dst",[(X86NoTrackCall GR16 : $dst)]>,
|
||||
OpSize16, Requires<[Not64BitMode]>, Sched<[WriteJump]>, NOTRACK;
|
||||
def CALL16m_NT : I<0xFF, MRM2m, (outs), (ins i16mem : $dst),
|
||||
"call{w}\t{*}$dst",[(X86NoTrackCall(loadi16 addr : $dst))],
|
||||
IIC_CALL_MEM>, OpSize16,
|
||||
Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
"call{w}\t{*}$dst",[(X86NoTrackCall(loadi16 addr : $dst))]>,
|
||||
OpSize16, Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
Sched<[WriteJumpLd]>, NOTRACK;
|
||||
def CALL32r_NT : I<0xFF, MRM2r, (outs), (ins GR32 : $dst),
|
||||
"call{l}\t{*}$dst",[(X86NoTrackCall GR32 : $dst)], IIC_CALL_RI>,
|
||||
"call{l}\t{*}$dst",[(X86NoTrackCall GR32 : $dst)]>,
|
||||
OpSize32, Requires<[Not64BitMode]>, Sched<[WriteJump]>, NOTRACK;
|
||||
def CALL32m_NT : I<0xFF, MRM2m, (outs), (ins i32mem : $dst),
|
||||
"call{l}\t{*}$dst",[(X86NoTrackCall(loadi32 addr : $dst))],
|
||||
IIC_CALL_MEM>, OpSize32,
|
||||
Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
"call{l}\t{*}$dst",[(X86NoTrackCall(loadi32 addr : $dst))]>,
|
||||
OpSize32, Requires<[Not64BitMode,FavorMemIndirectCall]>,
|
||||
Sched<[WriteJumpLd]>, NOTRACK;
|
||||
}
|
||||
|
||||
let Predicates = [Not64BitMode] in {
|
||||
def FARCALL16i : Iseg16<0x9A, RawFrmImm16, (outs),
|
||||
(ins i16imm:$off, i16imm:$seg),
|
||||
"lcall{w}\t$seg, $off", [],
|
||||
IIC_CALL_FAR_PTR>, OpSize16, Sched<[WriteJump]>;
|
||||
"lcall{w}\t$seg, $off", []>,
|
||||
OpSize16, Sched<[WriteJump]>;
|
||||
def FARCALL32i : Iseg32<0x9A, RawFrmImm16, (outs),
|
||||
(ins i32imm:$off, i16imm:$seg),
|
||||
"lcall{l}\t$seg, $off", [],
|
||||
IIC_CALL_FAR_PTR>, OpSize32, Sched<[WriteJump]>;
|
||||
"lcall{l}\t$seg, $off", []>,
|
||||
OpSize32, Sched<[WriteJump]>;
|
||||
}
|
||||
|
||||
def FARCALL16m : I<0xFF, MRM3m, (outs), (ins opaque32mem:$dst),
|
||||
"lcall{w}\t{*}$dst", [], IIC_CALL_FAR_MEM>, OpSize16,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"lcall{w}\t{*}$dst", []>, OpSize16, Sched<[WriteJumpLd]>;
|
||||
def FARCALL32m : I<0xFF, MRM3m, (outs), (ins opaque48mem:$dst),
|
||||
"{l}call{l}\t{*}$dst", [], IIC_CALL_FAR_MEM>, OpSize32,
|
||||
Sched<[WriteJumpLd]>;
|
||||
"{l}call{l}\t{*}$dst", []>, OpSize32, Sched<[WriteJumpLd]>;
|
||||
}
|
||||
|
||||
|
||||
@ -296,15 +277,13 @@ let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
// FIXME: The should be pseudo instructions that are lowered when going to
|
||||
// mcinst.
|
||||
def TAILJMPd : Ii32PCRel<0xE9, RawFrm, (outs),
|
||||
(ins i32imm_pcrel:$dst),
|
||||
"jmp\t$dst",
|
||||
[], IIC_JMP_REL>;
|
||||
(ins i32imm_pcrel:$dst), "jmp\t$dst", []>;
|
||||
|
||||
def TAILJMPr : I<0xFF, MRM4r, (outs), (ins ptr_rc_tailcall:$dst),
|
||||
"", [], IIC_JMP_REG>; // FIXME: Remove encoding when JIT is dead.
|
||||
"", []>; // FIXME: Remove encoding when JIT is dead.
|
||||
let mayLoad = 1 in
|
||||
def TAILJMPm : I<0xFF, MRM4m, (outs), (ins i32mem_TC:$dst),
|
||||
"jmp{l}\t{*}$dst", [], IIC_JMP_MEM>;
|
||||
"jmp{l}\t{*}$dst", []>;
|
||||
}
|
||||
|
||||
// Conditional tail calls are similar to the above, but they are branches
|
||||
@ -317,9 +296,7 @@ let isCall = 1, isTerminator = 1, isReturn = 1, isBranch = 1,
|
||||
|
||||
// This gets substituted to a conditional jump instruction in MC lowering.
|
||||
def TAILJMPd_CC : Ii32PCRel<0x80, RawFrm, (outs),
|
||||
(ins i32imm_pcrel:$dst, i32imm:$cond),
|
||||
"",
|
||||
[], IIC_JMP_REL>;
|
||||
(ins i32imm_pcrel:$dst, i32imm:$cond), "", []>;
|
||||
}
|
||||
|
||||
|
||||
@ -336,31 +313,28 @@ let isCall = 1, Uses = [RSP, SSP], SchedRW = [WriteJump] in {
|
||||
// the 32-bit pcrel field that we have.
|
||||
def CALL64pcrel32 : Ii32PCRel<0xE8, RawFrm,
|
||||
(outs), (ins i64i32imm_pcrel:$dst),
|
||||
"call{q}\t$dst", [], IIC_CALL_RI>, OpSize32,
|
||||
"call{q}\t$dst", []>, OpSize32,
|
||||
Requires<[In64BitMode]>;
|
||||
def CALL64r : I<0xFF, MRM2r, (outs), (ins GR64:$dst),
|
||||
"call{q}\t{*}$dst", [(X86call GR64:$dst)],
|
||||
IIC_CALL_RI>,
|
||||
"call{q}\t{*}$dst", [(X86call GR64:$dst)]>,
|
||||
Requires<[In64BitMode,NotUseRetpoline]>;
|
||||
def CALL64m : I<0xFF, MRM2m, (outs), (ins i64mem:$dst),
|
||||
"call{q}\t{*}$dst", [(X86call (loadi64 addr:$dst))],
|
||||
IIC_CALL_MEM>,
|
||||
"call{q}\t{*}$dst", [(X86call (loadi64 addr:$dst))]>,
|
||||
Requires<[In64BitMode,FavorMemIndirectCall,
|
||||
NotUseRetpoline]>;
|
||||
|
||||
let isCodeGenOnly = 1, Predicates = [HasIBT] in{
|
||||
def CALL64r_NT : I<0xFF, MRM2r, (outs), (ins GR64 : $dst),
|
||||
"call{q}\t{*}$dst",[(X86NoTrackCall GR64 : $dst)],
|
||||
IIC_CALL_RI>,
|
||||
"call{q}\t{*}$dst",[(X86NoTrackCall GR64 : $dst)]>,
|
||||
Requires<[In64BitMode]>, NOTRACK;
|
||||
def CALL64m_NT : I<0xFF, MRM2m, (outs), (ins i64mem : $dst),
|
||||
"call{q}\t{*}$dst",[(X86NoTrackCall(loadi64 addr : $dst))],
|
||||
IIC_CALL_MEM>,
|
||||
Requires<[In64BitMode,FavorMemIndirectCall]>, NOTRACK;
|
||||
"call{q}\t{*}$dst",
|
||||
[(X86NoTrackCall(loadi64 addr : $dst))]>,
|
||||
Requires<[In64BitMode,FavorMemIndirectCall]>, NOTRACK;
|
||||
}
|
||||
|
||||
def FARCALL64 : RI<0xFF, MRM3m, (outs), (ins opaque80mem:$dst),
|
||||
"lcall{q}\t{*}$dst", [], IIC_CALL_FAR_MEM>;
|
||||
"lcall{q}\t{*}$dst", []>;
|
||||
}
|
||||
|
||||
let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
@ -375,23 +349,23 @@ let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1,
|
||||
(ins i64mem_TC:$dst, i32imm:$offset), []>, NotMemoryFoldable;
|
||||
|
||||
def TAILJMPd64 : Ii32PCRel<0xE9, RawFrm, (outs), (ins i64i32imm_pcrel:$dst),
|
||||
"jmp\t$dst", [], IIC_JMP_REL>;
|
||||
"jmp\t$dst", []>;
|
||||
|
||||
def TAILJMPr64 : I<0xFF, MRM4r, (outs), (ins ptr_rc_tailcall:$dst),
|
||||
"jmp{q}\t{*}$dst", [], IIC_JMP_MEM>;
|
||||
"jmp{q}\t{*}$dst", []>;
|
||||
|
||||
let mayLoad = 1 in
|
||||
def TAILJMPm64 : I<0xFF, MRM4m, (outs), (ins i64mem_TC:$dst),
|
||||
"jmp{q}\t{*}$dst", [], IIC_JMP_MEM>;
|
||||
"jmp{q}\t{*}$dst", []>;
|
||||
|
||||
// Win64 wants indirect jumps leaving the function to have a REX_W prefix.
|
||||
let hasREX_WPrefix = 1 in {
|
||||
def TAILJMPr64_REX : I<0xFF, MRM4r, (outs), (ins ptr_rc_tailcall:$dst),
|
||||
"rex64 jmp{q}\t{*}$dst", [], IIC_JMP_MEM>;
|
||||
"rex64 jmp{q}\t{*}$dst", []>;
|
||||
|
||||
let mayLoad = 1 in
|
||||
def TAILJMPm64_REX : I<0xFF, MRM4m, (outs), (ins i64mem_TC:$dst),
|
||||
"rex64 jmp{q}\t{*}$dst", [], IIC_JMP_MEM>;
|
||||
"rex64 jmp{q}\t{*}$dst", []>;
|
||||
}
|
||||
}
|
||||
|
||||
@ -427,7 +401,5 @@ let isCall = 1, isTerminator = 1, isReturn = 1, isBranch = 1,
|
||||
|
||||
// This gets substituted to a conditional jump instruction in MC lowering.
|
||||
def TAILJMPd64_CC : Ii32PCRel<0x80, RawFrm, (outs),
|
||||
(ins i64i32imm_pcrel:$dst, i32imm:$cond),
|
||||
"",
|
||||
[], IIC_JMP_REL>;
|
||||
(ins i64i32imm_pcrel:$dst, i32imm:$cond), "", []>;
|
||||
}
|
||||
|
@ -1127,21 +1127,21 @@ def trunc_su : PatFrag<(ops node:$src), (trunc node:$src), [{
|
||||
|
||||
// Nop
|
||||
let hasSideEffects = 0, SchedRW = [WriteNop] in {
|
||||
def NOOP : I<0x90, RawFrm, (outs), (ins), "nop", [], IIC_NOP>;
|
||||
def NOOP : I<0x90, RawFrm, (outs), (ins), "nop", []>;
|
||||
def NOOPW : I<0x1f, MRMXm, (outs), (ins i16mem:$zero),
|
||||
"nop{w}\t$zero", [], IIC_NOP>, TB, OpSize16;
|
||||
"nop{w}\t$zero", []>, TB, OpSize16;
|
||||
def NOOPL : I<0x1f, MRMXm, (outs), (ins i32mem:$zero),
|
||||
"nop{l}\t$zero", [], IIC_NOP>, TB, OpSize32;
|
||||
"nop{l}\t$zero", []>, TB, OpSize32;
|
||||
def NOOPQ : RI<0x1f, MRMXm, (outs), (ins i64mem:$zero),
|
||||
"nop{q}\t$zero", [], IIC_NOP>, TB,
|
||||
"nop{q}\t$zero", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
// Also allow register so we can assemble/disassemble
|
||||
def NOOPWr : I<0x1f, MRMXr, (outs), (ins GR16:$zero),
|
||||
"nop{w}\t$zero", [], IIC_NOP>, TB, OpSize16;
|
||||
"nop{w}\t$zero", []>, TB, OpSize16;
|
||||
def NOOPLr : I<0x1f, MRMXr, (outs), (ins GR32:$zero),
|
||||
"nop{l}\t$zero", [], IIC_NOP>, TB, OpSize32;
|
||||
"nop{l}\t$zero", []>, TB, OpSize32;
|
||||
def NOOPQr : RI<0x1f, MRMXr, (outs), (ins GR64:$zero),
|
||||
"nop{q}\t$zero", [], IIC_NOP>, TB,
|
||||
"nop{q}\t$zero", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
}
|
||||
|
||||
@ -2053,15 +2053,15 @@ def LOCK_PREFIX : I<0xF0, RawFrm, (outs), (ins), "lock", []>;
|
||||
let SchedRW = [WriteNop] in {
|
||||
|
||||
// Rex64 instruction prefix
|
||||
def REX64_PREFIX : I<0x48, RawFrm, (outs), (ins), "rex64", [], IIC_NOP>,
|
||||
def REX64_PREFIX : I<0x48, RawFrm, (outs), (ins), "rex64", []>,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// Data16 instruction prefix
|
||||
def DATA16_PREFIX : I<0x66, RawFrm, (outs), (ins), "data16", [], IIC_NOP>,
|
||||
def DATA16_PREFIX : I<0x66, RawFrm, (outs), (ins), "data16", []>,
|
||||
Requires<[Not16BitMode]>;
|
||||
|
||||
// Data instruction prefix
|
||||
def DATA32_PREFIX : I<0x66, RawFrm, (outs), (ins), "data32", [], IIC_NOP>,
|
||||
def DATA32_PREFIX : I<0x66, RawFrm, (outs), (ins), "data32", []>,
|
||||
Requires<[In16BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
|
@ -19,10 +19,10 @@ let SchedRW = [WriteSystem] in {
|
||||
multiclass mpx_bound_make<bits<8> opc, string OpcodeStr> {
|
||||
let mayLoad = 1 in {
|
||||
def 32rm: I<opc, MRMSrcMem, (outs BNDR:$dst), (ins i32mem:$src),
|
||||
OpcodeStr#"\t{$src, $dst|$dst, $src}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src, $dst|$dst, $src}", []>,
|
||||
Requires<[HasMPX, Not64BitMode]>;
|
||||
def 64rm: RI<opc, MRMSrcMem, (outs BNDR:$dst), (ins i64mem:$src),
|
||||
OpcodeStr#"\t{$src, $dst|$dst, $src}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src, $dst|$dst, $src}", []>,
|
||||
Requires<[HasMPX, In64BitMode]>;
|
||||
}
|
||||
}
|
||||
@ -32,17 +32,17 @@ defm BNDMK : mpx_bound_make<0x1B, "bndmk">, XS;
|
||||
multiclass mpx_bound_check<bits<8> opc, string OpcodeStr> {
|
||||
let mayLoad = 1 in {
|
||||
def 32rm: I<opc, MRMSrcMem, (outs), (ins BNDR:$src1, i32mem:$src2),
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", []>,
|
||||
Requires<[HasMPX, Not64BitMode]>;
|
||||
def 64rm: RI<opc, MRMSrcMem, (outs), (ins BNDR:$src1, i64mem:$src2),
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", []>,
|
||||
Requires<[HasMPX, In64BitMode]>;
|
||||
}
|
||||
def 32rr: I<opc, MRMSrcReg, (outs), (ins BNDR:$src1, GR32:$src2),
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", []>,
|
||||
Requires<[HasMPX, Not64BitMode]>;
|
||||
def 64rr: RI<opc, MRMSrcReg, (outs), (ins BNDR:$src1, GR64:$src2),
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", [], IIC_MPX>,
|
||||
OpcodeStr#"\t{$src2, $src1|$src1, $src2}", []>,
|
||||
Requires<[HasMPX, In64BitMode]>;
|
||||
}
|
||||
defm BNDCL : mpx_bound_check<0x1A, "bndcl">, XS;
|
||||
@ -50,33 +50,33 @@ defm BNDCU : mpx_bound_check<0x1A, "bndcu">, XD;
|
||||
defm BNDCN : mpx_bound_check<0x1B, "bndcn">, XD;
|
||||
|
||||
def BNDMOVRMrr : I<0x1A, MRMSrcReg, (outs BNDR:$dst), (ins BNDR:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX]>;
|
||||
let mayLoad = 1 in {
|
||||
def BNDMOVRM32rm : I<0x1A, MRMSrcMem, (outs BNDR:$dst), (ins i64mem:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX, Not64BitMode]>;
|
||||
def BNDMOVRM64rm : RI<0x1A, MRMSrcMem, (outs BNDR:$dst), (ins i128mem:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX, In64BitMode]>;
|
||||
}
|
||||
def BNDMOVMRrr : I<0x1B, MRMDestReg, (outs BNDR:$dst), (ins BNDR:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX]>;
|
||||
let mayStore = 1 in {
|
||||
def BNDMOVMR32mr : I<0x1B, MRMDestMem, (outs), (ins i64mem:$dst, BNDR:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX, Not64BitMode]>;
|
||||
def BNDMOVMR64mr : RI<0x1B, MRMDestMem, (outs), (ins i128mem:$dst, BNDR:$src),
|
||||
"bndmov\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PD,
|
||||
"bndmov\t{$src, $dst|$dst, $src}", []>, PD,
|
||||
Requires<[HasMPX, In64BitMode]>;
|
||||
|
||||
def BNDSTXmr: I<0x1B, MRMDestMem, (outs), (ins i64mem:$dst, BNDR:$src),
|
||||
"bndstx\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PS,
|
||||
"bndstx\t{$src, $dst|$dst, $src}", []>, PS,
|
||||
Requires<[HasMPX]>;
|
||||
}
|
||||
let mayLoad = 1 in
|
||||
def BNDLDXrm: I<0x1A, MRMSrcMem, (outs BNDR:$dst), (ins anymem:$src),
|
||||
"bndldx\t{$src, $dst|$dst, $src}", [], IIC_MPX>, PS,
|
||||
"bndldx\t{$src, $dst|$dst, $src}", []>, PS,
|
||||
Requires<[HasMPX]>;
|
||||
} // SchedRW
|
||||
|
@ -17,47 +17,47 @@
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
// 0F 01 D9
|
||||
def VMMCALL : I<0x01, MRM_D9, (outs), (ins), "vmmcall", [], IIC_SVM>, TB;
|
||||
def VMMCALL : I<0x01, MRM_D9, (outs), (ins), "vmmcall", []>, TB;
|
||||
|
||||
// 0F 01 DC
|
||||
def STGI : I<0x01, MRM_DC, (outs), (ins), "stgi", [], IIC_STGI>, TB;
|
||||
def STGI : I<0x01, MRM_DC, (outs), (ins), "stgi", []>, TB;
|
||||
|
||||
// 0F 01 DD
|
||||
def CLGI : I<0x01, MRM_DD, (outs), (ins), "clgi", [], IIC_CLGI>, TB;
|
||||
def CLGI : I<0x01, MRM_DD, (outs), (ins), "clgi", []>, TB;
|
||||
|
||||
// 0F 01 DE
|
||||
let Uses = [EAX] in
|
||||
def SKINIT : I<0x01, MRM_DE, (outs), (ins), "skinit\t{%eax|eax}", [], IIC_SKINIT>, TB;
|
||||
def SKINIT : I<0x01, MRM_DE, (outs), (ins), "skinit\t{%eax|eax}", []>, TB;
|
||||
|
||||
// 0F 01 D8
|
||||
let Uses = [EAX] in
|
||||
def VMRUN32 : I<0x01, MRM_D8, (outs), (ins),
|
||||
"vmrun\t{%eax|eax}", [], IIC_SVM>, TB, Requires<[Not64BitMode]>;
|
||||
def VMRUN32 : I<0x01, MRM_D8, (outs), (ins), "vmrun\t{%eax|eax}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
let Uses = [RAX] in
|
||||
def VMRUN64 : I<0x01, MRM_D8, (outs), (ins),
|
||||
"vmrun\t{%rax|rax}", [], IIC_SVM>, TB, Requires<[In64BitMode]>;
|
||||
def VMRUN64 : I<0x01, MRM_D8, (outs), (ins), "vmrun\t{%rax|rax}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 0F 01 DA
|
||||
let Uses = [EAX] in
|
||||
def VMLOAD32 : I<0x01, MRM_DA, (outs), (ins),
|
||||
"vmload\t{%eax|eax}", [], IIC_SVM>, TB, Requires<[Not64BitMode]>;
|
||||
def VMLOAD32 : I<0x01, MRM_DA, (outs), (ins), "vmload\t{%eax|eax}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
let Uses = [RAX] in
|
||||
def VMLOAD64 : I<0x01, MRM_DA, (outs), (ins),
|
||||
"vmload\t{%rax|rax}", [], IIC_SVM>, TB, Requires<[In64BitMode]>;
|
||||
def VMLOAD64 : I<0x01, MRM_DA, (outs), (ins), "vmload\t{%rax|rax}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 0F 01 DB
|
||||
let Uses = [EAX] in
|
||||
def VMSAVE32 : I<0x01, MRM_DB, (outs), (ins),
|
||||
"vmsave\t{%eax|eax}", [], IIC_SVM>, TB, Requires<[Not64BitMode]>;
|
||||
def VMSAVE32 : I<0x01, MRM_DB, (outs), (ins), "vmsave\t{%eax|eax}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
let Uses = [RAX] in
|
||||
def VMSAVE64 : I<0x01, MRM_DB, (outs), (ins),
|
||||
"vmsave\t{%rax|rax}", [], IIC_SVM>, TB, Requires<[In64BitMode]>;
|
||||
def VMSAVE64 : I<0x01, MRM_DB, (outs), (ins), "vmsave\t{%rax|rax}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 0F 01 DF
|
||||
let Uses = [EAX, ECX] in
|
||||
def INVLPGA32 : I<0x01, MRM_DF, (outs), (ins),
|
||||
"invlpga\t{%eax, %ecx|eax, ecx}", [], IIC_INVLPG>, TB, Requires<[Not64BitMode]>;
|
||||
"invlpga\t{%eax, %ecx|eax, ecx}", []>, TB, Requires<[Not64BitMode]>;
|
||||
let Uses = [RAX, ECX] in
|
||||
def INVLPGA64 : I<0x01, MRM_DF, (outs), (ins),
|
||||
"invlpga\t{%rax, %ecx|rax, ecx}", [], IIC_INVLPG>, TB, Requires<[In64BitMode]>;
|
||||
"invlpga\t{%rax, %ecx|rax, ecx}", []>, TB, Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
@ -15,12 +15,10 @@
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
let Defs = [RAX, RDX] in
|
||||
def RDTSC : I<0x31, RawFrm, (outs), (ins), "rdtsc", [(X86rdtsc)], IIC_RDTSC>,
|
||||
TB;
|
||||
def RDTSC : I<0x31, RawFrm, (outs), (ins), "rdtsc", [(X86rdtsc)]>, TB;
|
||||
|
||||
let Defs = [RAX, RCX, RDX] in
|
||||
def RDTSCP : I<0x01, MRM_F9, (outs), (ins), "rdtscp", [(X86rdtscp)],
|
||||
IIC_RDTSCP>, TB;
|
||||
def RDTSCP : I<0x01, MRM_F9, (outs), (ins), "rdtscp", [(X86rdtscp)]>, TB;
|
||||
|
||||
// CPU flow control instructions
|
||||
|
||||
@ -29,14 +27,14 @@ let mayLoad = 1, mayStore = 0, hasSideEffects = 1 in {
|
||||
def UD2B : I<0xB9, RawFrm, (outs), (ins), "ud2b", []>, TB;
|
||||
}
|
||||
|
||||
def HLT : I<0xF4, RawFrm, (outs), (ins), "hlt", [], IIC_HLT>;
|
||||
def RSM : I<0xAA, RawFrm, (outs), (ins), "rsm", [], IIC_RSM>, TB;
|
||||
def HLT : I<0xF4, RawFrm, (outs), (ins), "hlt", []>;
|
||||
def RSM : I<0xAA, RawFrm, (outs), (ins), "rsm", []>, TB;
|
||||
|
||||
// Interrupt and SysCall Instructions.
|
||||
let Uses = [EFLAGS] in
|
||||
def INTO : I<0xce, RawFrm, (outs), (ins), "into", []>, Requires<[Not64BitMode]>;
|
||||
def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3",
|
||||
[(int_x86_int (i8 3))], IIC_INT3>;
|
||||
|
||||
def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3", [(int_x86_int (i8 3))]>;
|
||||
} // SchedRW
|
||||
|
||||
// The long form of "int $3" turns into int3 as a size optimization.
|
||||
@ -46,21 +44,19 @@ def INT3 : I<0xcc, RawFrm, (outs), (ins), "int3",
|
||||
let SchedRW = [WriteSystem] in {
|
||||
|
||||
def INT : Ii8<0xcd, RawFrm, (outs), (ins u8imm:$trap), "int\t$trap",
|
||||
[(int_x86_int imm:$trap)], IIC_INT>;
|
||||
[(int_x86_int imm:$trap)]>;
|
||||
|
||||
|
||||
def SYSCALL : I<0x05, RawFrm, (outs), (ins), "syscall", [], IIC_SYSCALL>, TB;
|
||||
def SYSRET : I<0x07, RawFrm, (outs), (ins), "sysret{l}", [], IIC_SYSCALL>, TB;
|
||||
def SYSRET64 :RI<0x07, RawFrm, (outs), (ins), "sysret{q}", [], IIC_SYSCALL>, TB,
|
||||
def SYSCALL : I<0x05, RawFrm, (outs), (ins), "syscall", []>, TB;
|
||||
def SYSRET : I<0x07, RawFrm, (outs), (ins), "sysret{l}", []>, TB;
|
||||
def SYSRET64 :RI<0x07, RawFrm, (outs), (ins), "sysret{q}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
def SYSENTER : I<0x34, RawFrm, (outs), (ins), "sysenter", [],
|
||||
IIC_SYS_ENTER_EXIT>, TB;
|
||||
def SYSENTER : I<0x34, RawFrm, (outs), (ins), "sysenter", []>, TB;
|
||||
|
||||
def SYSEXIT : I<0x35, RawFrm, (outs), (ins), "sysexit{l}", [],
|
||||
IIC_SYS_ENTER_EXIT>, TB;
|
||||
def SYSEXIT64 :RI<0x35, RawFrm, (outs), (ins), "sysexit{q}", [],
|
||||
IIC_SYS_ENTER_EXIT>, TB, Requires<[In64BitMode]>;
|
||||
def SYSEXIT : I<0x35, RawFrm, (outs), (ins), "sysexit{l}", []>, TB;
|
||||
def SYSEXIT64 :RI<0x35, RawFrm, (outs), (ins), "sysexit{q}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
def : Pat<(debugtrap),
|
||||
@ -73,44 +69,42 @@ def : Pat<(debugtrap),
|
||||
//
|
||||
let SchedRW = [WriteSystem] in {
|
||||
let Defs = [AL], Uses = [DX] in
|
||||
def IN8rr : I<0xEC, RawFrm, (outs), (ins),
|
||||
"in{b}\t{%dx, %al|al, dx}", [], IIC_IN_RR>;
|
||||
def IN8rr : I<0xEC, RawFrm, (outs), (ins), "in{b}\t{%dx, %al|al, dx}", []>;
|
||||
let Defs = [AX], Uses = [DX] in
|
||||
def IN16rr : I<0xED, RawFrm, (outs), (ins),
|
||||
"in{w}\t{%dx, %ax|ax, dx}", [], IIC_IN_RR>, OpSize16;
|
||||
def IN16rr : I<0xED, RawFrm, (outs), (ins), "in{w}\t{%dx, %ax|ax, dx}", []>,
|
||||
OpSize16;
|
||||
let Defs = [EAX], Uses = [DX] in
|
||||
def IN32rr : I<0xED, RawFrm, (outs), (ins),
|
||||
"in{l}\t{%dx, %eax|eax, dx}", [], IIC_IN_RR>, OpSize32;
|
||||
def IN32rr : I<0xED, RawFrm, (outs), (ins), "in{l}\t{%dx, %eax|eax, dx}", []>,
|
||||
OpSize32;
|
||||
|
||||
let Defs = [AL] in
|
||||
def IN8ri : Ii8<0xE4, RawFrm, (outs), (ins u8imm:$port),
|
||||
"in{b}\t{$port, %al|al, $port}", [], IIC_IN_RI>;
|
||||
"in{b}\t{$port, %al|al, $port}", []>;
|
||||
let Defs = [AX] in
|
||||
def IN16ri : Ii8<0xE5, RawFrm, (outs), (ins u8imm:$port),
|
||||
"in{w}\t{$port, %ax|ax, $port}", [], IIC_IN_RI>, OpSize16;
|
||||
"in{w}\t{$port, %ax|ax, $port}", []>, OpSize16;
|
||||
let Defs = [EAX] in
|
||||
def IN32ri : Ii8<0xE5, RawFrm, (outs), (ins u8imm:$port),
|
||||
"in{l}\t{$port, %eax|eax, $port}", [], IIC_IN_RI>, OpSize32;
|
||||
"in{l}\t{$port, %eax|eax, $port}", []>, OpSize32;
|
||||
|
||||
let Uses = [DX, AL] in
|
||||
def OUT8rr : I<0xEE, RawFrm, (outs), (ins),
|
||||
"out{b}\t{%al, %dx|dx, al}", [], IIC_OUT_RR>;
|
||||
def OUT8rr : I<0xEE, RawFrm, (outs), (ins), "out{b}\t{%al, %dx|dx, al}", []>;
|
||||
let Uses = [DX, AX] in
|
||||
def OUT16rr : I<0xEF, RawFrm, (outs), (ins),
|
||||
"out{w}\t{%ax, %dx|dx, ax}", [], IIC_OUT_RR>, OpSize16;
|
||||
def OUT16rr : I<0xEF, RawFrm, (outs), (ins), "out{w}\t{%ax, %dx|dx, ax}", []>,
|
||||
OpSize16;
|
||||
let Uses = [DX, EAX] in
|
||||
def OUT32rr : I<0xEF, RawFrm, (outs), (ins),
|
||||
"out{l}\t{%eax, %dx|dx, eax}", [], IIC_OUT_RR>, OpSize32;
|
||||
def OUT32rr : I<0xEF, RawFrm, (outs), (ins), "out{l}\t{%eax, %dx|dx, eax}", []>,
|
||||
OpSize32;
|
||||
|
||||
let Uses = [AL] in
|
||||
def OUT8ir : Ii8<0xE6, RawFrm, (outs), (ins u8imm:$port),
|
||||
"out{b}\t{%al, $port|$port, al}", [], IIC_OUT_IR>;
|
||||
"out{b}\t{%al, $port|$port, al}", []>;
|
||||
let Uses = [AX] in
|
||||
def OUT16ir : Ii8<0xE7, RawFrm, (outs), (ins u8imm:$port),
|
||||
"out{w}\t{%ax, $port|$port, ax}", [], IIC_OUT_IR>, OpSize16;
|
||||
"out{w}\t{%ax, $port|$port, ax}", []>, OpSize16;
|
||||
let Uses = [EAX] in
|
||||
def OUT32ir : Ii8<0xE7, RawFrm, (outs), (ins u8imm:$port),
|
||||
"out{l}\t{%eax, $port|$port, eax}", [], IIC_OUT_IR>, OpSize32;
|
||||
"out{l}\t{%eax, $port|$port, eax}", []>, OpSize32;
|
||||
|
||||
} // SchedRW
|
||||
|
||||
@ -119,17 +113,17 @@ def OUT32ir : Ii8<0xE7, RawFrm, (outs), (ins u8imm:$port),
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def MOV32rd : I<0x21, MRMDestReg, (outs GR32:$dst), (ins DEBUG_REG:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_DR>, TB,
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
def MOV64rd : I<0x21, MRMDestReg, (outs GR64:$dst), (ins DEBUG_REG:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_DR>, TB,
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
def MOV32dr : I<0x23, MRMSrcReg, (outs DEBUG_REG:$dst), (ins GR32:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_DR_REG>, TB,
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
def MOV64dr : I<0x23, MRMSrcReg, (outs DEBUG_REG:$dst), (ins GR64:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_DR_REG>, TB,
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
@ -138,17 +132,17 @@ def MOV64dr : I<0x23, MRMSrcReg, (outs DEBUG_REG:$dst), (ins GR64:$src),
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def MOV32rc : I<0x20, MRMDestReg, (outs GR32:$dst), (ins CONTROL_REG:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_CR>, TB,
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
def MOV64rc : I<0x20, MRMDestReg, (outs GR64:$dst), (ins CONTROL_REG:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_CR>, TB,
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
def MOV32cr : I<0x22, MRMSrcReg, (outs CONTROL_REG:$dst), (ins GR32:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_CR_REG>, TB,
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[Not64BitMode]>;
|
||||
def MOV64cr : I<0x22, MRMSrcReg, (outs CONTROL_REG:$dst), (ins GR64:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_CR_REG>, TB,
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
@ -156,12 +150,12 @@ def MOV64cr : I<0x22, MRMSrcReg, (outs CONTROL_REG:$dst), (ins GR64:$src),
|
||||
// Segment override instruction prefixes
|
||||
|
||||
let SchedRW = [WriteNop] in {
|
||||
def CS_PREFIX : I<0x2E, RawFrm, (outs), (ins), "cs", [], IIC_NOP>;
|
||||
def SS_PREFIX : I<0x36, RawFrm, (outs), (ins), "ss", [], IIC_NOP>;
|
||||
def DS_PREFIX : I<0x3E, RawFrm, (outs), (ins), "ds", [], IIC_NOP>;
|
||||
def ES_PREFIX : I<0x26, RawFrm, (outs), (ins), "es", [], IIC_NOP>;
|
||||
def FS_PREFIX : I<0x64, RawFrm, (outs), (ins), "fs", [], IIC_NOP>;
|
||||
def GS_PREFIX : I<0x65, RawFrm, (outs), (ins), "gs", [], IIC_NOP>;
|
||||
def CS_PREFIX : I<0x2E, RawFrm, (outs), (ins), "cs", []>;
|
||||
def SS_PREFIX : I<0x36, RawFrm, (outs), (ins), "ss", []>;
|
||||
def DS_PREFIX : I<0x3E, RawFrm, (outs), (ins), "ds", []>;
|
||||
def ES_PREFIX : I<0x26, RawFrm, (outs), (ins), "es", []>;
|
||||
def FS_PREFIX : I<0x64, RawFrm, (outs), (ins), "fs", []>;
|
||||
def GS_PREFIX : I<0x65, RawFrm, (outs), (ins), "gs", []>;
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@ -170,24 +164,24 @@ def GS_PREFIX : I<0x65, RawFrm, (outs), (ins), "gs", [], IIC_NOP>;
|
||||
|
||||
let SchedRW = [WriteMove] in {
|
||||
def MOV16rs : I<0x8C, MRMDestReg, (outs GR16:$dst), (ins SEGMENT_REG:$src),
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_SR>, OpSize16;
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", []>, OpSize16;
|
||||
def MOV32rs : I<0x8C, MRMDestReg, (outs GR32:$dst), (ins SEGMENT_REG:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_SR>, OpSize32;
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, OpSize32;
|
||||
def MOV64rs : RI<0x8C, MRMDestReg, (outs GR64:$dst), (ins SEGMENT_REG:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_REG_SR>;
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>;
|
||||
let mayStore = 1 in {
|
||||
def MOV16ms : I<0x8C, MRMDestMem, (outs), (ins i16mem:$dst, SEGMENT_REG:$src),
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", [], IIC_MOV_MEM_SR>, OpSizeIgnore;
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", []>, OpSizeIgnore;
|
||||
}
|
||||
def MOV16sr : I<0x8E, MRMSrcReg, (outs SEGMENT_REG:$dst), (ins GR16:$src),
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", [], IIC_MOV_SR_REG>, OpSize16;
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", []>, OpSize16;
|
||||
def MOV32sr : I<0x8E, MRMSrcReg, (outs SEGMENT_REG:$dst), (ins GR32:$src),
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", [], IIC_MOV_SR_REG>, OpSize32;
|
||||
"mov{l}\t{$src, $dst|$dst, $src}", []>, OpSize32;
|
||||
def MOV64sr : RI<0x8E, MRMSrcReg, (outs SEGMENT_REG:$dst), (ins GR64:$src),
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", [], IIC_MOV_SR_REG>;
|
||||
"mov{q}\t{$src, $dst|$dst, $src}", []>;
|
||||
let mayLoad = 1 in {
|
||||
def MOV16sm : I<0x8E, MRMSrcMem, (outs SEGMENT_REG:$dst), (ins i16mem:$src),
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", [], IIC_MOV_SR_MEM>, OpSizeIgnore;
|
||||
"mov{w}\t{$src, $dst|$dst, $src}", []>, OpSizeIgnore;
|
||||
}
|
||||
} // SchedRW
|
||||
|
||||
@ -195,200 +189,168 @@ def MOV16sm : I<0x8E, MRMSrcMem, (outs SEGMENT_REG:$dst), (ins i16mem:$src),
|
||||
// Segmentation support instructions.
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def SWAPGS : I<0x01, MRM_F8, (outs), (ins), "swapgs", [], IIC_SWAPGS>, TB;
|
||||
def SWAPGS : I<0x01, MRM_F8, (outs), (ins), "swapgs", []>, TB;
|
||||
|
||||
let mayLoad = 1 in
|
||||
def LAR16rm : I<0x02, MRMSrcMem, (outs GR16:$dst), (ins i16mem:$src),
|
||||
"lar{w}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RM>, TB,
|
||||
"lar{w}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize16;
|
||||
def LAR16rr : I<0x02, MRMSrcReg, (outs GR16:$dst), (ins GR16:$src),
|
||||
"lar{w}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RR>, TB,
|
||||
"lar{w}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize16;
|
||||
|
||||
// i16mem operand in LAR32rm and GR32 operand in LAR32rr is not a typo.
|
||||
let mayLoad = 1 in
|
||||
def LAR32rm : I<0x02, MRMSrcMem, (outs GR32:$dst), (ins i16mem:$src),
|
||||
"lar{l}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RM>, TB,
|
||||
"lar{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize32;
|
||||
def LAR32rr : I<0x02, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"lar{l}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RR>, TB,
|
||||
"lar{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize32;
|
||||
// i16mem operand in LAR64rm and GR32 operand in LAR64rr is not a typo.
|
||||
let mayLoad = 1 in
|
||||
def LAR64rm : RI<0x02, MRMSrcMem, (outs GR64:$dst), (ins i16mem:$src),
|
||||
"lar{q}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RM>, TB;
|
||||
"lar{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
def LAR64rr : RI<0x02, MRMSrcReg, (outs GR64:$dst), (ins GR32:$src),
|
||||
"lar{q}\t{$src, $dst|$dst, $src}", [], IIC_LAR_RR>, TB;
|
||||
"lar{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
|
||||
// i16mem operand in LSL32rm and GR32 operand in LSL32rr is not a typo.
|
||||
let mayLoad = 1 in
|
||||
def LSL16rm : I<0x03, MRMSrcMem, (outs GR16:$dst), (ins i16mem:$src),
|
||||
"lsl{w}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RM>, TB,
|
||||
"lsl{w}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize16;
|
||||
def LSL16rr : I<0x03, MRMSrcReg, (outs GR16:$dst), (ins GR16:$src),
|
||||
"lsl{w}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RR>, TB,
|
||||
"lsl{w}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize16;
|
||||
// i16mem operand in LSL64rm and GR32 operand in LSL64rr is not a typo.
|
||||
let mayLoad = 1 in
|
||||
def LSL32rm : I<0x03, MRMSrcMem, (outs GR32:$dst), (ins i16mem:$src),
|
||||
"lsl{l}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RM>, TB,
|
||||
"lsl{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize32;
|
||||
def LSL32rr : I<0x03, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"lsl{l}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RR>, TB,
|
||||
"lsl{l}\t{$src, $dst|$dst, $src}", []>, TB,
|
||||
OpSize32;
|
||||
let mayLoad = 1 in
|
||||
def LSL64rm : RI<0x03, MRMSrcMem, (outs GR64:$dst), (ins i16mem:$src),
|
||||
"lsl{q}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RM>, TB;
|
||||
"lsl{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
def LSL64rr : RI<0x03, MRMSrcReg, (outs GR64:$dst), (ins GR32:$src),
|
||||
"lsl{q}\t{$src, $dst|$dst, $src}", [], IIC_LSL_RR>, TB;
|
||||
"lsl{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
|
||||
def INVLPG : I<0x01, MRM7m, (outs), (ins i8mem:$addr), "invlpg\t$addr",
|
||||
[], IIC_INVLPG>, TB;
|
||||
def INVLPG : I<0x01, MRM7m, (outs), (ins i8mem:$addr), "invlpg\t$addr", []>, TB;
|
||||
|
||||
def STR16r : I<0x00, MRM1r, (outs GR16:$dst), (ins),
|
||||
"str{w}\t$dst", [], IIC_STR>, TB, OpSize16;
|
||||
"str{w}\t$dst", []>, TB, OpSize16;
|
||||
def STR32r : I<0x00, MRM1r, (outs GR32:$dst), (ins),
|
||||
"str{l}\t$dst", [], IIC_STR>, TB, OpSize32;
|
||||
"str{l}\t$dst", []>, TB, OpSize32;
|
||||
def STR64r : RI<0x00, MRM1r, (outs GR64:$dst), (ins),
|
||||
"str{q}\t$dst", [], IIC_STR>, TB;
|
||||
"str{q}\t$dst", []>, TB;
|
||||
let mayStore = 1 in
|
||||
def STRm : I<0x00, MRM1m, (outs), (ins i16mem:$dst),
|
||||
"str{w}\t$dst", [], IIC_STR>, TB;
|
||||
def STRm : I<0x00, MRM1m, (outs), (ins i16mem:$dst), "str{w}\t$dst", []>, TB;
|
||||
|
||||
def LTRr : I<0x00, MRM3r, (outs), (ins GR16:$src),
|
||||
"ltr{w}\t$src", [], IIC_LTR>, TB;
|
||||
def LTRr : I<0x00, MRM3r, (outs), (ins GR16:$src), "ltr{w}\t$src", []>, TB;
|
||||
let mayLoad = 1 in
|
||||
def LTRm : I<0x00, MRM3m, (outs), (ins i16mem:$src),
|
||||
"ltr{w}\t$src", [], IIC_LTR>, TB;
|
||||
def LTRm : I<0x00, MRM3m, (outs), (ins i16mem:$src), "ltr{w}\t$src", []>, TB;
|
||||
|
||||
def PUSHCS16 : I<0x0E, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%cs|cs}", [], IIC_PUSH_SR>,
|
||||
def PUSHCS16 : I<0x0E, RawFrm, (outs), (ins), "push{w}\t{%cs|cs}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def PUSHCS32 : I<0x0E, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%cs|cs}", [], IIC_PUSH_CS>,
|
||||
def PUSHCS32 : I<0x0E, RawFrm, (outs), (ins), "push{l}\t{%cs|cs}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHSS16 : I<0x16, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%ss|ss}", [], IIC_PUSH_SR>,
|
||||
def PUSHSS16 : I<0x16, RawFrm, (outs), (ins), "push{w}\t{%ss|ss}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def PUSHSS32 : I<0x16, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%ss|ss}", [], IIC_PUSH_SR>,
|
||||
def PUSHSS32 : I<0x16, RawFrm, (outs), (ins), "push{l}\t{%ss|ss}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHDS16 : I<0x1E, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%ds|ds}", [], IIC_PUSH_SR>,
|
||||
def PUSHDS16 : I<0x1E, RawFrm, (outs), (ins), "push{w}\t{%ds|ds}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def PUSHDS32 : I<0x1E, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%ds|ds}", [], IIC_PUSH_SR>,
|
||||
def PUSHDS32 : I<0x1E, RawFrm, (outs), (ins), "push{l}\t{%ds|ds}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHES16 : I<0x06, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%es|es}", [], IIC_PUSH_SR>,
|
||||
def PUSHES16 : I<0x06, RawFrm, (outs), (ins), "push{w}\t{%es|es}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def PUSHES32 : I<0x06, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%es|es}", [], IIC_PUSH_SR>,
|
||||
def PUSHES32 : I<0x06, RawFrm, (outs), (ins), "push{l}\t{%es|es}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHFS16 : I<0xa0, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%fs|fs}", [], IIC_PUSH_SR>, OpSize16, TB;
|
||||
def PUSHFS32 : I<0xa0, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%fs|fs}", [], IIC_PUSH_SR>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHGS16 : I<0xa8, RawFrm, (outs), (ins),
|
||||
"push{w}\t{%gs|gs}", [], IIC_PUSH_SR>, OpSize16, TB;
|
||||
def PUSHGS32 : I<0xa8, RawFrm, (outs), (ins),
|
||||
"push{l}\t{%gs|gs}", [], IIC_PUSH_SR>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHFS64 : I<0xa0, RawFrm, (outs), (ins),
|
||||
"push{q}\t{%fs|fs}", [], IIC_PUSH_SR>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
def PUSHGS64 : I<0xa8, RawFrm, (outs), (ins),
|
||||
"push{q}\t{%gs|gs}", [], IIC_PUSH_SR>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
def PUSHFS16 : I<0xa0, RawFrm, (outs), (ins), "push{w}\t{%fs|fs}", []>,
|
||||
OpSize16, TB;
|
||||
def PUSHFS32 : I<0xa0, RawFrm, (outs), (ins), "push{l}\t{%fs|fs}", []>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHGS16 : I<0xa8, RawFrm, (outs), (ins), "push{w}\t{%gs|gs}", []>,
|
||||
OpSize16, TB;
|
||||
def PUSHGS32 : I<0xa8, RawFrm, (outs), (ins), "push{l}\t{%gs|gs}", []>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def PUSHFS64 : I<0xa0, RawFrm, (outs), (ins), "push{q}\t{%fs|fs}", []>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
def PUSHGS64 : I<0xa8, RawFrm, (outs), (ins), "push{q}\t{%gs|gs}", []>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
|
||||
// No "pop cs" instruction.
|
||||
def POPSS16 : I<0x17, RawFrm, (outs), (ins),
|
||||
"pop{w}\t{%ss|ss}", [], IIC_POP_SR_SS>,
|
||||
def POPSS16 : I<0x17, RawFrm, (outs), (ins), "pop{w}\t{%ss|ss}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def POPSS32 : I<0x17, RawFrm, (outs), (ins),
|
||||
"pop{l}\t{%ss|ss}", [], IIC_POP_SR_SS>,
|
||||
def POPSS32 : I<0x17, RawFrm, (outs), (ins), "pop{l}\t{%ss|ss}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
|
||||
def POPDS16 : I<0x1F, RawFrm, (outs), (ins),
|
||||
"pop{w}\t{%ds|ds}", [], IIC_POP_SR>,
|
||||
def POPDS16 : I<0x1F, RawFrm, (outs), (ins), "pop{w}\t{%ds|ds}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def POPDS32 : I<0x1F, RawFrm, (outs), (ins),
|
||||
"pop{l}\t{%ds|ds}", [], IIC_POP_SR>,
|
||||
def POPDS32 : I<0x1F, RawFrm, (outs), (ins), "pop{l}\t{%ds|ds}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
|
||||
def POPES16 : I<0x07, RawFrm, (outs), (ins),
|
||||
"pop{w}\t{%es|es}", [], IIC_POP_SR>,
|
||||
def POPES16 : I<0x07, RawFrm, (outs), (ins), "pop{w}\t{%es|es}", []>,
|
||||
OpSize16, Requires<[Not64BitMode]>;
|
||||
def POPES32 : I<0x07, RawFrm, (outs), (ins),
|
||||
"pop{l}\t{%es|es}", [], IIC_POP_SR>,
|
||||
def POPES32 : I<0x07, RawFrm, (outs), (ins), "pop{l}\t{%es|es}", []>,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
|
||||
def POPFS16 : I<0xa1, RawFrm, (outs), (ins),
|
||||
"pop{w}\t{%fs|fs}", [], IIC_POP_SR>, OpSize16, TB;
|
||||
def POPFS32 : I<0xa1, RawFrm, (outs), (ins),
|
||||
"pop{l}\t{%fs|fs}", [], IIC_POP_SR>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def POPFS64 : I<0xa1, RawFrm, (outs), (ins),
|
||||
"pop{q}\t{%fs|fs}", [], IIC_POP_SR>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
|
||||
def POPGS16 : I<0xa9, RawFrm, (outs), (ins),
|
||||
"pop{w}\t{%gs|gs}", [], IIC_POP_SR>, OpSize16, TB;
|
||||
def POPGS32 : I<0xa9, RawFrm, (outs), (ins),
|
||||
"pop{l}\t{%gs|gs}", [], IIC_POP_SR>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def POPGS64 : I<0xa9, RawFrm, (outs), (ins),
|
||||
"pop{q}\t{%gs|gs}", [], IIC_POP_SR>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
|
||||
def POPFS16 : I<0xa1, RawFrm, (outs), (ins), "pop{w}\t{%fs|fs}", []>,
|
||||
OpSize16, TB;
|
||||
def POPFS32 : I<0xa1, RawFrm, (outs), (ins), "pop{l}\t{%fs|fs}", []>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def POPFS64 : I<0xa1, RawFrm, (outs), (ins), "pop{q}\t{%fs|fs}", []>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
|
||||
def POPGS16 : I<0xa9, RawFrm, (outs), (ins), "pop{w}\t{%gs|gs}", []>,
|
||||
OpSize16, TB;
|
||||
def POPGS32 : I<0xa9, RawFrm, (outs), (ins), "pop{l}\t{%gs|gs}", []>, TB,
|
||||
OpSize32, Requires<[Not64BitMode]>;
|
||||
def POPGS64 : I<0xa9, RawFrm, (outs), (ins), "pop{q}\t{%gs|gs}", []>, TB,
|
||||
OpSize32, Requires<[In64BitMode]>;
|
||||
|
||||
def LDS16rm : I<0xc5, MRMSrcMem, (outs GR16:$dst), (ins opaque32mem:$src),
|
||||
"lds{w}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, OpSize16,
|
||||
"lds{w}\t{$src, $dst|$dst, $src}", []>, OpSize16,
|
||||
Requires<[Not64BitMode]>;
|
||||
def LDS32rm : I<0xc5, MRMSrcMem, (outs GR32:$dst), (ins opaque48mem:$src),
|
||||
"lds{l}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, OpSize32,
|
||||
"lds{l}\t{$src, $dst|$dst, $src}", []>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
|
||||
def LSS16rm : I<0xb2, MRMSrcMem, (outs GR16:$dst), (ins opaque32mem:$src),
|
||||
"lss{w}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize16;
|
||||
"lss{w}\t{$src, $dst|$dst, $src}", []>, TB, OpSize16;
|
||||
def LSS32rm : I<0xb2, MRMSrcMem, (outs GR32:$dst), (ins opaque48mem:$src),
|
||||
"lss{l}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize32;
|
||||
"lss{l}\t{$src, $dst|$dst, $src}", []>, TB, OpSize32;
|
||||
def LSS64rm : RI<0xb2, MRMSrcMem, (outs GR64:$dst), (ins opaque80mem:$src),
|
||||
"lss{q}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB;
|
||||
"lss{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
|
||||
def LES16rm : I<0xc4, MRMSrcMem, (outs GR16:$dst), (ins opaque32mem:$src),
|
||||
"les{w}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, OpSize16,
|
||||
"les{w}\t{$src, $dst|$dst, $src}", []>, OpSize16,
|
||||
Requires<[Not64BitMode]>;
|
||||
def LES32rm : I<0xc4, MRMSrcMem, (outs GR32:$dst), (ins opaque48mem:$src),
|
||||
"les{l}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, OpSize32,
|
||||
"les{l}\t{$src, $dst|$dst, $src}", []>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
|
||||
def LFS16rm : I<0xb4, MRMSrcMem, (outs GR16:$dst), (ins opaque32mem:$src),
|
||||
"lfs{w}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize16;
|
||||
"lfs{w}\t{$src, $dst|$dst, $src}", []>, TB, OpSize16;
|
||||
def LFS32rm : I<0xb4, MRMSrcMem, (outs GR32:$dst), (ins opaque48mem:$src),
|
||||
"lfs{l}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize32;
|
||||
"lfs{l}\t{$src, $dst|$dst, $src}", []>, TB, OpSize32;
|
||||
def LFS64rm : RI<0xb4, MRMSrcMem, (outs GR64:$dst), (ins opaque80mem:$src),
|
||||
"lfs{q}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB;
|
||||
"lfs{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
|
||||
def LGS16rm : I<0xb5, MRMSrcMem, (outs GR16:$dst), (ins opaque32mem:$src),
|
||||
"lgs{w}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize16;
|
||||
"lgs{w}\t{$src, $dst|$dst, $src}", []>, TB, OpSize16;
|
||||
def LGS32rm : I<0xb5, MRMSrcMem, (outs GR32:$dst), (ins opaque48mem:$src),
|
||||
"lgs{l}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB, OpSize32;
|
||||
"lgs{l}\t{$src, $dst|$dst, $src}", []>, TB, OpSize32;
|
||||
|
||||
def LGS64rm : RI<0xb5, MRMSrcMem, (outs GR64:$dst), (ins opaque80mem:$src),
|
||||
"lgs{q}\t{$src, $dst|$dst, $src}", [], IIC_LXS>, TB;
|
||||
"lgs{q}\t{$src, $dst|$dst, $src}", []>, TB;
|
||||
|
||||
|
||||
def VERRr : I<0x00, MRM4r, (outs), (ins GR16:$seg),
|
||||
"verr\t$seg", [], IIC_VERR>, TB;
|
||||
def VERWr : I<0x00, MRM5r, (outs), (ins GR16:$seg),
|
||||
"verw\t$seg", [], IIC_VERW_MEM>, TB;
|
||||
def VERRr : I<0x00, MRM4r, (outs), (ins GR16:$seg), "verr\t$seg", []>, TB;
|
||||
def VERWr : I<0x00, MRM5r, (outs), (ins GR16:$seg), "verw\t$seg", []>, TB;
|
||||
let mayLoad = 1 in {
|
||||
def VERRm : I<0x00, MRM4m, (outs), (ins i16mem:$seg),
|
||||
"verr\t$seg", [], IIC_VERR>, TB;
|
||||
def VERWm : I<0x00, MRM5m, (outs), (ins i16mem:$seg),
|
||||
"verw\t$seg", [], IIC_VERW_REG>, TB;
|
||||
def VERRm : I<0x00, MRM4m, (outs), (ins i16mem:$seg), "verr\t$seg", []>, TB;
|
||||
def VERWm : I<0x00, MRM5m, (outs), (ins i16mem:$seg), "verw\t$seg", []>, TB;
|
||||
}
|
||||
} // SchedRW
|
||||
|
||||
@ -397,96 +359,95 @@ def VERWm : I<0x00, MRM5m, (outs), (ins i16mem:$seg),
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def SGDT16m : I<0x01, MRM0m, (outs), (ins opaque48mem:$dst),
|
||||
"sgdt{w}\t$dst", [], IIC_SGDT>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
"sgdt{w}\t$dst", []>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
def SGDT32m : I<0x01, MRM0m, (outs), (ins opaque48mem:$dst),
|
||||
"sgdt{l}\t$dst", [], IIC_SGDT>, OpSize32, TB, Requires <[Not64BitMode]>;
|
||||
"sgdt{l}\t$dst", []>, OpSize32, TB, Requires <[Not64BitMode]>;
|
||||
def SGDT64m : I<0x01, MRM0m, (outs), (ins opaque80mem:$dst),
|
||||
"sgdt{q}\t$dst", [], IIC_SGDT>, TB, Requires <[In64BitMode]>;
|
||||
"sgdt{q}\t$dst", []>, TB, Requires <[In64BitMode]>;
|
||||
def SIDT16m : I<0x01, MRM1m, (outs), (ins opaque48mem:$dst),
|
||||
"sidt{w}\t$dst", [], IIC_SIDT>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
"sidt{w}\t$dst", []>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
def SIDT32m : I<0x01, MRM1m, (outs), (ins opaque48mem:$dst),
|
||||
"sidt{l}\t$dst", []>, OpSize32, TB, Requires <[Not64BitMode]>;
|
||||
"sidt{l}\t$dst", []>, OpSize32, TB, Requires <[Not64BitMode]>;
|
||||
def SIDT64m : I<0x01, MRM1m, (outs), (ins opaque80mem:$dst),
|
||||
"sidt{q}\t$dst", []>, TB, Requires <[In64BitMode]>;
|
||||
"sidt{q}\t$dst", []>, TB, Requires <[In64BitMode]>;
|
||||
def SLDT16r : I<0x00, MRM0r, (outs GR16:$dst), (ins),
|
||||
"sldt{w}\t$dst", [], IIC_SLDT>, TB, OpSize16;
|
||||
"sldt{w}\t$dst", []>, TB, OpSize16;
|
||||
let mayStore = 1 in
|
||||
def SLDT16m : I<0x00, MRM0m, (outs), (ins i16mem:$dst),
|
||||
"sldt{w}\t$dst", [], IIC_SLDT>, TB;
|
||||
"sldt{w}\t$dst", []>, TB;
|
||||
def SLDT32r : I<0x00, MRM0r, (outs GR32:$dst), (ins),
|
||||
"sldt{l}\t$dst", [], IIC_SLDT>, OpSize32, TB;
|
||||
"sldt{l}\t$dst", []>, OpSize32, TB;
|
||||
|
||||
// LLDT is not interpreted specially in 64-bit mode because there is no sign
|
||||
// extension.
|
||||
def SLDT64r : RI<0x00, MRM0r, (outs GR64:$dst), (ins),
|
||||
"sldt{q}\t$dst", [], IIC_SLDT>, TB, Requires<[In64BitMode]>;
|
||||
"sldt{q}\t$dst", []>, TB, Requires<[In64BitMode]>;
|
||||
let mayStore = 1 in
|
||||
def SLDT64m : RI<0x00, MRM0m, (outs), (ins i16mem:$dst),
|
||||
"sldt{q}\t$dst", [], IIC_SLDT>, TB, Requires<[In64BitMode]>;
|
||||
"sldt{q}\t$dst", []>, TB, Requires<[In64BitMode]>;
|
||||
|
||||
def LGDT16m : I<0x01, MRM2m, (outs), (ins opaque48mem:$src),
|
||||
"lgdt{w}\t$src", [], IIC_LGDT>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
"lgdt{w}\t$src", []>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
def LGDT32m : I<0x01, MRM2m, (outs), (ins opaque48mem:$src),
|
||||
"lgdt{l}\t$src", [], IIC_LGDT>, OpSize32, TB, Requires<[Not64BitMode]>;
|
||||
"lgdt{l}\t$src", []>, OpSize32, TB, Requires<[Not64BitMode]>;
|
||||
def LGDT64m : I<0x01, MRM2m, (outs), (ins opaque80mem:$src),
|
||||
"lgdt{q}\t$src", [], IIC_LGDT>, TB, Requires<[In64BitMode]>;
|
||||
"lgdt{q}\t$src", []>, TB, Requires<[In64BitMode]>;
|
||||
def LIDT16m : I<0x01, MRM3m, (outs), (ins opaque48mem:$src),
|
||||
"lidt{w}\t$src", [], IIC_LIDT>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
"lidt{w}\t$src", []>, TB, OpSize16, Requires<[Not64BitMode]>;
|
||||
def LIDT32m : I<0x01, MRM3m, (outs), (ins opaque48mem:$src),
|
||||
"lidt{l}\t$src", [], IIC_LIDT>, OpSize32, TB, Requires<[Not64BitMode]>;
|
||||
"lidt{l}\t$src", []>, OpSize32, TB, Requires<[Not64BitMode]>;
|
||||
def LIDT64m : I<0x01, MRM3m, (outs), (ins opaque80mem:$src),
|
||||
"lidt{q}\t$src", [], IIC_LIDT>, TB, Requires<[In64BitMode]>;
|
||||
"lidt{q}\t$src", []>, TB, Requires<[In64BitMode]>;
|
||||
def LLDT16r : I<0x00, MRM2r, (outs), (ins GR16:$src),
|
||||
"lldt{w}\t$src", [], IIC_LLDT_REG>, TB;
|
||||
"lldt{w}\t$src", []>, TB;
|
||||
let mayLoad = 1 in
|
||||
def LLDT16m : I<0x00, MRM2m, (outs), (ins i16mem:$src),
|
||||
"lldt{w}\t$src", [], IIC_LLDT_MEM>, TB;
|
||||
"lldt{w}\t$src", []>, TB;
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Specialized register support
|
||||
let SchedRW = [WriteSystem] in {
|
||||
let Uses = [EAX, ECX, EDX] in
|
||||
def WRMSR : I<0x30, RawFrm, (outs), (ins), "wrmsr", [], IIC_WRMSR>, TB;
|
||||
def WRMSR : I<0x30, RawFrm, (outs), (ins), "wrmsr", []>, TB;
|
||||
let Defs = [EAX, EDX], Uses = [ECX] in
|
||||
def RDMSR : I<0x32, RawFrm, (outs), (ins), "rdmsr", [], IIC_RDMSR>, TB;
|
||||
def RDMSR : I<0x32, RawFrm, (outs), (ins), "rdmsr", []>, TB;
|
||||
|
||||
let Defs = [RAX, RDX], Uses = [ECX] in
|
||||
def RDPMC : I<0x33, RawFrm, (outs), (ins), "rdpmc", [(X86rdpmc)], IIC_RDPMC>,
|
||||
TB;
|
||||
def RDPMC : I<0x33, RawFrm, (outs), (ins), "rdpmc", [(X86rdpmc)]>, TB;
|
||||
|
||||
def SMSW16r : I<0x01, MRM4r, (outs GR16:$dst), (ins),
|
||||
"smsw{w}\t$dst", [], IIC_SMSW>, OpSize16, TB;
|
||||
"smsw{w}\t$dst", []>, OpSize16, TB;
|
||||
def SMSW32r : I<0x01, MRM4r, (outs GR32:$dst), (ins),
|
||||
"smsw{l}\t$dst", [], IIC_SMSW>, OpSize32, TB;
|
||||
"smsw{l}\t$dst", []>, OpSize32, TB;
|
||||
// no m form encodable; use SMSW16m
|
||||
def SMSW64r : RI<0x01, MRM4r, (outs GR64:$dst), (ins),
|
||||
"smsw{q}\t$dst", [], IIC_SMSW>, TB;
|
||||
"smsw{q}\t$dst", []>, TB;
|
||||
|
||||
// For memory operands, there is only a 16-bit form
|
||||
def SMSW16m : I<0x01, MRM4m, (outs), (ins i16mem:$dst),
|
||||
"smsw{w}\t$dst", [], IIC_SMSW>, TB;
|
||||
"smsw{w}\t$dst", []>, TB;
|
||||
|
||||
def LMSW16r : I<0x01, MRM6r, (outs), (ins GR16:$src),
|
||||
"lmsw{w}\t$src", [], IIC_LMSW_MEM>, TB;
|
||||
"lmsw{w}\t$src", []>, TB;
|
||||
let mayLoad = 1 in
|
||||
def LMSW16m : I<0x01, MRM6m, (outs), (ins i16mem:$src),
|
||||
"lmsw{w}\t$src", [], IIC_LMSW_REG>, TB;
|
||||
"lmsw{w}\t$src", []>, TB;
|
||||
|
||||
let Defs = [EAX, EBX, ECX, EDX], Uses = [EAX, ECX] in
|
||||
def CPUID : I<0xA2, RawFrm, (outs), (ins), "cpuid", [], IIC_CPUID>, TB;
|
||||
def CPUID : I<0xA2, RawFrm, (outs), (ins), "cpuid", []>, TB;
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Cache instructions
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def INVD : I<0x08, RawFrm, (outs), (ins), "invd", [], IIC_INVD>, TB;
|
||||
def WBINVD : I<0x09, RawFrm, (outs), (ins), "wbinvd", [], IIC_INVD>, TB;
|
||||
def INVD : I<0x08, RawFrm, (outs), (ins), "invd", []>, TB;
|
||||
def WBINVD : I<0x09, RawFrm, (outs), (ins), "wbinvd", []>, TB;
|
||||
|
||||
// wbnoinvd is like wbinvd, except without invalidation
|
||||
// encoding: like wbinvd + an 0xF3 prefix
|
||||
def WBNOINVD : I<0x09, RawFrm, (outs), (ins), "wbnoinvd",
|
||||
[(int_x86_wbnoinvd)], IIC_INVD>, XS,
|
||||
[(int_x86_wbnoinvd)]>, XS,
|
||||
Requires<[HasWBNOINVD]>;
|
||||
} // SchedRW
|
||||
|
||||
@ -638,9 +599,9 @@ let usesCustomInserter = 1, hasNoSchedulingInfo = 1 in {
|
||||
|
||||
let SchedRW = [WriteSystem] in {
|
||||
let Defs = [EAX, EDX], Uses = [ECX] in
|
||||
def RDPKRUr : I<0x01, MRM_EE, (outs), (ins), "rdpkru", [], IIC_PKU>, TB;
|
||||
def RDPKRUr : I<0x01, MRM_EE, (outs), (ins), "rdpkru", []>, TB;
|
||||
let Uses = [EAX, ECX, EDX] in
|
||||
def WRPKRUr : I<0x01, MRM_EF, (outs), (ins), "wrpkru", [], IIC_PKU>, TB;
|
||||
def WRPKRUr : I<0x01, MRM_EF, (outs), (ins), "wrpkru", []>, TB;
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
@ -648,85 +609,77 @@ let Uses = [EAX, ECX, EDX] in
|
||||
let Predicates = [HasFSGSBase, In64BitMode], SchedRW = [WriteSystem] in {
|
||||
def RDFSBASE : I<0xAE, MRM0r, (outs GR32:$dst), (ins),
|
||||
"rdfsbase{l}\t$dst",
|
||||
[(set GR32:$dst, (int_x86_rdfsbase_32))],
|
||||
IIC_SEGMENT_BASE_R>, XS;
|
||||
[(set GR32:$dst, (int_x86_rdfsbase_32))]>, XS;
|
||||
def RDFSBASE64 : RI<0xAE, MRM0r, (outs GR64:$dst), (ins),
|
||||
"rdfsbase{q}\t$dst",
|
||||
[(set GR64:$dst, (int_x86_rdfsbase_64))],
|
||||
IIC_SEGMENT_BASE_R>, XS;
|
||||
[(set GR64:$dst, (int_x86_rdfsbase_64))]>, XS;
|
||||
def RDGSBASE : I<0xAE, MRM1r, (outs GR32:$dst), (ins),
|
||||
"rdgsbase{l}\t$dst",
|
||||
[(set GR32:$dst, (int_x86_rdgsbase_32))],
|
||||
IIC_SEGMENT_BASE_R>, XS;
|
||||
[(set GR32:$dst, (int_x86_rdgsbase_32))]>, XS;
|
||||
def RDGSBASE64 : RI<0xAE, MRM1r, (outs GR64:$dst), (ins),
|
||||
"rdgsbase{q}\t$dst",
|
||||
[(set GR64:$dst, (int_x86_rdgsbase_64))],
|
||||
IIC_SEGMENT_BASE_R>, XS;
|
||||
[(set GR64:$dst, (int_x86_rdgsbase_64))]>, XS;
|
||||
def WRFSBASE : I<0xAE, MRM2r, (outs), (ins GR32:$src),
|
||||
"wrfsbase{l}\t$src",
|
||||
[(int_x86_wrfsbase_32 GR32:$src)],
|
||||
IIC_SEGMENT_BASE_W>, XS;
|
||||
[(int_x86_wrfsbase_32 GR32:$src)]>, XS;
|
||||
def WRFSBASE64 : RI<0xAE, MRM2r, (outs), (ins GR64:$src),
|
||||
"wrfsbase{q}\t$src",
|
||||
[(int_x86_wrfsbase_64 GR64:$src)],
|
||||
IIC_SEGMENT_BASE_W>, XS;
|
||||
[(int_x86_wrfsbase_64 GR64:$src)]>, XS;
|
||||
def WRGSBASE : I<0xAE, MRM3r, (outs), (ins GR32:$src),
|
||||
"wrgsbase{l}\t$src",
|
||||
[(int_x86_wrgsbase_32 GR32:$src)], IIC_SEGMENT_BASE_W>, XS;
|
||||
[(int_x86_wrgsbase_32 GR32:$src)]>, XS;
|
||||
def WRGSBASE64 : RI<0xAE, MRM3r, (outs), (ins GR64:$src),
|
||||
"wrgsbase{q}\t$src",
|
||||
[(int_x86_wrgsbase_64 GR64:$src)],
|
||||
IIC_SEGMENT_BASE_W>, XS;
|
||||
[(int_x86_wrgsbase_64 GR64:$src)]>, XS;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// INVPCID Instruction
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def INVPCID32 : I<0x82, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
|
||||
"invpcid\t{$src2, $src1|$src1, $src2}", [], IIC_INVPCID>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
"invpcid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
def INVPCID64 : I<0x82, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
|
||||
"invpcid\t{$src2, $src1|$src1, $src2}", [], IIC_INVPCID>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
"invpcid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// SMAP Instruction
|
||||
let Defs = [EFLAGS], SchedRW = [WriteSystem] in {
|
||||
def CLAC : I<0x01, MRM_CA, (outs), (ins), "clac", [], IIC_SMAP>, TB;
|
||||
def STAC : I<0x01, MRM_CB, (outs), (ins), "stac", [], IIC_SMAP>, TB;
|
||||
def CLAC : I<0x01, MRM_CA, (outs), (ins), "clac", []>, TB;
|
||||
def STAC : I<0x01, MRM_CB, (outs), (ins), "stac", []>, TB;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// SMX Instruction
|
||||
let SchedRW = [WriteSystem] in {
|
||||
let Uses = [RAX, RBX, RCX, RDX], Defs = [RAX, RBX, RCX] in {
|
||||
def GETSEC : I<0x37, RawFrm, (outs), (ins), "getsec", [], IIC_SMX>, TB;
|
||||
def GETSEC : I<0x37, RawFrm, (outs), (ins), "getsec", []>, TB;
|
||||
} // Uses, Defs
|
||||
} // SchedRW
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// TS flag control instruction.
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def CLTS : I<0x06, RawFrm, (outs), (ins), "clts", [], IIC_CLTS>, TB;
|
||||
def CLTS : I<0x06, RawFrm, (outs), (ins), "clts", []>, TB;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// IF (inside EFLAGS) management instructions.
|
||||
let SchedRW = [WriteSystem], Uses = [EFLAGS], Defs = [EFLAGS] in {
|
||||
def CLI : I<0xFA, RawFrm, (outs), (ins), "cli", [], IIC_CLI>;
|
||||
def STI : I<0xFB, RawFrm, (outs), (ins), "sti", [], IIC_STI>;
|
||||
def CLI : I<0xFA, RawFrm, (outs), (ins), "cli", []>;
|
||||
def STI : I<0xFB, RawFrm, (outs), (ins), "sti", []>;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RDPID Instruction
|
||||
let SchedRW = [WriteSystem] in {
|
||||
def RDPID32 : I<0xC7, MRM7r, (outs GR32:$dst), (ins),
|
||||
"rdpid\t$dst", [(set GR32:$dst, (int_x86_rdpid))], IIC_RDPID>, XS,
|
||||
Requires<[Not64BitMode, HasRDPID]>;
|
||||
def RDPID64 : I<0xC7, MRM7r, (outs GR64:$dst), (ins),
|
||||
"rdpid\t$dst", [], IIC_RDPID>, XS,
|
||||
Requires<[In64BitMode, HasRDPID]>;
|
||||
"rdpid\t$dst", [(set GR32:$dst, (int_x86_rdpid))]>, XS,
|
||||
Requires<[Not64BitMode, HasRDPID]>;
|
||||
def RDPID64 : I<0xC7, MRM7r, (outs GR64:$dst), (ins), "rdpid\t$dst", []>, XS,
|
||||
Requires<[In64BitMode, HasRDPID]>;
|
||||
} // SchedRW
|
||||
|
||||
let Predicates = [In64BitMode, HasRDPID] in {
|
||||
@ -742,14 +695,12 @@ let Predicates = [In64BitMode, HasRDPID] in {
|
||||
let SchedRW = [WriteSystem] in {
|
||||
|
||||
def PTWRITEm: I<0xAE, MRM4m, (outs), (ins i32mem:$dst),
|
||||
"ptwrite{l}\t$dst", [], IIC_PTWRITE>, XS;
|
||||
"ptwrite{l}\t$dst", []>, XS;
|
||||
def PTWRITE64m : RI<0xAE, MRM4m, (outs), (ins i64mem:$dst),
|
||||
"ptwrite{q}\t$dst", [], IIC_PTWRITE>, XS,
|
||||
Requires<[In64BitMode]>;
|
||||
"ptwrite{q}\t$dst", []>, XS, Requires<[In64BitMode]>;
|
||||
|
||||
def PTWRITEr : I<0xAE, MRM4r, (outs), (ins GR32:$dst),
|
||||
"ptwrite{l}\t$dst", [], IIC_PTWRITE>, XS;
|
||||
"ptwrite{l}\t$dst", []>, XS;
|
||||
def PTWRITE64r : RI<0xAE, MRM4r, (outs), (ins GR64:$dst),
|
||||
"ptwrite{q}\t$dst", [], IIC_PTWRITE>, XS,
|
||||
Requires<[In64BitMode]>;
|
||||
"ptwrite{q}\t$dst", []>, XS, Requires<[In64BitMode]>;
|
||||
} // SchedRW
|
||||
|
@ -18,59 +18,59 @@
|
||||
let SchedRW = [WriteSystem] in {
|
||||
// 66 0F 38 80
|
||||
def INVEPT32 : I<0x80, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
|
||||
"invept\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
"invept\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
def INVEPT64 : I<0x80, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
|
||||
"invept\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
"invept\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 66 0F 38 81
|
||||
def INVVPID32 : I<0x81, MRMSrcMem, (outs), (ins GR32:$src1, i128mem:$src2),
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[Not64BitMode]>;
|
||||
def INVVPID64 : I<0x81, MRMSrcMem, (outs), (ins GR64:$src1, i128mem:$src2),
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", [], IIC_VMX>, T8PD,
|
||||
"invvpid\t{$src2, $src1|$src1, $src2}", []>, T8PD,
|
||||
Requires<[In64BitMode]>;
|
||||
|
||||
// 0F 01 C1
|
||||
def VMCALL : I<0x01, MRM_C1, (outs), (ins), "vmcall", [], IIC_VMX>, TB;
|
||||
def VMCALL : I<0x01, MRM_C1, (outs), (ins), "vmcall", []>, TB;
|
||||
def VMCLEARm : I<0xC7, MRM6m, (outs), (ins i64mem:$vmcs),
|
||||
"vmclear\t$vmcs", []>, PD;
|
||||
|
||||
// OF 01 D4
|
||||
def VMFUNC : I<0x01, MRM_D4, (outs), (ins), "vmfunc", [], IIC_VMX>, TB;
|
||||
def VMFUNC : I<0x01, MRM_D4, (outs), (ins), "vmfunc", []>, TB;
|
||||
|
||||
// 0F 01 C2
|
||||
def VMLAUNCH : I<0x01, MRM_C2, (outs), (ins), "vmlaunch", [], IIC_VMX>, TB;
|
||||
def VMLAUNCH : I<0x01, MRM_C2, (outs), (ins), "vmlaunch", []>, TB;
|
||||
|
||||
// 0F 01 C3
|
||||
def VMRESUME : I<0x01, MRM_C3, (outs), (ins), "vmresume", [], IIC_VMX>, TB;
|
||||
def VMRESUME : I<0x01, MRM_C3, (outs), (ins), "vmresume", []>, TB;
|
||||
def VMPTRLDm : I<0xC7, MRM6m, (outs), (ins i64mem:$vmcs),
|
||||
"vmptrld\t$vmcs", [], IIC_VMX>, PS;
|
||||
"vmptrld\t$vmcs", []>, PS;
|
||||
def VMPTRSTm : I<0xC7, MRM7m, (outs), (ins i64mem:$vmcs),
|
||||
"vmptrst\t$vmcs", [], IIC_VMX>, PS;
|
||||
"vmptrst\t$vmcs", []>, PS;
|
||||
def VMREAD64rr : I<0x78, MRMDestReg, (outs GR64:$dst), (ins GR64:$src),
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
def VMREAD32rr : I<0x78, MRMDestReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
|
||||
let mayStore = 1 in {
|
||||
def VMREAD64mr : I<0x78, MRMDestMem, (outs), (ins i64mem:$dst, GR64:$src),
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
"vmread{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
def VMREAD32mr : I<0x78, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$src),
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
"vmread{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
} // mayStore
|
||||
|
||||
def VMWRITE64rr : I<0x79, MRMSrcReg, (outs GR64:$dst), (ins GR64:$src),
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
def VMWRITE32rr : I<0x79, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src),
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
|
||||
let mayLoad = 1 in {
|
||||
def VMWRITE64rm : I<0x79, MRMSrcMem, (outs GR64:$dst), (ins i64mem:$src),
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[In64BitMode]>;
|
||||
"vmwrite{q}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[In64BitMode]>;
|
||||
def VMWRITE32rm : I<0x79, MRMSrcMem, (outs GR32:$dst), (ins i32mem:$src),
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", [], IIC_VMX>, PS, Requires<[Not64BitMode]>;
|
||||
"vmwrite{l}\t{$src, $dst|$dst, $src}", []>, PS, Requires<[Not64BitMode]>;
|
||||
} // mayLoad
|
||||
|
||||
// 0F 01 C4
|
||||
|
@ -245,26 +245,6 @@ def IIC_SHD64_REG_IM : InstrItinClass;
|
||||
def IIC_SHD64_REG_CL : InstrItinClass;
|
||||
def IIC_SHD64_MEM_IM : InstrItinClass;
|
||||
def IIC_SHD64_MEM_CL : InstrItinClass;
|
||||
// jmp/jcc/jcxz
|
||||
def IIC_Jcc : InstrItinClass;
|
||||
def IIC_JCXZ : InstrItinClass;
|
||||
def IIC_JMP_REL : InstrItinClass;
|
||||
def IIC_JMP_REG : InstrItinClass;
|
||||
def IIC_JMP_MEM : InstrItinClass;
|
||||
def IIC_JMP_FAR_MEM : InstrItinClass;
|
||||
def IIC_JMP_FAR_PTR : InstrItinClass;
|
||||
// loop
|
||||
def IIC_LOOP : InstrItinClass;
|
||||
def IIC_LOOPE : InstrItinClass;
|
||||
def IIC_LOOPNE : InstrItinClass;
|
||||
// call
|
||||
def IIC_CALL_RI : InstrItinClass;
|
||||
def IIC_CALL_MEM : InstrItinClass;
|
||||
def IIC_CALL_FAR_MEM : InstrItinClass;
|
||||
def IIC_CALL_FAR_PTR : InstrItinClass;
|
||||
// ret
|
||||
def IIC_RET : InstrItinClass;
|
||||
def IIC_RET_IMM : InstrItinClass;
|
||||
//sign extension movs
|
||||
def IIC_MOVSX : InstrItinClass;
|
||||
def IIC_MOVSX_R16_R8 : InstrItinClass;
|
||||
@ -436,76 +416,10 @@ def IIC_XADD_LOCK_MEM : InstrItinClass;
|
||||
def IIC_XADD_LOCK_MEM8 : InstrItinClass;
|
||||
|
||||
// System instructions
|
||||
def IIC_CPUID : InstrItinClass;
|
||||
def IIC_INT : InstrItinClass;
|
||||
def IIC_INT3 : InstrItinClass;
|
||||
def IIC_INVD : InstrItinClass;
|
||||
def IIC_INVLPG : InstrItinClass;
|
||||
def IIC_INVPCID : InstrItinClass;
|
||||
def IIC_IRET : InstrItinClass;
|
||||
def IIC_HLT : InstrItinClass;
|
||||
def IIC_LXS : InstrItinClass;
|
||||
def IIC_LTR : InstrItinClass;
|
||||
def IIC_MPX : InstrItinClass;
|
||||
def IIC_PKU : InstrItinClass;
|
||||
def IIC_PTWRITE : InstrItinClass;
|
||||
def IIC_RDPID : InstrItinClass;
|
||||
def IIC_RDRAND : InstrItinClass;
|
||||
def IIC_RDSEED : InstrItinClass;
|
||||
def IIC_RDTSC : InstrItinClass;
|
||||
def IIC_RDTSCP : InstrItinClass;
|
||||
def IIC_RSM : InstrItinClass;
|
||||
def IIC_SIDT : InstrItinClass;
|
||||
def IIC_SGDT : InstrItinClass;
|
||||
def IIC_SLDT : InstrItinClass;
|
||||
def IIC_SMAP : InstrItinClass;
|
||||
def IIC_SMX : InstrItinClass;
|
||||
def IIC_STR : InstrItinClass;
|
||||
def IIC_SKINIT : InstrItinClass;
|
||||
def IIC_SVM : InstrItinClass;
|
||||
def IIC_VMX : InstrItinClass;
|
||||
def IIC_CLGI : InstrItinClass;
|
||||
def IIC_STGI : InstrItinClass;
|
||||
def IIC_SWAPGS : InstrItinClass;
|
||||
def IIC_SYSCALL : InstrItinClass;
|
||||
def IIC_SYS_ENTER_EXIT : InstrItinClass;
|
||||
def IIC_IN_RR : InstrItinClass;
|
||||
def IIC_IN_RI : InstrItinClass;
|
||||
def IIC_OUT_RR : InstrItinClass;
|
||||
def IIC_OUT_IR : InstrItinClass;
|
||||
def IIC_INS : InstrItinClass;
|
||||
def IIC_LWP : InstrItinClass;
|
||||
def IIC_MOV_REG_DR : InstrItinClass;
|
||||
def IIC_MOV_DR_REG : InstrItinClass;
|
||||
def IIC_MOV_REG_CR : InstrItinClass;
|
||||
def IIC_MOV_CR_REG : InstrItinClass;
|
||||
def IIC_MOV_REG_SR : InstrItinClass;
|
||||
def IIC_MOV_MEM_SR : InstrItinClass;
|
||||
def IIC_MOV_SR_REG : InstrItinClass;
|
||||
def IIC_MOV_SR_MEM : InstrItinClass;
|
||||
def IIC_LAR_RM : InstrItinClass;
|
||||
def IIC_LAR_RR : InstrItinClass;
|
||||
def IIC_LSL_RM : InstrItinClass;
|
||||
def IIC_LSL_RR : InstrItinClass;
|
||||
def IIC_LGDT : InstrItinClass;
|
||||
def IIC_LIDT : InstrItinClass;
|
||||
def IIC_LLDT_REG : InstrItinClass;
|
||||
def IIC_LLDT_MEM : InstrItinClass;
|
||||
def IIC_PUSH_CS : InstrItinClass;
|
||||
def IIC_PUSH_SR : InstrItinClass;
|
||||
def IIC_POP_SR : InstrItinClass;
|
||||
def IIC_POP_SR_SS : InstrItinClass;
|
||||
def IIC_SEGMENT_BASE_R : InstrItinClass;
|
||||
def IIC_SEGMENT_BASE_W : InstrItinClass;
|
||||
def IIC_VERR : InstrItinClass;
|
||||
def IIC_VERW_REG : InstrItinClass;
|
||||
def IIC_VERW_MEM : InstrItinClass;
|
||||
def IIC_WRMSR : InstrItinClass;
|
||||
def IIC_RDMSR : InstrItinClass;
|
||||
def IIC_RDPMC : InstrItinClass;
|
||||
def IIC_SMSW : InstrItinClass;
|
||||
def IIC_LMSW_REG : InstrItinClass;
|
||||
def IIC_LMSW_MEM : InstrItinClass;
|
||||
def IIC_ENTER : InstrItinClass;
|
||||
def IIC_LEAVE : InstrItinClass;
|
||||
def IIC_POP_MEM : InstrItinClass;
|
||||
@ -555,9 +469,6 @@ def IIC_LODS : InstrItinClass;
|
||||
def IIC_OUTS : InstrItinClass;
|
||||
def IIC_CLC_CMC_STC : InstrItinClass;
|
||||
def IIC_CLD : InstrItinClass;
|
||||
def IIC_CLI : InstrItinClass;
|
||||
def IIC_CLTS : InstrItinClass;
|
||||
def IIC_STI : InstrItinClass;
|
||||
def IIC_STD : InstrItinClass;
|
||||
def IIC_XLAT : InstrItinClass;
|
||||
def IIC_AAA : InstrItinClass;
|
||||
@ -580,7 +491,6 @@ def IIC_SSE_DPPD_RR : InstrItinClass;
|
||||
def IIC_SSE_DPPD_RM : InstrItinClass;
|
||||
def IIC_SSE_DPPS_RR : InstrItinClass;
|
||||
def IIC_SSE_DPPS_RM : InstrItinClass;
|
||||
def IIC_MMX_EMMS : InstrItinClass;
|
||||
def IIC_SSE_EXTRACTPS_RR : InstrItinClass;
|
||||
def IIC_SSE_EXTRACTPS_RM : InstrItinClass;
|
||||
def IIC_SSE_INSERTPS_RR : InstrItinClass;
|
||||
@ -598,8 +508,6 @@ def IIC_SSE_POPCNT_RM : InstrItinClass;
|
||||
def IIC_SSE_PCLMULQDQ_RR : InstrItinClass;
|
||||
def IIC_SSE_PCLMULQDQ_RM : InstrItinClass;
|
||||
|
||||
def IIC_NOP : InstrItinClass;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Processor instruction itineraries.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user