https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124029
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu.org
--- Comment #10 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
(In reply to Jeffrey A. Law from comment #0)
> That's just trying to compute:
> (set (reg:DI 147)
> (gt:DI (reg:DI 151 [ cost ])
> (const_int 268435455 [0xfffffff])))
>
> Of course RISC-V doesn't have an instruction for that. But there is an
> equivalent two instruction sequence.
Looks like you went in a different direction, but that statement sounds to me
like time to try TARGET_CANONICALIZE_COMPARISON.