Re: [RFC v2 10/15] target/riscv: rvb: rotate (left/right)

2020-12-16 Thread Richard Henderson
On 12/15/20 8:01 PM, frank.ch...@sifive.com wrote: > +static bool trans_ror(DisasContext *ctx, arg_ror *a) > { > +REQUIRE_EXT(ctx, RVB); > +return gen_arith(ctx, a, &tcg_gen_rotr_tl); > +} Use gen_shift. > +static bool trans_rori(DisasContext *ctx, arg_rori *a) > +{ > +REQUIRE_EXT(ct

[RFC v2 10/15] target/riscv: rvb: rotate (left/right)

2020-12-15 Thread frank . chang
From: Kito Cheng Signed-off-by: Kito Cheng Signed-off-by: Frank Chang --- target/riscv/insn32-64.decode | 3 ++ target/riscv/insn32.decode | 3 ++ target/riscv/insn_trans/trans_rvb.c.inc | 61 + target/riscv/translate.c| 36 +