This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]