On Tue, Apr 29, 2025 at 12:41 PM H.J. Lu <hjl.to...@gmail.com> wrote:
>
> On Tue, Apr 29, 2025 at 5:52 PM Uros Bizjak <ubiz...@gmail.com> wrote:
> >
> > MOVS instructions allow segment override of their source operand, e.g.:
> >
> >     rep movsq %gs:(%rsi), (%rdi)
> >
> > where %rsi is the address of the source location (with %gs segment override)
> > and %rdi is the address of the destination location.
>
> Please be aware that 0x67 prefix (used by x32) is applied before segment
> register.  That is in
>
>  rep movsq %gs:(%esi), (%edi)
>
> the address is %gs + %esi.

Uh, yes, now I remember this x32 peculiarity.

So, we want the segment prefix disabled with "-mx32 -maddress-mode=short" ?

Thanks,
Uros.

Reply via email to