https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118998
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 60652 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60652&action=edit Proposed fix (work in progress) Here is a proposed patch which fixes the rotate return type by converting both arguments to the same type before calling ROTATE. Although, on relfection, it is probably better to convert the return result prior to assigning it to the temporary variable. I'll tidy this up and retest.