tcg: Fix typo in tcg_gen_hswap_i64
PATCH 1/1 tcg: Fix typo in tcg_gen_hswap_i64
Fixes 288d39e26d ("tcg: Simplify bswap/hswap expansion using bitswap")
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4229
Signed-off-by Richard Henderson <[email protected]>
--- tcg/tcg-op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/tcg-op.c +1 -1
@@ -1887,7 +1887,7 @@ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg)*/ void tcg_gen_hswap_i64 (TCGv_i64 ret,TCGv_i64 arg) { -gen_bitswap_i64 (ret, ret,0x0000ffff0000ffffull ); +gen_bitswap_i64 (ret, arg,0x0000ffff0000ffffull );tcg_gen_wswap_i64 (ret, ret); }
Signature · 1 line
2.53.0
Quoted 13 lines · Richard Henderson
Fixes 288d39e26d ("tcg: Simplify bswap/hswap expansion using bitswap")Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4229
Signed-off-by Richard Henderson <[email protected]>--- tcg/tcg-op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tcg/tcg-op.c +0
-0
tcg/tcg-op.c void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) · line 1893
Quoted 8 lines
tcg/tcg-op.c +1
-1@@ -1887,7 +1887,7 @@ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg)*/ void tcg_gen_hswap_i64 (TCGv_i64 ret,TCGv_i64 arg) { -gen_bitswap_i64 (ret, ret,0x0000ffff0000ffffull ); +gen_bitswap_i64 (ret, arg,0x0000ffff0000ffffull );tcg_gen_wswap_i64 (ret, ret); }
Reviewed-by Peter Maydell <[email protected]>
thanks
-- PMM
Quoted 12 lines · Richard Henderson
Fixes 288d39e26d ("tcg: Simplify bswap/hswap expansion using bitswap")Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4229
Signed-off-by Richard Henderson <[email protected]>--- tcg/tcg-op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tcg/tcg-op.c +0
-0
tcg/tcg-op.c void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg) · line 1890
Quoted 5 lines
tcg/tcg-op.c +1
-1@@ -1887,7 +1887,7 @@ void tcg_gen_bswap64_i64(TCGv_i64 ret, TCGv_i64 arg)*/ void tcg_gen_hswap_i64 (TCGv_i64 ret,TCGv_i64 arg) { -gen_bitswap_i64 (ret, ret,0x0000ffff0000ffffull ); +gen_bitswap_i64 (ret, arg,0x0000ffff0000ffffull );
I was pretty sure that would be the kind of mistake but missed it :)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 3 lines
tcg/tcg-op.c +0
-0tcg_gen_wswap_i64 (ret, ret); }