public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Inline asm constraint
@ 2003-10-07 18:19 Markus Engel
  2003-10-07 20:10 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Engel @ 2003-10-07 18:19 UTC (permalink / raw)
  To: gcc

Hello everyone,

If I use
asm ("movl %1(%%eax), %%eax" :: "i" (4));
it converts it to movl $4(%eax), but I want 4(%eax)
Is there a constraint or a method to get rid of the $?

If not, could you integrate this is a new release of the c compiler?

Markus

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inline asm constraint
  2003-10-07 18:19 Inline asm constraint Markus Engel
@ 2003-10-07 20:10 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2003-10-07 20:10 UTC (permalink / raw)
  To: Markus Engel; +Cc: gcc

engel_markus@t-online.de (Markus Engel) writes:

> Hello everyone,
>
> If I use
> asm ("movl %1(%%eax), %%eax" :: "i" (4));
> it converts it to movl $4(%eax), but I want 4(%eax)
> Is there a constraint or a method to get rid of the $?

Use %c1 instead of %1.  *Note (gccint)Output Template::.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-07 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-07 18:19 Inline asm constraint Markus Engel
2003-10-07 20:10 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).