[Bug inline-asm/13167] Incorrect register `%ecx' used with `q' suffix

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 18 18:42:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list