https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95737
--- Comment #1 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Please test this out of context of a return statement. The problem with unnecessary extends of return values is widely known and not specific to this particular case.