https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109279
Vineet Gupta <vineetg at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vineetg at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #15 from Vineet Gupta <vineetg at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
> Take:
> long long f(void)
> {
> return 0x0101010101010101ull;
> }
>
> ---- CUT ----
> This should be done as:
> li a0,16842752
> addi a0,a0,257
> slli a1,a0,32
> or a0,a0,a1
I committed a fix today which gets us to exactly that [1]
[1] https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618948.html