This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rtl-optimization]: Fix PR37997: ICE shifting byte to the right with constant > 7FFFFFFF
> The patch fixes the problem, exposed by unfortunate testcase. The
> problem was that huge CONST_INT didn't satisfy QImode constraints, no
> matter if oldmode was new mode.
You should arrange for not passing QImode as old_mode to convert_modes if
the input is not valid for QImode. By breaking the invariant that the
conversion from mode M to itself is a no-op, you penalize the common case.
--
Eric Botcazou