This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: LTO Error: operand type mismatch for `div'
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Hannes Domani <ssbssa at yahoo dot de>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Sat, 19 Mar 2016 03:12:38 -0500
- Subject: Re: LTO Error: operand type mismatch for `div'
- Authentication-results: sourceware.org; auth=none
- References: <2092106639 dot 1990620 dot 1458346238035 dot JavaMail dot yahoo dot ref at mail dot yahoo dot com> <2092106639 dot 1990620 dot 1458346238035 dot JavaMail dot yahoo at mail dot yahoo dot com>
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