target-arm: Use tcg_gen_extrh_i64_i32
authorRichard Henderson <rth@twiddle.net>
Mon, 14 Sep 2015 13:39:49 +0000 (14:39 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2015 13:39:49 +0000 (14:39 +0100)
commit7cb36e18b2f1c1f971ebdc2121de22a8c2e94fd6
tree785df5bd34d38d07b88a1872d17b3be80ec596d7
parent8fb0ad8e16ab3d03433244a1a03e1df757342ad8
target-arm: Use tcg_gen_extrh_i64_i32

Usually, eliminate an operation from the translator by combining
a shift with an extract.

In the case of gen_set_NZ64, we don't need a boolean value for cpu_ZF,
merely a non-zero value.  Given that we can extract both halves of a
64-bit input in one call, this simplifies the code.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-id: 1441909103-24666-12-git-send-email-rth@twiddle.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate-a64.c