This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/13167] Incorrect register `%ecx' used with `q' suffix
- 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: 18 Jan 2004 18:42:07 -0000
- Subject: [Bug inline-asm/13167] Incorrect register `%ecx' used with `q' suffix
- References: <20031123152942.13167.bero@arklinux.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-18 18:42 -------
Yes the inline-asm is invalid since dr will give you an 32bit register, and you want a 64bit register,
then use this instead:
void __clear_bit(int nr, volatile void *addr)
{
long t = nr;
__asm__ __volatile__(
"btrq %1,%0"
:"=m" ((*(volatile long *) addr))
:"dIr" (t));
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13167