Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22067

gcc inline - operand type mismatch for 'cmp'

$
0
0

I get the following error:

Assembler messages:
Error: operand type mismatch for `cmp'

The only cmp in my code is:

"cmpl %eax, $15\n\t"

I don't get what is wrong with that - I have a register and an immediate value which should be implicitly sign extended to 32bit.


Viewing all articles
Browse latest Browse all 22067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>