Post-increment constraint in inline assembly (SuperH)

Oleg Endo
Mon Jan 29 13:20:00 GMT 2018

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


More information about the Gcc-help mailing list