[Bug target/56508] New: [SH] Add support for rtv/n instruction

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 2 12:59:00 GMT 2013


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: unassigned@gcc.gnu.org
        ReportedBy: olegendo@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



More information about the Gcc-bugs mailing list