summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser
Commit message (Collapse)AuthorAgeFilesLines
...
* MC: Unknown assembler directives are now hard errors.Jim Grosbach2012-05-012-3/+3
| | | | | | | | | | | | | | | | Previously, an unsupported/unknown assembler directive issued a warning. That's generally unsafe, and inconsistent with the behaviour of pretty much every system assembler. Now that the MC assemblers are mature enough to be the default on multiple targets, it's reasonable to issue errors for these. For target or platform directives that need to stay warnings, we should add explicit handlers for them in, e.g., ELFAsmParser.cpp, DarwinAsmParser.cpp, et. al., and issue the warning there. rdar://9246275 llvm-svn: 155926
* MC assembly parser handling for trailing comma in macro instantiation.Jim Grosbach2012-04-161-0/+24
| | | | | | | | | A trailing comma means no argument at all (i.e., as if the comma were not present), not an empty argument to the invokee. rdar://11252521 llvm-svn: 154863
* Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnuEli Bendersky2012-03-251-8/+1
| | | | | | | | | | | | | | * Removed test/lib/llvm.exp - it is no longer needed * Deleted the dg.exp reading code from test/lit.cfg. There are no dg.exp files left in the test suite so this code is no longer required. test/lit.cfg is now much shorter and clearer * Removed a lot of duplicate code in lit.local.cfg files that need access to the root configuration, by adding a "root" attribute to the TestingConfig object. This attribute is dynamically computed to provide the same information as was previously provided by the custom getRoot functions. * Documented the config.root attribute in docs/CommandGuide/lit.pod llvm-svn: 153408
* Assembler should accept redefinitions of unused variable symbols.Jim Grosbach2012-03-201-0/+1
| | | | | | rdar://11027851 llvm-svn: 153137
* MC asm parser macro argument count was wrong when empty.Jim Grosbach2012-03-171-0/+10
| | | | | | | | evaluated to '1' when the argument list was empty (should be '0'). rdar://11057257 llvm-svn: 152967
* Replace all instances of dg.exp file with lit.local.cfg, since all tests are ↵Eli Bendersky2012-02-162-5/+13
| | | | | | | | run with LIT now and now Dejagnu. dg.exp is no longer needed. Patch reviewed by Daniel Dunbar. It will be followed by additional cleanup patches. llvm-svn: 150664
* Small improvement to the recursion detection logic from the previous commit.Rafael Espindola2012-01-281-0/+4
| | | | llvm-svn: 149175
* Handle recursive variable definitions directly. This gives us better errorRafael Espindola2012-01-282-1/+13
| | | | | | messages and allows us to fix PR11865. llvm-svn: 149174
* The error check for using -g with a .s file already containing dwarf .fileKevin Enderby2012-01-111-0/+9
| | | | | | | directives was in the wrong place and getting triggered incorectly with a cpp .file directive. This change fixes that and adds a test case. llvm-svn: 147951
* Split Finish into Finish and FinishImpl to have a common place to do end ofRafael Espindola2012-01-071-0/+5
| | | | | | | | file error checking. Use that to error on an unfinished cfi_startproc. The error is not nice, but is already better than a segmentation fault. llvm-svn: 147717
* Improve the implementation of .incbin directive by replacing a loop by usingKevin Enderby2011-12-141-4/+1
| | | | | | getStreamer().EmitBytes. Suggestion by Benjamin Kramer! llvm-svn: 146599
* Add the .incbin directive which takes the binary data from a file and emitsKevin Enderby2011-12-142-0/+10
| | | | | | it to the streamer. rdar://10383898 llvm-svn: 146592
* Move test to the X86 directory, note the PR number and only run MC once.Rafael Espindola2011-10-311-6/+0
| | | | llvm-svn: 143352
* test/MC/AsmParser/2011-09-06-NoNewline.s: Add explicit -mtriple=i386. It ↵NAKAMURA Takumi2011-10-281-3/+3
| | | | | | | | uses X86 instruction. FIXME: Would it be reproduced without target-specific operands? FIXME: Why run llvm-mc as the same input by 3 times? llvm-svn: 143195
* Fix parsing of a line with only a # in it.Rafael Espindola2011-10-191-0/+15
| | | | llvm-svn: 142537
* Add support for a new extension to the .file directive:Nick Lewycky2011-10-171-1/+2
| | | | | | | | | | .file filenumber "directory" "filename" This removes one join+split of the directory+filename in MC internals. Because bitcode files have independent fields for directory and filenames in debug info, this patch may change the .o files written by existing .bc files. llvm-svn: 142300
* Added regression test for bug #10869.Stepan Dyatkovskiy2011-09-191-0/+6
| | | | llvm-svn: 140012
* Fix AsmParser binary precedence for shift operators.Jim Grosbach2011-08-201-0/+1
| | | | | | rdar://9976729 llvm-svn: 138208
* Tidy up. Whitespace.Jim Grosbach2011-08-201-7/+7
| | | | llvm-svn: 138207
* Move some ELF directives into ELF asm parser.Jim Grosbach2011-07-251-3/+0
| | | | | | | | | | | | | | 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 llvm-svn: 135921
* Asm parser range checking on .<size> <value> directives.Jim Grosbach2011-06-291-0/+6
| | | | | | | | | For example, ".byte 256" would previously assert() when emitting an object file. Now it generates a diagnostic that the literal value is out of range. rdar://9686950 llvm-svn: 134069
* MC: Allow .common as alias for .comm assembler directive. PR10116.Hans Wennborg2011-06-181-0/+2
| | | | llvm-svn: 133349
* Test that ".byte 1, 2, 3, 4" does the right thing.Roman Divacky2011-06-071-0/+7
| | | | | | Requested by nbjoerg! llvm-svn: 132716
* Basic support for macros with explicit arguments.Rafael Espindola2011-06-051-0/+10
| | | | | | | | | | | We still don't handle * default values * :req * :vararg * \() llvm-svn: 132656
* Add a test for the chained directives that I forgot last time.Charles Davis2011-05-261-0/+3
| | | | llvm-svn: 132110
* Test .seh_startchained and .seh_endchained parsing.Charles Davis2011-05-261-0/+3
| | | | | | | | | | | Rework how the MCWin64EHUnwindInfo instances are stored. Fix issues with chained unwind areas exposed by the test that were related to this. The ChainedParent field had the wrong address, because when the chained unwind info was added, the addresses shifted around. Now we store the pointers to the structures, which are now allocated from the MC heap. llvm-svn: 132106
* Add tests for .seh_setframe and .seh_handlerdata parsing. Fix issues withCharles Davis2011-05-251-0/+14
| | | | | | | | | | them. I had to add a special SwitchSectionNoChange method to MCStreamer just for .seh_handlerdata. If this isn't OK, please let me know, and I'll find some other way to fix .seh_handlerdata streaming. llvm-svn: 132084
* Add tests for .seh_savereg and .seh_savexmm parsing. Once again, fix theCharles Davis2011-05-251-0/+6
| | | | | | buggy methods that parse these directives. llvm-svn: 132045
* Add a test for .seh_pushframe parsing. Fix the bug exposed by it (and anotherCharles Davis2011-05-251-0/+2
| | | | | | one I found by inspection). llvm-svn: 132037
* Add a test for the .seh_handler directive. Fix problems with the parsingCharles Davis2011-05-251-4/+6
| | | | | | | method exposed by the test. While we're at it, simplify the .seh_proc parsing method. llvm-svn: 132028
* Test basic SEH directive-parsing functionality. Fix a latent bug exposed byCharles Davis2011-05-241-0/+18
| | | | | | this test. llvm-svn: 132004
* Match case for invalid constant error messages and add a newEric Christopher2011-04-121-1/+4
| | | | | | test for invalid hexadecimals. llvm-svn: 129326
* Test for invalid constant expr addition - bad octal constant.Eric Christopher2011-04-121-13/+5
| | | | llvm-svn: 129323
* Don't store Twine temporaries, it's not safe.Benjamin Kramer2011-04-091-1/+5
| | | | | | And don't append the name over and over again in the loop. llvm-svn: 129210
* Update testsRafael Espindola2011-04-071-5/+5
| | | | llvm-svn: 129116
* Add support for .skip.Rafael Espindola2011-04-071-0/+5
| | | | | | | Patch by Roman Divacky. Fixes PR9361. llvm-svn: 129106
* Adding a test for "-inf" as well.Kevin Enderby2011-03-291-0/+3
| | | | llvm-svn: 128495
* Added support symbolic floating point constants in the MC assembler for InfinityKevin Enderby2011-03-291-0/+6
| | | | | | and Nans with the same strings as GAS supports. rdar://8673024 llvm-svn: 128488
* MC: Improve some diagnostics on uses of '.' pseudo-symbol.Daniel Dunbar2011-03-251-0/+12
| | | | llvm-svn: 128289
* Move arch specific tests in arch specific directories.Devang Patel2011-02-241-8/+0
| | | | llvm-svn: 126401
* Remove file. Previous commit deleted content, but left the file around.Jim Grosbach2011-02-231-0/+0
| | | | llvm-svn: 126337
* Revert r125595, which is an X86-only undocumented assembly syntax extensionJim Grosbach2011-02-232-10/+0
| | | | | | | | | | enabled for all targets. Non-X86 targets should not have this behavior enabled by default. Joerg, if you would like to resubmit with the behavior conditionalized to be X86-ELF only, that's fine. llvm-svn: 126336
* Add support for pushsection and popsection. Patch by Joerg Sonnenberger.Rafael Espindola2011-02-161-0/+107
| | | | llvm-svn: 125629
* Add support for parsing [expr].Roman Divacky2011-02-152-0/+10
| | | | | | This is submitted by Joerg Sonnenberger and fixes his PR8685. llvm-svn: 125595
* Support for .ifdef / .ifndef in the assembler parser. Patch by Joerg ↵Benjamin Kramer2011-02-082-0/+58
| | | | | | Sonnenberger. llvm-svn: 125120
* Add support for parsing .floatRoman Divacky2011-01-281-0/+3
| | | | llvm-svn: 124485
* PR8951: Support for .equiv in integrated assembler, patch by Jörg Sonnenberger!Nico Weber2011-01-281-0/+9
| | | | llvm-svn: 124467
* In llvm-mc parse a Hash token as a full line comment. Allows handling ofKevin Enderby2010-12-241-0/+8
| | | | | | | preprocessed .s files and matches darwin gas. rdar://8798690 Also fix a comment on the next line of AsmParser.cpp after this new code. llvm-svn: 122531
* Add support for lexing single quotes like 'c'.Roman Divacky2010-12-181-0/+16
| | | | | | This fixed 8615. llvm-svn: 122150
* Rename temporary symbols if they conflict with artificial symbols createdRafael Espindola2010-12-011-0/+10
| | | | | | | | | by the assembler. This was blocking parsing any large .s produced by clang for example. Fixes PR8596. llvm-svn: 120603
OpenPOWER on IntegriCloud