Re: [Linux-ia64] as & .restore sp directive

From: Ronald Veldema <veldema_at_cs.fau.de>
Date: 2003-05-12 23:32:52
I know, that is what gcc does as well.
It just looks inefficient to add extra jumps, esp. if we don't need them...
R.

CH Gowri Kumar wrote:

>>Adding two .prologue statements or two ".restore sp, 1"
>>won't work. Any ideas ?
>>    
>>
>How about doing it this way?
>if()
>{
>	....
>	goto RETURN;
>}
>else
>{
>	....
>	goto RETURN;
>}
>RETURN:
>	.restore sp 
>	mov r12 = r2
>	br.ret.sptk.many b0
>	.endp
>
>This way I feel you can put all the necessary things (restoring sp, 
>returning etc..) at one place, instead of duplicating the same code.
>
>Regards,
>Gowri Kumar
>
>  
>
Received on Mon May 12 06:33:15 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:14 EST