tcg/arm: Simplify usage of encode_imm
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 9 Aug 2021 22:27:08 +0000 (12:27 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Sep 2021 19:00:21 +0000 (12:00 -0700)
commit90606715dc1b5de5c432afd0deac8b5c6d36eeda
tree57ddb8f177658e23add26db054baf0447458969c
parent31d160adc9d2a13db582096bb844038732c1fbea
tcg/arm: Simplify usage of encode_imm

We have already computed the rotated value of the imm8
portion of the complete imm12 encoding.  No sense leaving
the combination of rot + rotation to the caller.

Create an encode_imm12_nofail helper that performs an assert.

This removes the final use of the local "rotl" function,
which duplicated our generic "rol32" function.

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