llvm-6502/test/MC
David Peixotto 0fc8c68b11 Add support for parsing ARM symbol variants on ELF targets
ARM symbol variants are written with parens instead of @ like this:

  .word __GLOBAL_I_a(target1)

This commit adds support for parsing these symbol variants in
expressions. We introduce a new flag to MCAsmInfo that indicates the
parser should use parens to parse the symbol variant. The expression
parser is modified to look for symbol variants using parens instead
of @ when the corresponding MCAsmInfo flag is true.

The MCAsmInfo parens flag is enabled only for ARM on ELF.

By adding this flag to MCAsmInfo, we are able to get rid of
redundant ARM-specific symbol variants and use the generic variants
instead (e.g. VK_GOT instead of VK_ARM_GOT). We use the new
UseParensForSymbolVariant attribute in MCAsmInfo to correctly print
the symbol variants for arm.

To achive this we need to keep a handle to the MCAsmInfo in the
MCSymbolRefExpr class that we can check when printing the symbol
variant.

Updated Tests:
  Changed case of symbol variant to match the generic kind.
  test/CodeGen/ARM/tls-models.ll
  test/CodeGen/ARM/tls1.ll
  test/CodeGen/ARM/tls2.ll
  test/CodeGen/Thumb2/tls1.ll
  test/CodeGen/Thumb2/tls2.ll

PR18080


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196424 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-04 22:43:20 +00:00
..
AArch64 [AArch64] Add support for NEON scalar floating-point absolute difference. 2013-11-27 01:45:58 +00:00
ARM Add support for parsing ARM symbol variants on ELF targets 2013-12-04 22:43:20 +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 This commit adds some (but not all) of the x86-64 relocations that are not 2013-10-30 18:47:25 +00:00
MachO Add test I forgot to git add in r191824. 2013-10-02 14:49:41 +00:00
Markup
Mips Test case for issue with microMIPS long branch. 2013-11-30 19:13:15 +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