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

--- Comment #14 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #13)
> (In reply to Oleg Endo from comment #12)
> > (In reply to H.J. Lu from comment #9)
> > > Do iq2000 mcore sh4eb psABIs require signed/unsigned extensions for 
> > > 8/16-bit
> > > integers?
> > 
> > On SH we have two ABIs.  GNU ABI (default) requires the sign extension to
> > 32-bit.  The Hitachi/Renesas abi (-mrenesas) doesn't require it and allows
> > for undefined upper bits.
> 
> So sign extension to 32-bit works for both ABIs.

Yes, but if the extension can be omitted it's better code.

Reply via email to