On 6/8/24 01:41, Paolo Bonzini wrote:
Use the same flag generation code as SHL and SHR, but use
the existing gen_shiftd_rm_T1 function to compute the result
as well as CC_SRC.
Decoding-wise, SHLD/SHRD by immediate count as a 4 operand
instruction because s->T0 and s->T1 actually occupy three op
slots. The infrastructure used by opcodes in the 0F 3A table
works fine.
Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
target/i386/tcg/translate.c | 83 +-------------------------------
target/i386/tcg/decode-new.c.inc | 6 ++-
target/i386/tcg/emit.c.inc | 42 ++++++++++++++++
3 files changed, 48 insertions(+), 83 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
r~