target/ppc: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 4 Oct 2024 19:30:30 +0000 (16:30 -0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 15 Oct 2024 15:13:59 +0000 (12:13 -0300)
commitcebf9b0da264dbde9e3392c48077dd94428439e4
tree1572f01926d54e6e2443cdff17853fa730b0e9f7
parent96ce24da684454b2f8c86c9b47ee703ecf194cc0
target/ppc: Use tcg_constant_tl() instead of tcg_gen_movi_tl()

Directly use tcg_constant_tl() for constant integer,
this save a call to tcg_gen_movi_tl() and a temp register.

Inspired-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241004202621.4321-4-philmd@linaro.org>
target/ppc/translate.c