This is the mail archive of the gcc-help@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]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]