Re: [PATCH 17/25] target/i386: convert SHLD/SHRD to new decoder

2024-06-08 Thread Richard Henderson
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

[PATCH 17/25] target/i386: convert SHLD/SHRD to new decoder

2024-06-08 Thread Paolo Bonzini
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