[llvm-dev] Bug in X86 assembler?

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 18 07:08:44 PST 2016

On 18 February 2016 at 04:27, Tamazov, Artem via llvm-dev
<llvm-dev at lists.llvm.org> wrote:

> Even in your example, assembler replaces mov by movq, which, say, hints:

This is the difference between AT&T and Intel syntax (give llvm-mc the
-output-asm-variant=1 option to see what something closer to what's
been input).

The x86 reference manual really does seem to list the 64-bit immediate
move with mnemonic MOV. I'm not sure why GAS chose movabs, but this
probably is a bug in our Intel syntax support.



More information about the llvm-dev mailing list