mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
tcg: Fix tcg_gen_rotr_i64
Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
9fdca5aa5d
commit
d9885a0b9e
1 changed files with 1 additions and 1 deletions
|
@ -1749,7 +1749,7 @@ static inline void tcg_gen_rotr_i64(TCGv_i64 ret, TCGv_i64 arg1, TCGv_i64 arg2)
|
|||
|
||||
t0 = tcg_temp_new_i64();
|
||||
t1 = tcg_temp_new_i64();
|
||||
tcg_gen_shl_i64(t0, arg1, arg2);
|
||||
tcg_gen_shr_i64(t0, arg1, arg2);
|
||||
tcg_gen_subfi_i64(t1, 64, arg2);
|
||||
tcg_gen_shl_i64(t1, arg1, t1);
|
||||
tcg_gen_or_i64(ret, t0, t1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue