tcg: Handle new bswap flags during optimize
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Jun 2021 20:04:00 +0000 (13:04 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jun 2021 17:04:57 +0000 (10:04 -0700)
commit0b76ff8f1b63733f3cae78e4a0aba332e994f8d8
tree334e0782b2b6713242e662fe2fcce6e880fb4369
parent0d57d36af5de88f86e4ec1e1abc716209f791f8f
tcg: Handle new bswap flags during optimize

Notice when the input is known to be zero-extended and force
the TCG_BSWAP_IZ flag on.  Honor the TCG_BSWAP_OS bit during
constant folding.  Propagate the input to the output mask.

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