This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]