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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2025-08-13

--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
This would likely need to be embedded into emit_store_flag and friends.  It
would also assume that the target does something sensible for expansion.

What gets passed to emit_store_flag is (leu (reg) (const_int 0xfffff)), which
at least on RISC-V would be better expressed as (ltu (reg) (const_int 0x100000)
which we'd want to realize is expressable by shifting reg and the constant
right to drop the trailing zeros  ultimately resulting in a  srli+seq.

Reply via email to