[LLVMdev] ASM appears to be incorrect from llc

Eli Friedman eli.friedman at gmail.com
Wed Feb 15 17:02:14 PST 2012


On Wed, Feb 15, 2012 at 4:42 PM, Matthew Huck <matthew.huck at gmail.com> wrote:
> Hi,
>   It doesn't compile with yasm, or nasm (reports invalid combination of
> opcode and operands), and
>
> mov _x,EAX
>
> is meaningless as _x is just a label (an numeric constant that happens to be
> an address), so it would have to be dereferenced to get to the memory at
> that address, otherwise it's like saying
>
> mov 0x12341234, EAX
>
> Now, my asm skills are not that great, so I'm prepared to be told I'm
> talking bollocks, but that's how I have interpreted everything I've read
> today.

Hmm... okay, that makes sense.  gas actually does accept the given
syntax, which is probably why nobody noticed...

-Eli




More information about the llvm-dev mailing list