This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]