summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't spew bitcode to standard out if this testDuncan Sands2009-01-051-1/+1
| | | | | | fails, like it is right now. llvm-svn: 61690
* Reimplement the old and horrible bison parser for .ll files with a niceChris Lattner2009-01-0214-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and clean recursive descent parser. This change has a couple of ramifications: 1. The parser code is about 400 lines shorter (in what we maintain, not including what is autogenerated). 2. The code should be significantly faster than the old code because we don't have to work around bison's poor handling of datatypes with ctors/dtors. This also makes the code much more resistant to memory leaks. 3. We now get caret diagnostics from the .ll parser, woo. 4. The actual diagnostics emited from the parser are completely different so a bunch of testcases had to be updated. 5. I now disallow "%ty = type opaque %ty = type i32". There was no good reason to support this, it was just an accident of the old implementation. I have no reason to think that anyone is actually using this. 6. The syntax for sticking a global variable has changed to make it unambiguous. I don't think anyone is depending on this since only clang supports this and it is not solid yet, so I'm not worried about anything breaking. 7. This gets rid of the last use of bison, and along with it the .cvs files. I'll prune this from the makefiles as a subsequent commit. There are a few minor cleanups that can be done after this commit (suggestions welcome!) but this passes dejagnu testing and is ready for its time in the limelight. llvm-svn: 61558
* Fix the .ll grammar rules to allow any type before an 'i32', not just anChris Lattner2008-10-151-0/+6
| | | | | | | integer type. Invalid things like 'float 42' are now rejected by the semantic analysis in the productions not the parser. This fixes PR2733. llvm-svn: 57560
* Prevent assert when using '"' in names (via hexadecimal).Daniel Dunbar2008-10-141-0/+3
| | | | | | Update LangRef to mention \xx quoting in names. llvm-svn: 57538
* Attributes noinline alwaysinline are incompatibleDevang Patel2008-10-011-2/+1
| | | | llvm-svn: 56939
* Don't leave an output file in the test directory.Dan Gohman2008-10-011-1/+1
| | | | llvm-svn: 56910
* Support inreg, zext and sext as return value attributes.Devang Patel2008-09-293-2/+15
| | | | llvm-svn: 56801
* Update tests.Devang Patel2008-09-272-4/+4
| | | | llvm-svn: 56730
* Re-enables the new vector select in the bitcode reader, by modifying theDan Gohman2008-09-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | bitcode reader/writer as follows: - add and use new bitcode FUNC_CODE_INST_VSELECT to handle the llvm select opcode using either i1 or [N x i1] as the selector. - retain old BITCODE FUNC_CODE_INST_SELECT in the bitcode reader to handle select on i1 for backwards compatibility with existing bitcode files. - re-enable the vector-select.ll test program. Also, rename the recently added bitcode opcode FUNC_CODE_INST_VCMP to FUNC_CODE_INST_CMP2 and make the bitcode writer use it to handle fcmp/icmp on scalars or vectors. In the bitcode writer, use FUNC_CODE_INST_CMP for vfcmp/vicmp only. In the bitcode reader, have FUNC_CODE_INST_CMP handle icmp/fcmp returning bool, for backwards compatibility with existing bitcode files. Patch by Preston Gurd! llvm-svn: 56233
* Temporarily disable vector select in the bitcode reader. TheDan Gohman2008-09-091-0/+1
| | | | | | | | way it handles the type of the condition is breaking plain scalar select in the case that the value is a forward-reference. llvm-svn: 55976
* Extend the vcmp/fcmp LLVM IR instructions to take vectors as argumentsDan Gohman2008-09-092-0/+26
| | | | | | | | | | | | | | and, if so, to return a vector of boolean as a result; Extend the select LLVM IR instruction to allow you to specify a result type which is a vector of boolean, in which case the result will be an element-wise selection instead of choosing one vector or the other; and Update LangRef.html to describe these changes. This patch was contributed by Preston Gurd! llvm-svn: 55969
* Read and write function notes.Devang Patel2008-09-021-1/+4
| | | | llvm-svn: 55657
* Function notes tests.Devang Patel2008-09-022-0/+18
| | | | llvm-svn: 55648
* Add support for parsing .ll files that have numbers in front ofChris Lattner2008-08-291-0/+16
| | | | | | | | | | nameless values, such as: %3 = add i32 4, 2 This fixes the first half of PR2480 llvm-svn: 55539
* Fix the AsmWriter to not print extra spaces after parameter attributes.Dan Gohman2008-08-051-1/+1
| | | | llvm-svn: 54351
* Add vector shifts to the IR, patch by Eli Friedman.Nate Begeman2008-07-291-0/+21
| | | | | | CodeGen & Clang work coming next. llvm-svn: 54161
* Fix a bunch of bugs handling vector compare constant expressions, fixingChris Lattner2008-07-141-0/+16
| | | | | | PR2317. llvm-svn: 53544
* Implement PR2538Chris Lattner2008-07-111-0/+9
| | | | llvm-svn: 53438
* Fix some escaping and quoting in RUN lines, mainly involving { and <. In twoMatthijs Kooijman2008-06-101-1/+1
| | | | | | | | | cases quoting of <{ didn't work out, so I changed the grep to check for }> instead. This fixes 7 testcases that were not properly running before. llvm-svn: 52182
* For all RUN lines starting with "not", redirect stderr to /dev/null so testsMatthijs Kooijman2008-06-102-2/+2
| | | | | | | | | | don't fail when (expected) error output is produced. This fixes 17 tests. While I was there, I also made all RUN lines of the form "not llvm-as..." a bit more consistent, they now all redirect stderr and stdout to /dev/null and use input redirect to read their input. llvm-svn: 52174
* Re-apply 52002, allowing the verifier to accept non-MRV struct returnDan Gohman2008-06-092-0/+41
| | | | | | | | types on functions, with adjustments so that it accepts both new-style aggregate returns and old-style MRV returns, including those with only a single member. llvm-svn: 52157
* Revert 52002.Dan Gohman2008-06-051-22/+0
| | | | llvm-svn: 52030
* Change the Verifier to support returning first class aggregrates.Matthijs Kooijman2008-06-051-0/+22
| | | | | | Add a testcase for functions returning first class aggregrates. llvm-svn: 52002
* nounwindify.Dan Gohman2008-06-031-4/+4
| | | | llvm-svn: 51893
* Constant folding for insertvalue and extractvalue.Dan Gohman2008-06-031-1/+11
| | | | llvm-svn: 51889
* IR, bitcode reader, bitcode writer, and asmparser changes toDan Gohman2008-05-311-9/+9
| | | | | | | | | | | insertvalue and extractvalue to use constant indices instead of Value* indices. And begin updating LangRef.html. There's definately more to come here, but I'm checking this basic support in now to make it available to people who are interested. llvm-svn: 51806
* Don't silently truncate array extents to 32 bits.Dan Gohman2008-05-231-0/+5
| | | | llvm-svn: 51505
* Make structs and arrays first-class types, and add assemblyDan Gohman2008-05-231-0/+13
| | | | | | | | | and bitcode support for the extractvalue and insertvalue instructions and constant expressions. Note that this does not yet include CodeGen support. llvm-svn: 51468
* Eliminate questionable syntax for stdin redirection. This probably also ↵Gabor Greif2008-05-2039-39/+39
| | | | | | speeds things up a bit. llvm-svn: 51357
* sabre brings to my attention that the 'tr' suffix is also obsoleteGabor Greif2008-05-201-1/+1
| | | | llvm-svn: 51349
* Rename the last test with .llx extension to .ll, resolve duplicate test by ↵Gabor Greif2008-05-201-1/+1
| | | | | | renaming to isnan2. Now that no test has llx ending there is no need to search for them from dg.exp too. llvm-svn: 51328
* returning an empty multiple return list is not valid.Chris Lattner2008-04-231-2/+2
| | | | llvm-svn: 50135
* rename *.llx -> *.llChris Lattner2008-04-1936-0/+0
| | | | llvm-svn: 49969
* Implement PR2206.Chris Lattner2008-04-191-0/+4
| | | | llvm-svn: 49967
* Teach llvm-as to accept function types with multiple return types.Dan Gohman2008-04-191-0/+13
| | | | llvm-svn: 49945
* Update bitcode reader and writer to handle multiple return values. Devang Patel2008-02-261-1/+1
| | | | | | Take 2. llvm-svn: 47583
* Backing out r47521 for now. This has broken a number of tests.Evan Cheng2008-02-231-1/+1
| | | | llvm-svn: 47533
* Properly read and write bitcodes for multiple return values.Devang Patel2008-02-231-1/+1
| | | | llvm-svn: 47521
* Let invoke return aggregate value.Devang Patel2008-02-211-0/+10
| | | | llvm-svn: 47425
* Let function call return aggregate.Devang Patel2008-02-212-1/+12
| | | | | | Now, we have very first multiple return value testcase! llvm-svn: 47424
* XFAIL for now.Devang Patel2008-02-201-1/+2
| | | | llvm-svn: 47411
* Now functions can return aggregate values.Devang Patel2008-02-201-2/+1
| | | | llvm-svn: 47409
* Fix PR2060 by rejecting invalid types for integer constants.Chris Lattner2008-02-191-0/+6
| | | | llvm-svn: 47311
* this test isn't useful since we added @ notation for globals.Chris Lattner2008-02-171-21/+0
| | | | llvm-svn: 47229
* this line was commented out.Chris Lattner2008-02-171-1/+1
| | | | llvm-svn: 47228
* Remove llvm-upgrade and update tests.Tanya Lattner2008-02-162-31/+8
| | | | llvm-svn: 47227
* Removing llvm upgrade, so remove tests specific to llvm-upgrade and update ↵Tanya Lattner2008-02-1627-13270/+13054
| | | | | | the tests that used it. llvm-svn: 47225
* upgrade this test, which wasn't testing the right thing since llvm-upgrade ↵Chris Lattner2008-02-151-7/+7
| | | | | | came around. llvm-svn: 47194
* rename llx -> llChris Lattner2008-02-151-0/+0
| | | | llvm-svn: 47192
* Remove llvm-upgradeTanya Lattner2008-02-1447-346/+267
| | | | llvm-svn: 47119
OpenPOWER on IntegriCloud