diff options
| author | iximeow <me@iximeow.net> | 2026-05-03 18:04:32 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-05-03 18:04:32 +0000 |
| commit | 9ece719b32340e3800da1ed7c0b9f70746cae51b (patch) | |
| tree | 8f36290302c638df15a3a3ae13a023e576760f62 /src/long_mode/vex.rs | |
| parent | 5e42a8bf68f369eb4d5017993e403308fd02ca67 (diff) | |
vblendv{ps,pd} precision
Diffstat (limited to 'src/long_mode/vex.rs')
| -rw-r--r-- | src/long_mode/vex.rs | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/long_mode/vex.rs b/src/long_mode/vex.rs index 2a98166..89c36fb 100644 --- a/src/long_mode/vex.rs +++ b/src/long_mode/vex.rs @@ -2825,16 +2825,24 @@ fn read_vex_instruction< } else { return Err(DecodeError::InvalidOpcode); }), - 0x4A => (Opcode::VBLENDVPS, if L { - VEXOperandCode::G_V_E_ymm_ymm4 + 0x4A => if instruction.prefixes.vex_unchecked().w() { + return Err(DecodeError::InvalidOpcode); } else { - VEXOperandCode::G_V_E_xmm_xmm4 - }), - 0x4B => (Opcode::VBLENDVPD, if L { - VEXOperandCode::G_V_E_ymm_ymm4 + (Opcode::VBLENDVPS, if L { + VEXOperandCode::G_V_E_ymm_ymm4 + } else { + VEXOperandCode::G_V_E_xmm_xmm4 + }) + }, + 0x4B => if instruction.prefixes.vex_unchecked().w() { + return Err(DecodeError::InvalidOpcode); } else { - VEXOperandCode::G_V_E_xmm_xmm4 - }), + (Opcode::VBLENDVPD, if L { + VEXOperandCode::G_V_E_ymm_ymm4 + } else { + VEXOperandCode::G_V_E_xmm_xmm4 + }) + }, 0x4C => if instruction.prefixes.vex_unchecked().w() { return Err(DecodeError::InvalidOpcode); } else { |
