This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas and prefix's on x86
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Andrew Macleod <amacleod at cygnus dot com>
- Cc: ian at airs dot com, binutils at sources dot redhat dot com, bug-binutils at gnu dot org
- Date: Fri, 26 Apr 2002 12:42:37 +0930
- Subject: Re: gas and prefix's on x86
- References: <200204251846.LAA18535@rtl.cygnus.com>
On Thu, Apr 25, 2002 at 11:46:14AM -0700, Andrew Macleod wrote:
> >>
> >> Andrew Macleod <amacleod@cygnus.com> writes:
> >>
> >> > However, we can't issue that from the asm statement in
> >> > the conmpiler.
> >>
> >> Can you do
> >> lock; incw [eax]x;
>
> No, same results:
>
> t1.cpp:110: expected instruction opcode
Use "lock/incw [eax]x" on linux, *bsd, i386aix.
"lock\incw [eax]x" on others.
--
Alan Modra
IBM OzLabs - Linux Technology Centre