On 3/17/23 4:20 PM, Peter Bergner via Gcc-patches wrote: > 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 sorry, I didn't mean to imply every sign and zero extend is useless. I just meant to say that there are many cases when these sign and zero extends are not necessary. Peter