On 3/16/23 10:37 PM, Surya Kumari Jangala wrote:
> The issue of suboptimal code exists even for integer return value and not 
> just bool return value. See 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103784#c9 
> So the patch would need to take care of integer return values too.

Correct.  Basically any time we return an integral type (signed or unsigned)
type is smaller than the hard register we are returning it in, we can get these
unwanted sign/zero extensions.

I'm sure we have quite a few bugzillas mentioning the unneeded sign/zero 
extends.

Peter


Reply via email to