llvm-6502/test/MC
Kevin Enderby 86f49d5c01 Changed the X86 assembler for intel syntax to work with directional labels.
The X86 assembler has a separate code to parser the intel assembly syntax
in X86AsmParser::ParseIntelOperand().  This did not parse directional labels.
And if something like 1f was used as a branch target it would get an
"Unexpected token" error.

The fix starts in X86AsmParser::ParseIntelExpression() in the case for
AsmToken::Integer, it needs to grab the IntVal from the current token
then look for a 'b' or 'f' following the Integer.  Then it basically needs to
do what is done in AsmParser::parsePrimaryExpr() for directional
labels.  It saves the MCExpr it creates in the IntelExprStateMachine
in the Sym field.

When it returns to X86AsmParser::ParseIntelOperand() it looks
for a non-zero Sym field in the IntelExprStateMachine and if
set it creates a memory operand not an immediate operand
it would normally do for the Integer.

rdar://14961158


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197728 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-19 22:02:03 +00:00
..
AArch64
ARM Implement the .ltorg directive for ARM assembly 2013-12-19 18:26:07 +00:00
AsmParser AsmParser: add support for .end directive 2013-12-18 02:53:03 +00:00
COFF MC COFF: Emit the 'b' section flag for .bss sections in GNU assembly 2013-12-17 22:12:40 +00:00
Disassembler Add a disassembler to the PowerPC backend 2013-12-19 16:13:01 +00:00
ELF Correct word hyphenations 2013-12-05 05:44:44 +00:00
MachO Fixed a bug in getARMFixupKindMachOInfo() where three ARM fixup kinds 2013-12-13 22:46:54 +00:00
Markup
Mips Support for microMIPS control instructions. 2013-12-19 16:25:00 +00:00
PowerPC
SystemZ
X86 Changed the X86 assembler for intel syntax to work with directional labels. 2013-12-19 22:02:03 +00:00