aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for embedded metadata to LLVM. This introduces two new types ofNick Lewycky2009-04-041-0/+11
| | | | | | | | | Constant, MDString and MDNode which can only be used by globals with a name that starts with "llvm." or as arguments to a function with the same naming restriction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68420 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't load values out of global constants with weakDuncan Sands2009-03-201-0/+38
| | | | | | | | | | linkage: the value may be replaced with something different at link time. (Frontends that want to allow values to be loaded out of weak constants can give their constants weak_odr linkage). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67407 91177308-0d34-0410-b5e6-96231b3b80d8
* Reimplement the old and horrible bison parser for .ll files with a niceChris Lattner2009-01-022-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61558 91177308-0d34-0410-b5e6-96231b3b80d8
* add testcase for type parsing.Chris Lattner2008-12-271-0/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61449 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend the 'noalias' attribute to function return values. This is intended toNick Lewycky2008-11-241-0/+6
| | | | | | | | | | indicate functions that allocate, such as operator new, or list::insert. The actual definition is slightly less strict (for now). No changes to the bitcode reader/writer, asm printer or verifier were needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59934 91177308-0d34-0410-b5e6-96231b3b80d8
* Put CPPBackend tests into their own directory and run them only if they'reBill Wendling2008-07-101-756/+0
| | | | | | | supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53427 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52182 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove lingering references to .llx and .tr in the tests.Dan Gohman2008-05-231-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51500 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate questionable syntax for stdin redirection. This probably also ↵Gabor Greif2008-05-201-1/+1
| | | | | | speeds things up a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51357 91177308-0d34-0410-b5e6-96231b3b80d8
* sabre brings to my attention that the 'tr' suffix is also obsoleteGabor Greif2008-05-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51349 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51328 91177308-0d34-0410-b5e6-96231b3b80d8
* Update testAnton Korobeynikov2008-04-251-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50272 91177308-0d34-0410-b5e6-96231b3b80d8
* Start removing 'unwinds to' support from mainline in preparation for 2.3.Nick Lewycky2008-04-221-67/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50086 91177308-0d34-0410-b5e6-96231b3b80d8
* Upgrade these tests for the current intrinsic prototypes.Dan Gohman2008-04-141-18/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49669 91177308-0d34-0410-b5e6-96231b3b80d8
* Support chained aliases for LLVM IR printing. This fixes PR2145Anton Korobeynikov2008-03-221-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48684 91177308-0d34-0410-b5e6-96231b3b80d8
* no need to keep around this output.Chris Lattner2008-03-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48285 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn unwind_to into "unwinds to".Nick Lewycky2008-03-101-9/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48123 91177308-0d34-0410-b5e6-96231b3b80d8
* Exercise the new CFG change.Nick Lewycky2008-03-061-0/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47990 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, can't unwind to the entry block (entry block may have no preds).Nick Lewycky2008-03-021-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47808 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an unwind_to field to basic blocks, making them Users instead of Values.Nick Lewycky2008-03-021-0/+48
| | | | | | | This is the first checkin for PR1269, the new EH infrastructure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47802 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove llvm-upgrade and update tests.Tanya Lattner2008-03-0140-705/+624
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47784 91177308-0d34-0410-b5e6-96231b3b80d8
* Use not instead of ignore when an exit status is expected to alwaysDan Gohman2007-12-111-1/+1
| | | | | | | be non-zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44866 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1146: parameter attributes are longer part ofDuncan Sands2007-11-271-1/+1
| | | | | | | | | | | | | the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44359 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for vectors to int <-> float casts.Nate Begeman2007-11-171-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44204 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm/test programs should not be execution programs. This Chris Lattner2007-10-231-4/+1
| | | | | | | will hopefully fix Gabor's Sparc problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43251 91177308-0d34-0410-b5e6-96231b3b80d8
* Change all floating constants that are not exactlyDale Johannesen2007-09-052-3/+3
| | | | | | | representable to use hex format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41722 91177308-0d34-0410-b5e6-96231b3b80d8
* This is the patch to provide clean intrinsic function overloading support in ↵Chandler Carruth2007-08-041-54/+18
| | | | | | | | | LLVM. It cleans up the intrinsic definitions and generally smooths the process for more complicated intrinsic writing. It will be used by the upcoming atomic intrinsics as well as vector and float intrinsics in the future. This also changes the syntax for llvm.bswap, llvm.part.set, llvm.part.select, and llvm.ct* intrinsics. They are automatically upgraded by both the LLVM ASM reader and the bitcode reader. The test cases have been updated, with special tests added to ensure the automatic upgrading is supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40807 91177308-0d34-0410-b5e6-96231b3b80d8
* Long double, part 1 of N. Support in IR.Dale Johannesen2007-08-033-0/+76
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40774 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete the svn:executable property on these files, which aren't executable.Dan Gohman2007-07-232-0/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40441 91177308-0d34-0410-b5e6-96231b3b80d8
* The Ada f-e produces various auxiliary output filesDuncan Sands2007-07-233-7/+7
| | | | | | | | | | | | that cannot be suppressed and cannot be redirected: they are dumped in the current working directory. When running the testsuite this means that these files do not end up in the Output directory. The best solution I could find is to change directory into Output before running tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40437 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1553:Reid Spencer2007-07-191-7/+7
| | | | | | | | | | Change the keywords for the zext and sext parameter attributes to be zeroext and signext so they don't conflict with the keywords for the instructions of the same name. This gets around the ambiguity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40069 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert .cvsignore filesJohn Criswell2007-06-291-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37801 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit first round work of PR1373. "noalias" is now fully supported inZhou Sheng2007-06-051-0/+2
| | | | | | | | VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37432 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure we can round-trip an escaped value in a name.Reid Spencer2007-05-191-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37259 91177308-0d34-0410-b5e6-96231b3b80d8
* remove libbzip2 from this. This should use llvm-config or something.Chris Lattner2007-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36879 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement review feedback. Aliasees can be either GlobalValue's orAnton Korobeynikov2007-04-281-2/+2
| | | | | | | bitcasts of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8
* not fully implemented yet.Chris Lattner2007-04-281-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36530 91177308-0d34-0410-b5e6-96231b3b80d8
* An example for PR1362Andrew Lenharth2007-04-261-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36484 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement aliases. This fixes PR1017 and it's dependent bugs. CFE partAnton Korobeynikov2007-04-251-0/+28
| | | | | | | will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1319:Reid Spencer2007-04-163-5/+3
| | | | | | | | | Remove && from the end of the lines to prevent tests from throwing run lines into the background. Also, clean up places where the same command is run multiple times by using a temporary file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36142 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes to fix problems with "make check". Apparently you can redefineReid Spencer2007-04-141-1/+1
| | | | | | | | functions and Tcl's just tickled with that. The fix is to give the "new" test system a different interface function name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36022 91177308-0d34-0410-b5e6-96231b3b80d8
* Try some alternative syntax.Reid Spencer2007-04-143-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36018 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify this test and correct redirection for Tcl exec.Reid Spencer2007-04-141-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36001 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1319:Reid Spencer2007-04-144-9/+8
| | | | | | | | Changes necessary for conversion of this directory to run the tests under the llvm.exp version of llvm_runtest git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35993 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a missing -f that the new llvm.exp found.Reid Spencer2007-04-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35988 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a missing -f caught by the new llvm.exp script.Reid Spencer2007-04-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35987 91177308-0d34-0410-b5e6-96231b3b80d8
* vector compares aren't allowed. It doesn't make sense to have an xfailedChris Lattner2007-04-121-57/+0
| | | | | | | test to remind us of this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35949 91177308-0d34-0410-b5e6-96231b3b80d8
* The hello pass actually requires a function to chew on!Reid Spencer2007-04-121-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35937 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a guard that is supposed to guard against mistakes like this patch fixes!Reid Spencer2007-04-111-1/+1
| | | | | | | We *really* need to be running these with tcl's "exec" to catch the errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35928 91177308-0d34-0410-b5e6-96231b3b80d8
* The "Hello" message is written on stderr so make sure it is duplicated toReid Spencer2007-04-111-1/+1
| | | | | | | stdout so the grep can match it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35925 91177308-0d34-0410-b5e6-96231b3b80d8