From e6b4393054cdf11bf5a1afbd75ed389c66f02395 Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 5 Jul 2023 01:10:48 -0700 Subject: re-correct operand order of movdq2q --- src/long_mode/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/long_mode') diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index f40f0e8..27c3ca9 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -5098,7 +5098,7 @@ enum OperandCase { AX_Ov, G_xmm_E_mm, G_xmm_U_mm, - U_mm_G_xmm, + G_mm_U_xmm, Rv_Gmm_Ib, G_xmm_Edq, G_xmm_Eq, @@ -5445,7 +5445,7 @@ enum OperandCode { // gap, 0x9a G_xmm_E_mm = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_xmm_E_mm).bits(), G_xmm_U_mm = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_xmm_U_mm).bits(), - U_mm_G_xmm = OperandCodeBuilder::new().read_E().mem_reg().operand_case(OperandCase::U_mm_G_xmm).bits(), + G_mm_U_xmm = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_mm_U_xmm).bits(), G_xmm_Edq = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_xmm_Edq).bits(), G_xmm_Eq = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_xmm_Eq).bits(), G_mm_E_xmm = OperandCodeBuilder::new().read_E().reg_mem().operand_case(OperandCase::G_mm_E_xmm).bits(), @@ -8955,7 +8955,7 @@ fn read_operands< return Err(DecodeError::InvalidOperand); } } - OperandCase::U_mm_G_xmm => { + OperandCase::G_mm_U_xmm => { instruction.regs[1].bank = RegisterBank::X; if mem_oper == OperandSpec::RegMMM { instruction.regs[0].bank = RegisterBank::MM; @@ -11235,7 +11235,7 @@ const REPNZ_0F_CODES: [OpcodeRecord; 256] = [ OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), - OpcodeRecord(Interpretation::Instruction(Opcode::MOVDQ2Q), OperandCode::U_mm_G_xmm), + OpcodeRecord(Interpretation::Instruction(Opcode::MOVDQ2Q), OperandCode::G_mm_U_xmm), OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), OpcodeRecord(Interpretation::Instruction(Opcode::Invalid), OperandCode::Nothing), -- cgit v1.1