mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 11:23:58 +00:00
[X86][NFC] Correct the instruction names for PUSH16i, PUSH32i
Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D151012
This commit is contained in:
parent
ef107afd48
commit
89ca4eb002
@ -270,7 +270,7 @@ public:
|
||||
case X86::PUSHFS16:
|
||||
case X86::PUSHGS16:
|
||||
case X86::PUSHSS16:
|
||||
case X86::PUSHi16:
|
||||
case X86::PUSH16i:
|
||||
return 2;
|
||||
case X86::PUSH32i8:
|
||||
case X86::PUSH32r:
|
||||
@ -284,7 +284,7 @@ public:
|
||||
case X86::PUSHFS32:
|
||||
case X86::PUSHGS32:
|
||||
case X86::PUSHSS32:
|
||||
case X86::PUSHi32:
|
||||
case X86::PUSH32i:
|
||||
return 4;
|
||||
case X86::PUSH64i32:
|
||||
case X86::PUSH64i8:
|
||||
@ -2548,8 +2548,8 @@ public:
|
||||
default: {
|
||||
switch (getPushSize(Inst)) {
|
||||
|
||||
case 2: I = {2, false, {{CHECK8, X86::PUSH16i8}, {NOCHECK, X86::PUSHi16}}}; break;
|
||||
case 4: I = {4, false, {{CHECK8, X86::PUSH32i8}, {NOCHECK, X86::PUSHi32}}}; break;
|
||||
case 2: I = {2, false, {{CHECK8, X86::PUSH16i8}, {NOCHECK, X86::PUSH16i}}}; break;
|
||||
case 4: I = {4, false, {{CHECK8, X86::PUSH32i8}, {NOCHECK, X86::PUSH32i}}}; break;
|
||||
case 8: I = {8, false, {{CHECK8, X86::PUSH64i8},
|
||||
{CHECK32, X86::PUSH64i32},
|
||||
{NOCHECK, Inst.getOpcode()}}}; break;
|
||||
|
@ -65,8 +65,8 @@ static const X86InstrRelaxTableEntry InstrRelaxTable[] = {
|
||||
{ X86::OR64mi8, X86::OR64mi32 },
|
||||
{ X86::OR64ri8, X86::OR64ri32 },
|
||||
// PUSH
|
||||
{ X86::PUSH16i8, X86::PUSHi16 },
|
||||
{ X86::PUSH32i8, X86::PUSHi32 },
|
||||
{ X86::PUSH16i8, X86::PUSH16i },
|
||||
{ X86::PUSH32i8, X86::PUSH32i },
|
||||
{ X86::PUSH64i8, X86::PUSH64i32 },
|
||||
// SBB
|
||||
{ X86::SBB16mi8, X86::SBB16mi },
|
||||
|
@ -520,7 +520,7 @@ void X86CallFrameOptimization::adjustCallSequence(MachineFunction &MF,
|
||||
case X86::OR64mi32:
|
||||
case X86::MOV32mi:
|
||||
case X86::MOV64mi32:
|
||||
PushOpcode = Is64Bit ? X86::PUSH64i32 : X86::PUSHi32;
|
||||
PushOpcode = Is64Bit ? X86::PUSH64i32 : X86::PUSH32i;
|
||||
// If the operand is a small (8-bit) immediate, we can use a
|
||||
// PUSH instruction with a shorter encoding.
|
||||
// Note that isImm() may fail even though this is a MOVmi, because
|
||||
|
@ -114,7 +114,7 @@ static bool isPushPop(const MachineInstr &MI) {
|
||||
case X86::PUSH32r:
|
||||
case X86::PUSH32rmm:
|
||||
case X86::PUSH32rmr:
|
||||
case X86::PUSHi32:
|
||||
case X86::PUSH32i:
|
||||
case X86::PUSH64i8:
|
||||
case X86::PUSH64r:
|
||||
case X86::PUSH64rmm:
|
||||
|
@ -3251,9 +3251,9 @@ void X86FrameLowering::adjustForSegmentedStacks(
|
||||
Reg11)
|
||||
.addImm(X86FI->getArgumentStackSize());
|
||||
} else {
|
||||
BuildMI(allocMBB, DL, TII.get(X86::PUSHi32))
|
||||
BuildMI(allocMBB, DL, TII.get(X86::PUSH32i))
|
||||
.addImm(X86FI->getArgumentStackSize());
|
||||
BuildMI(allocMBB, DL, TII.get(X86::PUSHi32))
|
||||
BuildMI(allocMBB, DL, TII.get(X86::PUSH32i))
|
||||
.addImm(StackSize);
|
||||
}
|
||||
|
||||
|
@ -436,7 +436,7 @@ int X86InstrInfo::getSPAdjust(const MachineInstr &MI) const {
|
||||
case X86::PUSH32r:
|
||||
case X86::PUSH32rmm:
|
||||
case X86::PUSH32rmr:
|
||||
case X86::PUSHi32:
|
||||
case X86::PUSH32i:
|
||||
return 4;
|
||||
case X86::PUSH64i8:
|
||||
case X86::PUSH64r:
|
||||
|
@ -92,13 +92,13 @@ def PUSH32rmr: I<0xFF, MRM6r, (outs), (ins GR32:$reg), "push{l}\t$reg",[]>,
|
||||
|
||||
def PUSH16i8 : Ii8<0x6a, RawFrm, (outs), (ins i16i8imm:$imm),
|
||||
"push{w}\t$imm", []>, OpSize16;
|
||||
def PUSHi16 : Ii16<0x68, RawFrm, (outs), (ins i16imm:$imm),
|
||||
def PUSH16i : Ii16<0x68, RawFrm, (outs), (ins i16imm:$imm),
|
||||
"push{w}\t$imm", []>, OpSize16;
|
||||
|
||||
def PUSH32i8 : Ii8<0x6a, RawFrm, (outs), (ins i32i8imm:$imm),
|
||||
"push{l}\t$imm", []>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
def PUSHi32 : Ii32<0x68, RawFrm, (outs), (ins i32imm:$imm),
|
||||
def PUSH32i : Ii32<0x68, RawFrm, (outs), (ins i32imm:$imm),
|
||||
"push{l}\t$imm", []>, OpSize32,
|
||||
Requires<[Not64BitMode]>;
|
||||
} // mayStore, SchedRW
|
||||
|
@ -537,7 +537,7 @@ def AtomWrite0_1_1 : SchedWriteRes<[AtomPort0, AtomPort1]> {
|
||||
def : InstRW<[AtomWrite0_1_1], (instrs POP32r, POP64r,
|
||||
POP16rmr, POP32rmr, POP64rmr,
|
||||
PUSH16r, PUSH32r, PUSH64r,
|
||||
PUSHi16, PUSHi32,
|
||||
PUSH16i, PUSH32i,
|
||||
PUSH16rmr, PUSH32rmr, PUSH64rmr,
|
||||
PUSH16i8, PUSH32i8, PUSH64i8, PUSH64i32,
|
||||
XCH_F)>;
|
||||
|
Loading…
Reference in New Issue
Block a user