llvm-6502/test/MC
David Peixotto d05b93515d Integrated assembler incorrectly lexes ARM-style comments
The integrated assembler fails to properly lex arm comments when
they are adjacent to an identifier in the input stream. The reason
is that the arm comment symbol '@' is also used as symbol variant in
other assembly languages so when lexing an identifier it allows the
'@' symbol as part of the identifier.

Example:
  $ cat comment.s
  foo:
    add r0, r0@got to parse this as a comment

  $ llvm-mc -triple armv7 comment.s
  comment.s:4:18: error: unexpected token in argument list
    add r0, r0@got to parse this as a comment
                   ^
This should be parsed as correctly as `add r0, r0`.

This commit modifes the assembly lexer to not include the '@' symbol
in identifiers when lexing for targets that use '@' for comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196607 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-06 20:35:58 +00:00
..
AArch64 [AArch64] Add support for NEON scalar floating-point absolute difference. 2013-11-27 01:45:58 +00:00
ARM Integrated assembler incorrectly lexes ARM-style comments 2013-12-06 20:35:58 +00:00
AsmParser MCParser/Debug info: Accept line number 0 as a legitimate value, since 2013-09-26 23:37:11 +00:00
COFF Produce deterministic coff files. 2013-12-04 02:02:55 +00:00
Disassembler [AArch64 NEON]Fix a assertion failure when disassemble SHLL instruction. 2013-11-29 01:29:16 +00:00
ELF Correct word hyphenations 2013-12-05 05:44:44 +00:00
MachO Fix a bug in darwin's 32-bit X86 handling of evaluating fixups. 2013-12-04 23:36:24 +00:00
Markup MC: Simple example parser for MC assembly markup. 2012-10-31 23:24:13 +00:00
Mips [mips][msa] Fix issue with immediate fields of LD/ST instructions 2013-12-05 11:06:22 +00:00
PowerPC Convert another llc -filetype=obj test. 2013-10-28 22:17:19 +00:00
SystemZ [SystemZ] Add the general form of BCR 2013-11-13 16:57:53 +00:00
X86 [Stackmap] Specify the triple and cpu to fix the unit test. 2013-12-04 01:02:37 +00:00