On Mon, 14 Jun 2021 at 09:45, Richard Henderson <richard.hender...@linaro.org> wrote: > > 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. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > tcg/optimize.c | 56 +++++++++++++++++++++++++++++++++++++++++++++----- > 1 file changed, 51 insertions(+), 5 deletions(-)
Not really familiar with the TCG optimizer internals, so review from somebody who is would be useful, but this looks plausible: Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM