This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Post-increment constraint in inline assembly (SuperH)
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