* Inline assembly @ 2005-06-06 12:53 Rayappan.External 2005-06-06 15:33 ` Nathan Sidwell 0 siblings, 1 reply; 8+ messages in thread From: Rayappan.External @ 2005-06-06 12:53 UTC (permalink / raw) To: gcc-help Hi, This kind of inline assembly is given in the GCC Test suits asm ("" : "=r" (tmp) : "0" (tmp)); As per my understanding the input and output remains in the same register.But there is no instruction in the first double coats(""). The Question is What will be the value of r(tmp) after this instruction.Whether it is equivalent to ld r2,#0x0 Thanks in advance, Chris ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Inline assembly 2005-06-06 12:53 Inline assembly Rayappan.External @ 2005-06-06 15:33 ` Nathan Sidwell 0 siblings, 0 replies; 8+ messages in thread From: Nathan Sidwell @ 2005-06-06 15:33 UTC (permalink / raw) To: Rayappan.External; +Cc: gcc-help Rayappan.External@infineon.com wrote: > Hi, > > This kind of inline assembly is given in the GCC Test suits > > asm ("" : "=r" (tmp) : "0" (tmp)); > > As per my understanding the input and output remains in the same > register.But there is no instruction in the first double coats(""). > > The Question is > > What will be the value of r(tmp) after this instruction.Whether it is > equivalent to tmp will be unchanged from whatever was in it before. TGhe "0" is a constraint saying tmp should start out in the same register as the result of that asm. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk ^ permalink raw reply [flat|nested] 8+ messages in thread
* Inline assembly @ 2000-01-05 1:07 Harald Dankworth 2000-01-05 10:13 ` d_cary 2000-04-01 0:00 ` Harald Dankworth 0 siblings, 2 replies; 8+ messages in thread From: Harald Dankworth @ 2000-01-05 1:07 UTC (permalink / raw) To: help-gcc Is there any documentation on inline assembly syntax for gcc? regards, Harald Dankworth ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Inline assembly 2000-01-05 1:07 Harald Dankworth @ 2000-01-05 10:13 ` d_cary 2000-01-07 6:31 ` Harald Dankworth 2000-04-01 0:00 ` d_cary 2000-04-01 0:00 ` Harald Dankworth 1 sibling, 2 replies; 8+ messages in thread From: d_cary @ 2000-01-05 10:13 UTC (permalink / raw) To: help-gcc Harald Dankworth <harald.dankworth@fast.no> wrote: > Is there any documentation on inline assembly syntax for gcc? There's a few morsels of inline assembly documentation in the gcc manual, in the section Assembler Instructions with C Expression Operands http://www.delorie.com/gnu/docs/gcc/gcc_86.html . Please tell me if you find anything better. Sent via Deja.com http://www.deja.com/ Before you buy. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Inline assembly 2000-01-05 10:13 ` d_cary @ 2000-01-07 6:31 ` Harald Dankworth 2000-04-01 0:00 ` Harald Dankworth 2000-04-01 0:00 ` d_cary 1 sibling, 1 reply; 8+ messages in thread From: Harald Dankworth @ 2000-01-07 6:31 UTC (permalink / raw) To: help-gcc You can find libraries for MMX and streaming simd extensions at http://shay.ecn.purdue.edu/~swar/ d_cary@my-deja.com wrote: > Harald Dankworth <harald.dankworth@fast.no> wrote: > > Is there any documentation on inline assembly syntax for gcc? > > There's a few morsels of inline assembly documentation in the gcc > manual, in the section > Assembler Instructions with C Expression Operands > http://www.delorie.com/gnu/docs/gcc/gcc_86.html > . > Please tell me if you find anything better. > > Sent via Deja.com http://www.deja.com/ > Before you buy. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Inline assembly 2000-01-07 6:31 ` Harald Dankworth @ 2000-04-01 0:00 ` Harald Dankworth 0 siblings, 0 replies; 8+ messages in thread From: Harald Dankworth @ 2000-04-01 0:00 UTC (permalink / raw) To: help-gcc You can find libraries for MMX and streaming simd extensions at http://shay.ecn.purdue.edu/~swar/ d_cary@my-deja.com wrote: > Harald Dankworth <harald.dankworth@fast.no> wrote: > > Is there any documentation on inline assembly syntax for gcc? > > There's a few morsels of inline assembly documentation in the gcc > manual, in the section > Assembler Instructions with C Expression Operands > http://www.delorie.com/gnu/docs/gcc/gcc_86.html > . > Please tell me if you find anything better. > > Sent via Deja.com http://www.deja.com/ > Before you buy. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Inline assembly 2000-01-05 10:13 ` d_cary 2000-01-07 6:31 ` Harald Dankworth @ 2000-04-01 0:00 ` d_cary 1 sibling, 0 replies; 8+ messages in thread From: d_cary @ 2000-04-01 0:00 UTC (permalink / raw) To: help-gcc Harald Dankworth <harald.dankworth@fast.no> wrote: > Is there any documentation on inline assembly syntax for gcc? There's a few morsels of inline assembly documentation in the gcc manual, in the section Assembler Instructions with C Expression Operands http://www.delorie.com/gnu/docs/gcc/gcc_86.html . Please tell me if you find anything better. Sent via Deja.com http://www.deja.com/ Before you buy. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Inline assembly 2000-01-05 1:07 Harald Dankworth 2000-01-05 10:13 ` d_cary @ 2000-04-01 0:00 ` Harald Dankworth 1 sibling, 0 replies; 8+ messages in thread From: Harald Dankworth @ 2000-04-01 0:00 UTC (permalink / raw) To: help-gcc Is there any documentation on inline assembly syntax for gcc? regards, Harald Dankworth ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-06 15:33 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-06-06 12:53 Inline assembly Rayappan.External 2005-06-06 15:33 ` Nathan Sidwell -- strict thread matches above, loose matches on Subject: below -- 2000-01-05 1:07 Harald Dankworth 2000-01-05 10:13 ` d_cary 2000-01-07 6:31 ` Harald Dankworth 2000-04-01 0:00 ` Harald Dankworth 2000-04-01 0:00 ` d_cary 2000-04-01 0:00 ` Harald Dankworth
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).