Commit d9885a0b9e07ac086f1fb31528192421aa33b459

Authored by Aurelien Jarno
1 parent 9fdca5aa

tcg: Fix tcg_gen_rotr_i64

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Showing 1 changed file with 1 additions and 1 deletions
tcg/tcg-op.h
... ... @@ -1749,7 +1749,7 @@ static inline void tcg_gen_rotr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
1749 1749  
1750 1750 t0 = tcg_temp_new_i64();
1751 1751 t1 = tcg_temp_new_i64();
1752   - tcg_gen_shl_i64(t0, arg1, arg2);
  1752 + tcg_gen_shr_i64(t0, arg1, arg2);
1753 1753 tcg_gen_subfi_i64(t1, 64, arg2);
1754 1754 tcg_gen_shl_i64(t1, arg1, t1);
1755 1755 tcg_gen_or_i64(ret, t0, t1);
... ...