Re: [PATCH] target/riscv: fix ctzw behavior

2023-02-03 Thread Richard Henderson
On 2/3/23 04:00, Vladimir Isaev wrote: According to spec, ctzw should work with 32-bit register, not 64. For example, previous implementation returns 33 for (1<<33) input when the new one returns 32. Signed-off-by: Vladimir Isaev --- target/riscv/insn_trans/trans_rvb.c.inc | 9 - 1

[PATCH] target/riscv: fix ctzw behavior

2023-02-03 Thread Vladimir Isaev
According to spec, ctzw should work with 32-bit register, not 64. For example, previous implementation returns 33 for (1<<33) input when the new one returns 32. Signed-off-by: Vladimir Isaev --- target/riscv/insn_trans/trans_rvb.c.inc | 9 - 1 file changed, 8 insertions(+), 1 deletion(-