llvm-6502/test/MC
Chad Rosier e112453fc3 [ms-inline asm] Add support for numeric displacement expressions in bracketed
memory operands.

Essentially, this layers an infix calculator on top of the parsing state
machine.  The scale on the index register is still expected to be an immediate

 __asm mov eax, [eax + ebx*4]

and will not work with more complex expressions.  For example,

 __asm mov eax, [eax + ebx*(2*2)]

The plus and minus binary operators assume the numeric value of a register is
zero so as to not change the displacement.  Register operands should never
be an operand for a multiply or divide operation; the scale*indexreg
expression is always replaced with a zero on the operand stack to prevent
such a case.
rdar://13521380


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178881 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-05 16:28:55 +00:00
..
AArch64 AArch64: implement ETMv4 trace system registers. 2013-04-03 12:31:29 +00:00
ARM Fix pr13145 - Naming a function like a register name confuses the asm parser. 2013-03-19 23:44:03 +00:00
AsmParser
COFF
Disassembler [XCore] Add bru instruction. 2013-04-04 20:05:35 +00:00
ELF Implements low-level object file format specific output for COFF and 2013-04-03 18:31:38 +00:00
MachO
Markup
MBlaze
Mips Implement the "mips endian" for r_info. 2013-04-03 21:02:51 +00:00
PowerPC
X86 [ms-inline asm] Add support for numeric displacement expressions in bracketed 2013-04-05 16:28:55 +00:00