OSDN Git Service

target/arm: Use tcg_gen_rotri_i32 for gen_swap_half
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Aug 2019 20:26:14 +0000 (13:26 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Aug 2019 13:02:53 +0000 (14:02 +0100)
commitadefba76e8bf10dfb342094d2f5debfeedb1a74d
tree4c53f92773407a97a229609ff72d268b466c3064
parentdd861b3f29be97a9e3cdb9769dcbc0c7d7825185
target/arm: Use tcg_gen_rotri_i32 for gen_swap_half

Rotate is the more compact and obvious way to swap 16-bit
elements of a 32-bit word.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190808202616.13782-6-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate.c