All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ronald Veldema <veldema@cs.fau.de>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] as & .restore sp directive
Date: Mon, 12 May 2003 13:32:52 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723705727@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723705723@msgid-missing>

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
>
>  
>




      parent reply	other threads:[~2003-05-12 13:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-11 17:50 [Linux-ia64] as & .restore sp directive Ronald Veldema
2003-05-11 18:10 ` David Mosberger
2003-05-12 13:32 ` Ronald Veldema [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590723705727@msgid-missing \
    --to=veldema@cs.fau.de \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.