From: Richard Henderson <[email protected]> > For constant shifts, we can simply shift the s_mask. > > For variable shifts, we know that sar does not reduce the s_mask, which helps > for sequences like > > ext32s_i64 t, in > sar_i64 t, t, v > ext32s_i64 out, t > > allowing the final extend to be eliminated. > > Reviewed-by: Alex Bennée <[email protected]> > Signed-off-by: Richard Henderson <[email protected]> > --- > tcg/optimize.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++-- > - > 1 file changed, 47 insertions(+), 3 deletions(-)
Reviewed-by: Luis Pires <[email protected]> -- Luis Pires Instituto de Pesquisas ELDORADO Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>
