On 11/18/20 12:29 AM, [email protected] wrote: > +static void gen_sbop_shamt(TCGv ret, TCGv shamt) > +{ > + tcg_gen_andi_tl(ret, shamt, TARGET_LONG_BITS - 1); > +} > + > +static void gen_sbop_common(TCGv ret, TCGv shamt) > +{ > + TCGv t; > + t = tcg_temp_new();
All of the places where you declare then initialize on the next line, please merge them: TCGv t = tcg_temp_new(); It would be nice to share more code between the normal and *w versions. As it is, there's a *lot* of repetition with only TARGET_LONG_BITS vs 32 separating them. > + tcg_gen_not_tl(mask, mask); > + tcg_gen_and_tl(ret, arg1, mask); andc. r~
