On Sat, Mar 19, 2016 at 12:10:38AM +0000, Hannes Domani wrote: > {standard input}: Assembler messages: > {standard input}:4742: Error: operand type mismatch for `div' > divq $-8446744073709551616 > asm("divq %4":"=a"(ret), "=d"(waste) > : "a"(l), "d"(h), "g"(d) > : "cc"); > So how did the number $-8446744073709551616 get there? The constraint is for that operand 4 is "g", which allows immediate numbers. You want "rm". Segher