aboutsummaryrefslogtreecommitdiff
path: root/src/shared/evex.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/evex.in')
-rw-r--r--src/shared/evex.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/evex.in b/src/shared/evex.in
index 5d3b053..31fc3a7 100644
--- a/src/shared/evex.in
+++ b/src/shared/evex.in
@@ -240,7 +240,7 @@ pub(crate) fn read_evex<
if let Some(size) = overridden_size {
instruction.disp = instruction.disp.wrapping_mul(size);
} else {
- apply_disp_scale(instruction);
+ instruction.disp = instruction.disp.wrapping_mul(instruction.mem_size.into());
}
instruction.prefixes.apply_compressed_disp(false);
}