OSDN Git Service

target/arm: Use smin/smax for do_sat_addsub_32
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 17 Apr 2022 17:43:46 +0000 (10:43 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Apr 2022 13:44:55 +0000 (14:44 +0100)
commitaa5b0b29b12eb5741f0bba01316166d1f721b8f0
treebaf7edccfd67cf24c20c8e070c8b2a9fdf62723e
parentd9b47e97e76cf439c90df69f0afb710b3bc3cc2c
target/arm: Use smin/smax for do_sat_addsub_32

The operation we're performing with the movcond
is either min/max depending on cond -- simplify.
Use tcg_constant_i64 while we're at it.

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