diff --git a/src/x86.cpp b/src/x86.cpp index 4021c86e6d..2d4d3e55f7 100644 --- a/src/x86.cpp +++ b/src/x86.cpp @@ -518,7 +518,7 @@ void maybeRex(Context* c, unsigned size, Assembler::Register* a, Assembler::Memory* b) { - maybeRex(c, size, a->low, b->index, b->base, false); + maybeRex(c, size, a->low, b->index, b->base, size == 1 and (a->low & 4)); } void