tcg-arm: The shift count of op_rotl_i32 is in args[2] not args[1].
PATCH 1/1 tcg-arm: The shift count of op_rotl_i32 is in args[2] not args[1].
It's this that should be subtracted from 0x20 when converting to a right rotate.
Signed-off-by Huw Davies <[email protected]>
--- tcg/arm/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/arm/tcg-target.c +1 -1
@@ -1866,7 +1866,7 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, SHIFT_IMM_ROR((0x20 - args[2]) & 0x1f) : SHIFT_IMM_LSL(0)); }else { -tcg_out_dat_imm (s,COND_AL ,ARITH_RSB ,TCG_REG_TMP , args[1 ],0x20 ); +tcg_out_dat_imm (s,COND_AL ,ARITH_RSB ,TCG_REG_TMP , args[2 ],0x20 );tcg_out_dat_reg (s,COND_AL ,ARITH_MOV , args[0 ],0 , args[1 ],SHIFT_REG_ROR (TCG_REG_TMP )); }
Signature · 1 line
1.8.0
Quoted 6 lines · Huw Davies
It's this that should be subtracted from
0x20when converting to a right rotate.Signed-off-by Huw Davies <[email protected]>--- tcg/arm/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Richard Henderson <[email protected]>
r~