Re: LTO Error: operand type mismatch for `div'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux