I checked it in with the jmp instruction since it is also used in other SPARC 
assembler files.  It seems that in general the synthetic instructions are 
avoided.

----- Am 29. Mai 2015 um 18:38 schrieb Gedare Bloom [email protected]:

> On Fri, May 29, 2015 at 11:37 AM, Gedare Bloom <[email protected]> wrote:
>> On Fri, May 29, 2015 at 10:46 AM, Sebastian Huber
>> <[email protected]> wrote:
>>>
>>> ----- Gedare Bloom <[email protected]> schrieb:
>>>> Straightforward leaf-optimization, except is there a reason to use jmp
>>>> %o7 + 8 instead of ret?
>>>
>>> Hm, the GCC generates this instruction, is this the same as "ret"?
>>>
>> Yes I think so. Probably the manual will list ret as a synthetic
>> instruction, which is usually better for readability.
>>
> Also, I think sparc has retl instruction for returning from a
> leaf-optimized function, which I think will not have the delay slot.
> Should check the sparc manual though...
> 
>>> --
>>> Sebastian Huber, embedded brains GmbH
>>>
>>> Address : Dornierstr. 4, D-82178 Puchheim, Germany
>>> Phone   : +49 89 189 47 41-16
>>> Fax     : +49 89 189 47 41-09
>>> E-Mail  : sebastian.huber at embedded-brains.de
>>> PGP     : Public key available on request.
>>>
>>> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>>> _______________________________________________
>>> devel mailing list
>>> [email protected]
> >> http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to