Post-increment constraint in inline assembly (SuperH)
Oleg Endo
oleg.endo@t-online.de
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
option.
Cheers,
Oleg
More information about the Gcc-help
mailing list