[Bug inline-asm/39590] inline asm %z on amd64 says "ll" instead of "q"

felix-gcc at fefe dot de gcc-bugzilla@gcc.gnu.org
Mon Mar 30 20:27:00 GMT 2009



------- Comment #4 from felix-gcc at fefe dot de  2009-03-30 20:27 -------
#include <stddef.h>

#define atomic_add(mem,val) asm volatile ("lock; add%z0 %1, %0": "+m" (mem):
"ir" (val))

int main() {
  size_t foo;
  atomic_add(foo,23);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39590



More information about the Gcc-bugs mailing list