Re: Inline assembly queries [2]

2009-07-07 Thread Gabriel Paubert
On Tue, Jul 07, 2009 at 02:40:02PM +0200, Andreas Schwab wrote: > Gabriel Paubert writes: > > > On Fri, Jul 03, 2009 at 10:57:12PM +0200, Andreas Schwab wrote: > >> The 'Z' constraint is required for a memory operand for insns that don't > >> have an update form (which would be selected by the %U

Re: Inline assembly queries [2]

2009-07-07 Thread Andreas Schwab
Gabriel Paubert writes: > On Fri, Jul 03, 2009 at 10:57:12PM +0200, Andreas Schwab wrote: >> The 'Z' constraint is required for a memory operand for insns that don't >> have an update form (which would be selected by the %U modifier). > > Hmmm, I believed that it was for instructions that only

Re: Inline assembly queries [2]

2009-07-05 Thread Gabriel Paubert
On Fri, Jul 03, 2009 at 10:57:12PM +0200, Andreas Schwab wrote: > Brad Boyer writes: > > > On Fri, Jul 03, 2009 at 12:14:41PM +0530, kernel mailz wrote: > >> b. using m or Z with a memory address. I tried replacing m/Z but no change > >> Is there some guideline ? > >> gcc documentation says Z is

Re: Inline assembly queries [2]

2009-07-03 Thread Andreas Schwab
kernel mailz writes: > My query was more on %U1%X1, I guess it is specifying U and/or X for %1 right > ? > what does U/X stand for (is it similar to u - unsigned and x for a hex > address) > are there any more literals like U/X/... The 'U' and 'X' modifiers expand to 'u' and 'x' resp, dependin

Re: Inline assembly queries [2]

2009-07-03 Thread Andreas Schwab
Brad Boyer writes: > On Fri, Jul 03, 2009 at 12:14:41PM +0530, kernel mailz wrote: >> b. using m or Z with a memory address. I tried replacing m/Z but no change >> Is there some guideline ? >> gcc documentation says Z is obsolete. Is m/Z replaceable ? > > No idea. I don't remember ever seeing 'Z

Re: Inline assembly queries [2]

2009-07-03 Thread kernel mailz
Hi Brad, Thanks for responding. My query was more on %U1%X1, I guess it is specifying U and/or X for %1 right ? what does U/X stand for (is it similar to u - unsigned and x for a hex address) are there any more literals like U/X/... -Manish On Fri, Jul 3, 2009 at 11:10 PM, Brad Boyer wrote: > On

Re: Inline assembly queries [2]

2009-07-03 Thread Brad Boyer
On Fri, Jul 03, 2009 at 12:14:41PM +0530, kernel mailz wrote: > Thanks for responding to my previous mail. A few more queries > > a. What is the use of adding format specifiers in inline assembly > like > asm volatile("ld%U1%X1 %0,%1":"=r"(ret) : "m"(*ptr) : "memory"); The format specifiers limit

Inline assembly queries [2]

2009-07-02 Thread kernel mailz
Hi, Thanks for responding to my previous mail. A few more queries a. What is the use of adding format specifiers in inline assembly like asm volatile("ld%U1%X1 %0,%1":"=r"(ret) : "m"(*ptr) : "memory"); b. using m or Z with a memory address. I tried replacing m/Z but no change Is there some guid