[Bug rtl-optimization/120983] recog violates earlyclobber with user-defined hard register before reload (causing ICE on gcc.target/loongarch/bitwise-shift-reassoc-clobber.c)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 7 03:27:59 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120983

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> So the problem is before reload only the predicates are used and not the
> constraints. The early clobbered is never looked at.
> 
> I wonder why IRA could not generate a reload here though since it could push
> (reg:SI 23 $r23 [ x ]) into its own register for the last operand ...

Sorry LRA and not IRA.


More information about the Gcc-bugs mailing list