From 158507298f1a67b130bf4b9d1caebfccf96eccfa Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Aug 2020 20:20:44 -0700 Subject: remove unused OperandCode variants --- src/long_mode/mod.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs index 7c339b1..40f7904 100644 --- a/src/long_mode/mod.rs +++ b/src/long_mode/mod.rs @@ -3531,8 +3531,8 @@ pub enum OperandCode { DX_AL = OperandCodeBuilder::new().special_case(47).bits(), MOVQ_f30f = OperandCodeBuilder::new().special_case(48).bits(), - // Implied, - Unsupported, + Unsupported = OperandCodeBuilder::new().special_case(49).bits(), + ModRM_0x0f00 = OperandCodeBuilder::new().read_modrm().special_case(0).bits(), ModRM_0x0f01 = OperandCodeBuilder::new().read_modrm().special_case(1).bits(), ModRM_0x0f0d = OperandCodeBuilder::new().read_modrm().special_case(2).bits(), @@ -7998,7 +7998,6 @@ fn decode_x87>(_decoder: &InstDecoder, mut bytes_iter: T, i Est, St_Est, St_Ew, - St_Ed, St_Md, Md, Ew, @@ -8343,12 +8342,6 @@ fn decode_x87>(_decoder: &InstDecoder, mut bytes_iter: T, i instruction.operands[1] = read_E(&mut bytes_iter, instruction, modrm, 2, length)?; instruction.operand_count = 2; } - OperandCodeX87::St_Ed => { - instruction.operands[0] = OperandSpec::RegRRR; - instruction.modrm_rrr = RegSpec::st(0); - instruction.operands[1] = read_E(&mut bytes_iter, instruction, modrm, 4, length)?; - instruction.operand_count = 2; - } OperandCodeX87::St_Md => { instruction.operands[0] = OperandSpec::RegRRR; instruction.modrm_rrr = RegSpec::st(0); -- cgit v1.1