diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-26 13:58:13 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-13 06:44:38 -0700 |
commit | f04de891b503aa11dc9931b48090db8e8fcbba6f (patch) | |
tree | f6c23896cb0feb432685e9ac63841b232a3abd68 /tcg/tcg-op.c | |
parent | 151293c2fbdfeaf2a2e00ec250956ae590f50413 (diff) | |
download | qemu-f04de891b503aa11dc9931b48090db8e8fcbba6f.zip qemu-f04de891b503aa11dc9931b48090db8e8fcbba6f.tar.gz qemu-f04de891b503aa11dc9931b48090db8e8fcbba6f.tar.bz2 |
tcg: Replace tcg_const_i64 in tcg-op.c
These three instances got missed in previous conversion.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-op.c')
-rw-r--r-- | tcg/tcg-op.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 1a039a2..ddab20a 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -1563,9 +1563,7 @@ void tcg_gen_muli_i64(TCGv_i64 ret, TCGv_i64 arg1, int64_t arg2) } else if (is_power_of_2(arg2)) { tcg_gen_shli_i64(ret, arg1, ctz64(arg2)); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_mul_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_mul_i64(ret, arg1, tcg_constant_i64(arg2)); } } @@ -1962,9 +1960,7 @@ void tcg_gen_clzi_i64(TCGv_i64 ret, TCGv_i64 arg1, uint64_t arg2) tcg_gen_movi_i32(TCGV_HIGH(ret), 0); tcg_temp_free_i32(t); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_clz_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_clz_i64(ret, arg1, tcg_constant_i64(arg2)); } } @@ -2016,9 +2012,7 @@ void tcg_gen_ctzi_i64(TCGv_i64 ret, TCGv_i64 arg1, uint64_t arg2) tcg_gen_ctpop_i64(ret, t); tcg_temp_free_i64(t); } else { - TCGv_i64 t0 = tcg_const_i64(arg2); - tcg_gen_ctz_i64(ret, arg1, t0); - tcg_temp_free_i64(t0); + tcg_gen_ctz_i64(ret, arg1, tcg_constant_i64(arg2)); } } |