http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56508



             Bug #: 56508

           Summary: [SH] Add support for rtv/n instruction

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: enhancement

          Priority: P3

         Component: target

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: olege...@gcc.gnu.org

            Target: sh2a*-*-*





The SH2A supports a variant of the classical 'rts' instruction which can

shorten function returns:



    ... some code, result value in r3 ...

    rts

    mov   r3,r0



on SH2A can be done in one instruction:



    rtv/n r3

Reply via email to