summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert the uses of '|&' to use '2>&1 |' instead, which works on oldChandler Carruth2012-07-023-7/+7
| | | | | | | | | | versions of Bash. In addition, I can back out the change to the lit built-in shell test runner to support this. This should fix the majority of fallout on Darwin, but I suspect there will be a few straggling issues. llvm-svn: 159544
* The built-in shell test runner for some reason doesn't like the quotingChandler Carruth2012-07-021-4/+2
| | | | | | | | | and multi-line nature of this test. I don't really feel like bugging this kind of edge-case, so just put it on one line and use single quotes. With this, every test *really* passes with the built-in shell test runner. llvm-svn: 159530
* Convert all tests using TCL-style quoting to use shell-style quoting.Chandler Carruth2012-07-022-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This was done through the aid of a terrible Perl creation. I will not paste any of the horrors here. Suffice to say, it require multiple staged rounds of replacements, state carried between, and a few nested-construct-parsing hacks that I'm not proud of. It happens, by luck, to be able to deal with all the TCL-quoting patterns in evidence in the LLVM test suite. If anyone is maintaining large out-of-tree test trees, feel free to poke me and I'll send you the steps I used to convert things, as well as answer any painful questions etc. IRC works best for this type of thing I find. Once converted, switch the LLVM lit config to use ShTests the same as Clang. In addition to being able to delete large amounts of Python code from 'lit', this will also simplify the entire test suite and some of lit's architecture. Finally, the test suite runs 33% faster on Linux now. ;] For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s llvm-svn: 159525
* Teach the 'opt' tool about '-Os' and '-Oz', corresponding to the ClangChandler Carruth2012-05-161-0/+8
| | | | | | | | | | | | | options, to enable easier testing of the innards of LLVM that are enabled by such optimization strategies. Note that this doesn't provide the (much needed) function attribute support for -Oz (as opposed to -Os), but still seems like a positive step to better test the logic that Clang currently relies on. Patch by Patrik Hägglund. llvm-svn: 156913
* Reapply r155682, making constant folding more consistent, with a fix to workDan Gohman2012-04-271-3/+3
| | | | | | properly with how the code handles all-undef PHI nodes. llvm-svn: 155721
* Revert r155682, "Use ConstantExpr::getExtractElement when constant-folding ↵NAKAMURA Takumi2012-04-271-3/+3
| | | | | | | | vectors" It broke stage2 build. stage1/clang sometimes crashed. llvm-svn: 155699
* Use ConstantExpr::getExtractElement when constant-folding vectorsDan Gohman2012-04-271-3/+3
| | | | | | | | | | | | | | | | | | | | | instead of getAggregateElement. This has the advantage of being more consistent and allowing higher-level constant folding to procede even if an inner extract element cannot be folded. Make ConstantFoldInstruction call ConstantFoldConstantExpression on the instruction's operands, making it more consistent with ConstantFoldConstantExpression itself. This makes sure that ConstantExprs get TargetData-aware folding before being handed off as operands for further folding. This causes more expressions to be folded, but due to a known shortcoming in constant folding, this currently has the side effect of stripping a few more nuw and inbounds flags in the non-targetdata side of constant-fold-gep.ll. This is mostly harmless. This fixes rdar://11324230. llvm-svn: 155682
* 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
* Replace all instances of dg.exp file with lit.local.cfg, since all tests are ↵Eli Bendersky2012-02-164-8/+14
| | | | | | | | 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
* Update test to new EH model.Bill Wendling2012-01-311-0/+3
| | | | llvm-svn: 149332
* Deleting the json-bench-test until I understand why it is flaky.Manuel Klimek2011-12-171-5/+0
| | | | llvm-svn: 146821
* Adds a JSON parser and a benchmark (json-bench) to catch performance ↵Manuel Klimek2011-12-161-0/+5
| | | | | | regressions. llvm-svn: 146735
* Fix test.Eli Friedman2011-12-151-2/+2
| | | | llvm-svn: 146642
* Make constant folding for GEPs a bit more aggressive.Eli Friedman2011-12-151-2/+5
| | | | llvm-svn: 146639
* Upgrade syntax of tests using volatile instructions to use 'load volatile' ↵Chris Lattner2011-11-271-1/+1
| | | | | | instead of 'volatile load', which is archaic. llvm-svn: 145171
* Update to new EH scheme.Bill Wendling2011-08-311-1/+6
| | | | llvm-svn: 138906
* Land the long talked about "type system rewrite" patch. ThisChris Lattner2011-07-091-46/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patch brings numerous advantages to LLVM. One way to look at it is through diffstat: 109 files changed, 3005 insertions(+), 5906 deletions(-) Removing almost 3K lines of code is a good thing. Other advantages include: 1. Value::getType() is a simple load that can be CSE'd, not a mutating union-find operation. 2. Types a uniqued and never move once created, defining away PATypeHolder. 3. Structs can be "named" now, and their name is part of the identity that uniques them. This means that the compiler doesn't merge them structurally which makes the IR much less confusing. 4. Now that there is no way to get a cycle in a type graph without a named struct type, "upreferences" go away. 5. Type refinement is completely gone, which should make LTO much MUCH faster in some common cases with C++ code. 6. Types are now generally immutable, so we can use "Type *" instead "const Type *" everywhere. Downsides of this patch are that it removes some functions from the C API, so people using those will have to upgrade to (not yet added) new API. "LLVM 3.0" is the right time to do this. There are still some cleanups pending after this, this patch is large enough as-is. llvm-svn: 134829
* Move platform-dependent test to appropriate directory.Galina Kistanova2011-05-132-0/+5
| | | | llvm-svn: 131302
* Move this test to CodeGen/Thumb. rdar://problem/9416774Stuart Hastings2011-05-111-60/+0
| | | | llvm-svn: 131196
* Reduced test case. rdar://problem/9416774Stuart Hastings2011-05-111-36/+36
| | | | llvm-svn: 131191
* And lo, I was given a testcase for 131152. rdar://problem/9416774Stuart Hastings2011-05-111-0/+60
| | | | llvm-svn: 131184
* test/Other/close-stderr.ll: Require the feature 'shell'. It is not ↵NAKAMURA Takumi2010-12-071-0/+1
| | | | | | executable on Win32 but it is executable on MSYS-bash. llvm-svn: 121105
* Make BasicAliasAnalysis a normal AliasAnalysis implementation whichDan Gohman2010-10-181-1/+1
| | | | | | | | | | | | does normal initialization and normal chaining. Change the default AliasAnalysis implementation to NoAlias. Update StandardCompileOpts.h and friends to explicitly request BasicAliasAnalysis. Update tests to explicitly request -basicaa. llvm-svn: 116720
* Remove LoopIndexSplit pass. It is neither maintained nor used by anyone.Devang Patel2010-10-071-5/+0
| | | | llvm-svn: 116004
* Fix llvm-extract so that it changes the linkage of all GlobalValues toBob Wilson2010-09-231-1/+6
| | | | | | | "external" even when doing lazy bitcode loading. This was broken because a function that is not materialized fails the !isDeclaration() test. llvm-svn: 114666
* Fix llvm-extract -delete's lazy loading to materialize the functions thatDan Gohman2010-09-231-0/+22
| | | | | | will not be deleted, rather than the ones that will. llvm-svn: 114614
* XFAIL test under valgrind. It is not really our problem if sh is leaking.Jakob Stoklund Olesen2010-09-091-0/+1
| | | | llvm-svn: 113550
* remove unions from LLVM IR. They are severely buggy and notChris Lattner2010-08-281-42/+0
| | | | | | being actively maintained, improved, or extended. llvm-svn: 112356
* Try to escape the '$'s in these so they reach the underlying 'sh' invocation.Chandler Carruth2010-08-231-2/+2
| | | | | | I have no idea how lit did the right thing here, but other test runners don't. llvm-svn: 111805
* Add a testcase to verify that commands don't crash when they hitDan Gohman2010-08-181-0/+9
| | | | | | errors on stderr. llvm-svn: 111440
* Revert r111058, the lint check for indirectbr successors that aren'tDan Gohman2010-08-161-1/+0
| | | | | | | address-taken. This can occur normally, if the code which took the address got DCEd. llvm-svn: 111121
* Add a lint check for an indirectbr destination which has notDan Gohman2010-08-131-0/+1
| | | | | | had its address taken. llvm-svn: 111058
* Add a lint check for indirectbr with no successors.Dan Gohman2010-08-021-1/+3
| | | | llvm-svn: 110074
* Remove XFAIL, test doesn't leak anymore.Benjamin Kramer2010-07-291-1/+0
| | | | llvm-svn: 109801
* Add a lint check for mismatched return types, inspired by PR6944.Dan Gohman2010-07-121-0/+9
| | | | llvm-svn: 108162
* Don't write a file named "&1".Dan Gohman2010-06-181-1/+1
| | | | llvm-svn: 106269
* Add lint checks for function attributes.Dan Gohman2010-05-281-0/+17
| | | | llvm-svn: 105009
* Fix lint's memcpy and memmove checks, and its basic block traversal.Dan Gohman2010-05-281-0/+4
| | | | llvm-svn: 104970
* Detect self-referential values.Dan Gohman2010-05-281-0/+11
| | | | llvm-svn: 104957
* Remove this va_arg test, which is no longer applicable.Dan Gohman2010-05-281-3/+0
| | | | llvm-svn: 104956
* Eli pointed out that va_arg instruction result values don'tDan Gohman2010-05-281-4/+4
| | | | | | reference the stack. llvm-svn: 104951
* Teach lint how to look through simple store+load pairs and otherDan Gohman2010-05-281-0/+21
| | | | | | | effective no-op constructs, to make it more effective on unoptimized IR. llvm-svn: 104950
* Add a lint check for returning the address of stack memory.Dan Gohman2010-05-281-0/+7
| | | | llvm-svn: 104936
* rename test to represent meaningful dateGabor Greif2010-05-271-0/+0
| | | | llvm-svn: 104831
* Reinstate checking of stackrestore, with checking for both ReadDan Gohman2010-05-261-0/+3
| | | | | | and Write, and add a comment explaining this. llvm-svn: 104756
* Implement checking of the tail keyword.Dan Gohman2010-05-261-0/+12
| | | | llvm-svn: 104744
* XFAIL the test I added with vg_leak, apparently it is the first and only llcDaniel Dunbar2010-05-141-0/+1
| | | | | | | -filetype=obj test, and -filetype=obj leaks a few objects. Added a FIXME, we need to sort out the ownership model for the various MC objects. llvm-svn: 103769
* Inline Asm: Ensure buffer is newline terminated to match how the text is ↵Daniel Dunbar2010-05-141-0/+6
| | | | | | | | printed. - This is a hack, but I can't decide the best place to handle this. Chris? llvm-svn: 103765
* this really is needed. :(Chris Lattner2010-05-101-1/+1
| | | | llvm-svn: 103434
* just remove this, it isn't needed.Chris Lattner2010-05-101-1/+1
| | | | llvm-svn: 103432
OpenPOWER on IntegriCloud