Re: Post-increment constraint in inline assembly (SuperH)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2018-01-29 at 10:39 +0100, Georg-Johann Lay wrote:
> 
> Hence the source should read something like
> 
> __asm__ ("movua.l @%1+, %0"
>           : "=z" (longword), "+r" (src)
>           : "m" (*src));
> 

The problem (or rather disadvantage) with this approach is that the
compiler doesn't know what the value of "src" is after it has been
modified by the asm code.  Segher's suggestion looks like the better
option.

Cheers,
Oleg



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux