On 12/23/23 05:15, Paolo Bonzini wrote:
Usually the registers are just moved into s->T0 without much care for
their operand size.  However, in some cases we can get more efficient
code if the operand fetching logic syncs with the emission function
on what is nicer.

All the current uses are mostly demonstrative and only reduce the code
in the emission functions, because the instructions do not support
memory operands.  However the logic is generic and applies to several
more instructions such as MOVSXD (aka movslq), one-byte shift
instructions, multiplications, XLAT, and indirect calls/jumps.

Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
  target/i386/tcg/decode-new.c.inc | 18 ++++++++++----
  target/i386/tcg/decode-new.h     |  4 +++
  target/i386/tcg/emit.c.inc       | 42 +++++++++++++++++---------------
  3 files changed, 40 insertions(+), 24 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to