llvm-6502/test/MC/AsmParser
Jim Grosbach f2a35fbd60 Move some ELF directives into ELF asm parser.
The .local, .hidden, .internal, and .protected are not legal for all supported
file formats (in particular, they're invalid for MachO). Move the parsing for
them into the ELF assembly parser since that's the format they're for.
Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing
to the COFF and ELF asm parsers. Previously, using any of these directives
on Darwin would result in an assertion failure in the parser; now we get
a diagnostic as we should.

rdar://9827089


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135921 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-25 17:55:35 +00:00
..
assignment.s llvm-mc: Support reassignment of variables in one special case, when the 2010-05-17 17:46:23 +00:00
conditional_asm.s MC/AsmParser: Attempt to constant fold expressions up-front. This ensures we avoid fixups for obvious cases like '-(16)'. 2010-02-13 01:28:07 +00:00
dash-n.s llvm-mc: Don't crash when using -n and we see a directive before the initial section. 2010-09-09 22:42:59 +00:00
dg.exp tests: Mark MC/AsmParser tests as requiring x86 for now -- almost all of them 2010-08-05 15:44:15 +00:00
directive_abort.s llvm-mc: Make sure we exit != 0 if any errors are encountered. 2010-09-09 22:42:56 +00:00
directive_align.s
directive_ascii.s Add support for the .string directive. 2010-10-28 20:02:27 +00:00
directive_comm.s MC: Allow .common as alias for .comm assembler directive. PR10116. 2011-06-18 13:51:54 +00:00
directive_darwin_section.s
directive_desc.s MC/AsmParser: Move .desc parsing to Darwin specific parser. 2010-07-12 19:22:53 +00:00
directive_elf_size.s Test for ELF .size directive. 2010-07-17 03:15:24 +00:00
directive_file.s wirte up .file and .file to the mc asmparser. 2010-01-25 19:02:58 +00:00
directive_fill.s
directive_include.s
directive_lcomm.s only darwin has zerofill 2010-01-19 06:21:23 +00:00
directive_line.s
directive_loc.s Parse and remember discriminators in .loc line. I try to output them with 2010-11-13 03:18:27 +00:00
directive_lsym.s
directive_org.s
directive_seh.s Add a test for the chained directives that I forgot last time. 2011-05-26 05:17:43 +00:00
directive_set.s Implement .equ directive as a synonym to .set. 2010-10-28 16:22:58 +00:00
directive_space.s Add support for .skip. 2011-04-07 20:26:23 +00:00
directive_subsections_via_symbols.s MC/AsmParser: Move some misc. Darwin directive handling to DarwinAsmParser. 2010-07-12 18:49:22 +00:00
directive_symbol_attrs.s
directive_tbss.s More data/parsing support for tls directives. Add a few more testcases 2010-05-17 22:53:55 +00:00
directive_tdata.s More data/parsing support for tls directives. Add a few more testcases 2010-05-17 22:53:55 +00:00
directive_thread_init_func.s More data/parsing support for tls directives. Add a few more testcases 2010-05-17 22:53:55 +00:00
directive_tlv.s More data/parsing support for tls directives. Add a few more testcases 2010-05-17 22:53:55 +00:00
directive_values.s Test that ".byte 1, 2, 3, 4" does the right thing. 2011-06-07 17:32:17 +00:00
directive_zerofill.s MC/AsmParser: Move .tbss and .zerofill parsing to Darwin specific parser. 2010-07-12 19:37:35 +00:00
dollars-in-identifiers.s MC/AsmParser: Change ParseExpression to use ParseIdentifier(), to support 2010-08-24 19:13:42 +00:00
dot-symbol.s MC: Improve some diagnostics on uses of '.' pseudo-symbol. 2011-03-25 17:47:17 +00:00
equ.s PR8951: Support for .equiv in integrated assembler, patch by Jörg Sonnenberger! 2011-01-28 03:04:41 +00:00
expr_symbol_modifiers.s MC/AsmParser: Add support for 'a + 4@GOTPCREL' and friends, by reconsing the 2010-09-17 02:47:07 +00:00
exprs-invalid.s Asm parser range checking on .<size> <value> directives. 2011-06-29 16:05:14 +00:00
exprs.s Revert r125595, which is an X86-only undocumented assembly syntax extension 2011-02-23 21:26:51 +00:00
floating-literals.s Adding a test for "-inf" as well. 2011-03-29 21:54:10 +00:00
hello.s MC/AsmParser: Move some misc. Darwin directive handling to DarwinAsmParser. 2010-07-12 18:49:22 +00:00
ifdef.s Support for .ifdef / .ifndef in the assembler parser. Patch by Joerg Sonnenberger. 2011-02-08 22:29:56 +00:00
ifndef.s Support for .ifdef / .ifndef in the assembler parser. Patch by Joerg Sonnenberger. 2011-02-08 22:29:56 +00:00
labels.s Move some ELF directives into ELF asm parser. 2011-07-25 17:55:35 +00:00
macro-args.s Basic support for macros with explicit arguments. 2011-06-05 02:43:45 +00:00
macro-def-in-instantiation.s tests: Force another triple. 2010-07-19 00:43:58 +00:00
macros-parsing.s tests: Force triples. 2010-07-18 21:16:10 +00:00
macros.s MC/AsmParser: Fix a bug in macro argument parsing, which was dropping 2010-08-10 17:38:52 +00:00
rename.s Don't store Twine temporaries, it's not safe. 2011-04-09 11:26:27 +00:00
section.s Update tests 2011-04-07 23:51:25 +00:00
variables-invalid.s
variables.s