[llvm-commits] [patch] Fix the operand order of the test instruction
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Nov 25 17:04:03 PST 2010
2010/11/25 Rafael EspĂndola <rafael.espindola at gmail.com>:
> I noticed that assembling "testq %rbx, %rax" and then disassembling
> it with objdump would print "testq %rax, %rbx". The attached patch
> fixes it, but I wonder if there is any reason why the arguments were
> placed in this order. Is this how the darwin assembler handles them?
I just checked with darwin 10 and indeed the operand order is the one
used by llvm-mc. It is probably not worth it to have a format specific
hack just to match gas in both MachO and ELF.
Cheers,
Rafael
More information about the llvm-commits
mailing list