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 dhazeghi at yahoo dot com  2004-01-18 18:33 -------
Here's the reduced snippet (copied directly from kernel). GCC thinks the
assembly is invalid. Is it right?

void __clear_bit(int nr, volatile void *addr)
{
        __asm__ __volatile__(
                "btrq %1,%0"
                :"=m" ((*(volatile long *) addr))
                :"dIr" (nr));
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |WAITING
           Keywords|wrong-code                  |


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]