diff options
author | iximeow <me@iximeow.net> | 2020-08-03 02:03:51 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-08-09 01:38:57 -0700 |
commit | c7caf34a152cc4103c1ba0e7a8da22ea340aaa3d (patch) | |
tree | a174213cf90b8c7a3d6d77cba5f598469c778196 /src | |
parent | da67f024060e36b016c2554fdca91a2a70ece235 (diff) |
vextractf128
Diffstat (limited to 'src')
-rw-r--r-- | src/long_mode/vex.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/long_mode/vex.rs b/src/long_mode/vex.rs index 889d0a8..7cfcc3d 100644 --- a/src/long_mode/vex.rs +++ b/src/long_mode/vex.rs @@ -461,7 +461,9 @@ fn read_vex_operands<T: Iterator<Item=u8>>(bytes: &mut T, instruction: &mut Inst let mem_oper = read_E_xmm(bytes, instruction, modrm, length)?; instruction.operands[0] = mem_oper; instruction.operands[1] = OperandSpec::RegRRR; - instruction.operand_count = 2; + instruction.imm = read_imm_unsigned(bytes, 1, length)?; + instruction.operands[2] = OperandSpec::ImmU8; + instruction.operand_count = 3; Ok(()) } |