This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/32178] RAX and EAX are used as two different registers
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2007 14:14:35 -0000
- Subject: [Bug inline-asm/32178] RAX and EAX are used as two different registers
- References: <bug-32178-14635@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-06-01 14:14 -------
Your inline-asm is broken, you early clobber the output so you need to mark as
such like:
asm volatile("movl $1,%0 \n\t" \
"xchgl %0,%1 \n\t" \
"xorl $1,%0"
: "=&r"(lacquired)
: "m"(*l)
: "memory");
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32178