tcg/sparc: Use tcg_out_movi_imm13 in tcg_out_addsub2_i64
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Feb 2022 23:15:58 +0000 (10:15 +1100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Feb 2022 21:56:50 +0000 (08:56 +1100)
commit414399b6b8a02f03d3b0cba5cfa9205dff618a9b
tree3bf76b7db351d7ee7839f37c68eaef259da07885
parentd9e52834656ffa766113f1fbae8efe37aaac1df2
tcg/sparc: Use tcg_out_movi_imm13 in tcg_out_addsub2_i64

When BH is constant, it is constrained to 11 bits for use in MOVCC.
For the cases in which we must load the constant BH into a register,
we do not need the full logic of tcg_out_movi; we can use the simpler
function for emitting a 13 bit constant.

This eliminates the only case in which TCG_REG_T2 was passed to
tcg_out_movi, which will shortly become invalid.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/sparc/tcg-target.c.inc