tcg/loongarch64: Improve setcond expansion
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Nov 2022 15:08:12 +0000 (07:08 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 24 Jan 2023 02:00:13 +0000 (16:00 -1000)
commit21af16198425f1eaf5086e1406f22561da05e259
tree43bbc9d82c4f4358ff24be59e2c697e6a57bb22c
parent0e95be93c1200ded3296654c96cb34ae13beab6d
tcg/loongarch64: Improve setcond expansion

Split out a helper function, tcg_out_setcond_int, which
does not always produce the complete boolean result, but
returns a set of flags to do so.

Accept all int32_t as constant input, so that LE/GT can
adjust the constant to LT.

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/loongarch64/tcg-target.c.inc