summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a fixed version of r195470 back.Rafael Espindola2013-11-221-5/+6
| | | | | | | | | | | | | | | | The fix is simply to use CurI instead of I when handling aliases to avoid accessing a invalid iterator. original message: Convert linkonce* to weak* instead of strong. Also refactor the logic into a helper function. This is an important improve on mingw where the linker complains about mixed weak and strong symbols. Converting to weak ensures that the symbol is not dropped, but keeps in a comdat, making the linker happy. llvm-svn: 195477
* Revert "Convert linkonce* to weak* instead of strong."Rafael Espindola2013-11-221-6/+5
| | | | | | | This reverts commit r195470. Debugging failure in some bots. llvm-svn: 195472
* Convert linkonce* to weak* instead of strong.Rafael Espindola2013-11-221-5/+6
| | | | | | | | | Also refactor the logic into a helper function. This is an important improvement on mingw where the linker complains about mixed weak and strong symbols. Converting to weak ensures that the symbol is not dropped, but keeps in a comdat, making the linker happy. llvm-svn: 195470
* Add addrspacecast instruction.Matt Arsenault2013-11-151-2/+2
| | | | | | Patch by Michele Scandale! llvm-svn: 194760
* Provide a test input for optAlp Toker2013-11-051-6/+6
| | | | | | | This was only working previously due to a quirk in the way lit concatenates script commands. llvm-svn: 194078
* Quote potential shell expansions found in testsAlp Toker2013-10-281-1/+1
| | | | llvm-svn: 193558
* llvm/test/Other/close-stderr.ll: Remove "XFAIL:win32". It reverts r173509.NAKAMURA Takumi2013-10-261-3/+0
| | | | | | "REQUIRES: shell" should cover if this failed. llvm-svn: 193458
* Update to remove the no-frame-pointer-elim-non-leaf flag if it was set to ↵Bill Wendling2013-08-221-1/+1
| | | | | | 'false'. llvm-svn: 189068
* Teach ConstantFolding about pointer address spacesMatt Arsenault2013-08-201-0/+235
| | | | llvm-svn: 188831
* [tests] Cleanup initialization of test suffixes.Daniel Dunbar2013-08-162-3/+0
| | | | | | | | | | | | | | | | | - Instead of setting the suffixes in a bunch of places, just set one master list in the top-level config. We now only modify the suffix list in a few suites that have one particular unique suffix (.ml, .mc, .yaml, .td, .py). - Aside from removing the need for a bunch of lit.local.cfg files, this enables 4 tests that were inadvertently being skipped (one in Transforms/BranchFolding, a .s file each in DebugInfo/AArch64 and CodeGen/PowerPC, and one in CodeGen/SI which is now failing and has been XFAILED). - This commit also fixes a bunch of config files to use config.root instead of older copy-pasted code. llvm-svn: 188513
* Use pipefail when available.Rafael Espindola2013-07-261-0/+2
| | | | | | | | | | | | | | This change makes test with RUN lines like RUN: opt ... | FileCheck fail if opt fails, even if it prints what FileCheck wants. Enabling this found some interesting cases of broken tests that were not being noticed because opt (or some other tool) was crashing late. Pipefail is used when the shell supports it or when using the internal python based tester. llvm-svn: 187261
* Windows/Path.inc: Introduce file_type::character_file and ↵NAKAMURA Takumi2013-07-181-3/+0
| | | | | | | | | file_type::fifo_file in sys::fs::getStatus(HANDLE). It fixes llvm/test/Other/close-stderr.ll on msys. FIXME: Provide unittests. llvm-svn: 186588
* [Support] Beef up and expose the response file parsing in llvm::clReid Kleckner2013-07-181-2/+6
| | | | | | | | | | | | | | | | | | | The plan is to use it for clang and lld. Major behavior changes: - We can now parse UTF-16 files that have a byte order mark. - PR16209: Don't drop backslashes on the floor if they don't escape anything. The actual parsing loop was based on code from Clang's driver.cpp, although it's been rewritten to track its state with control flow rather than state variables. Reviewers: hans Differential Revision: http://llvm-reviews.chandlerc.com/D1170 llvm-svn: 186587
* llvm/test/Other/close-stderr.ll: Mark this as XFAIL on msys, since r186560.NAKAMURA Takumi2013-07-181-0/+3
| | | | | | sys::fs::status() doesn't work on pipes. Investigating. llvm-svn: 186586
* XFAIL this test on mingw.Rafael Espindola2013-07-161-0/+1
| | | | llvm-svn: 186444
* Create files with mode 666. This matches the behavior of other unix tools.Rafael Espindola2013-07-161-0/+13
| | | | llvm-svn: 186414
* Move r186044 tests into CodeGen/X86Hal Finkel2013-07-112-20/+0
| | | | | | | | I had thought that these tests could be target-neutral, but in practice this is not the case (on some targets, like Hexagon and Darwin), they trigger an assert (a different assert than the one that r186044 fixes). llvm-svn: 186051
* Set REQUIRES shell on the test cases for r186044Hal Finkel2013-07-102-0/+2
| | | | | | Trying to fix the i686-mingw32 build. llvm-svn: 186046
* XFAIL the test cases for r186044 on HexagonHal Finkel2013-07-102-0/+2
| | | | | | | For some reason, the Hexagon backend does not reject these invalid static initializer expressions, but instead crashes in AsmPrinter::EmitGlobalConstant. llvm-svn: 186045
* Don't assert if we can't constant fold extract/insertvalueHal Finkel2013-07-102-0/+16
| | | | | | | | | | | | | | | A non-constant-foldable static initializer expression containing insertvalue or extractvalue had been causing an assert: Constants.cpp:1971: Assertion `FC && "ExtractValue constant expr couldn't be folded!"' failed. Now we report a more-sensible "Unsupported expression in static initializer" error instead. Fixes PR15417. llvm-svn: 186044
* llvm/test/Other/llvm-cov.test: It requires +Asserts to let XFAILed.NAKAMURA Takumi2013-07-081-0/+1
| | | | llvm-svn: 185799
* (1) Add ".test" to test/Other/lit.local.cfg, so llvm-cov.test is actually run.Matt Beaumont-Gay2013-07-014-3/+3
| | | | | | | | | (2) Rename llvm-cov test inputs so the string "llvm-cov" doesn't get substituted by lit within the input filenames on the RUN line. (3) XFAIL llvm-cov.test because it asserts: include/llvm/ADT/SmallVector.h:140: reference llvm::SmallVectorTemplateCommon<llvm::GCOVBlock *, void>::operator[](unsigned int) [T = llvm::GCOVBlock *]: Assertion `begin() + idx < end()' failed. llvm-svn: 185358
* Suppress llvm/test/Other/can-execute.txt on msys bash.NAKAMURA Takumi2013-06-261-1/+1
| | | | llvm-svn: 184932
* Add a testcase for r184074.Rafael Espindola2013-06-172-0/+23
| | | | llvm-svn: 184080
* Attributes: Don't print trailing whitespace on the function attribute comment.Benjamin Kramer2013-04-191-0/+9
| | | | llvm-svn: 179849
* Check isDiscardableIfUnused, rather than hasLocalLinkage, when bumpingLang Hames2013-03-041-0/+23
| | | | | | | GlobalValue linkage up to ExternalLinkage in the ExtractGV pass. This prevents linkonce and linkonce_odr symbols from being DCE'd. llvm-svn: 176459
* IR: Don't constant fold GEP bitcasts between different address spacesMeador Inge2013-02-271-0/+20
| | | | | | | | | | | | | | | | | | PR15262 reported a bug where the following instruction: i8 getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to i8*), i32 2 was getting folded into: addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf, i32 0, i32 2) This caused instcombine to crash because the original instruction and the folded instruction have different types. The issue was fixed by disallowing bitcasts between different address spaces to be folded away. llvm-svn: 176156
* Modify the LLVM assembly output so that it uses references to represent ↵Bill Wendling2013-02-201-57/+59
| | | | | | | | | | | function attributes. This makes the LLVM assembly look better. E.g.: define void @foo() #0 { ret void } attributes #0 = { nounwind noinline ssp } llvm-svn: 175605
* XFAIL close-stderr on win32Reid Kleckner2013-01-251-0/+3
| | | | | | | | The test runner does not rewrite instances of /dev/null inside the quoted sh command. /dev/null does not exist, so opt will fail to open it, and return a non-zero exit code. llvm-svn: 173509
* llvm/test/Other/close-stderr.ll: Mark this as XFAIL:valgrind. We got 127 ↵NAKAMURA Takumi2013-01-201-0/+4
| | | | | | instead of 1 here. llvm-svn: 172956
* Using "not grep" is brittle as the test passes if llvm-as fails.Rafael Espindola2012-11-211-2/+6
| | | | | | | Fix the testcase to be valid IL and uses FileCheck. Thanks to NAKAMURA Takumi for noticing it. llvm-svn: 168427
* Revert r167836, "llvm/test/Other/close-stderr.ll: Mark it as XFAIL:mingw32 ↵NAKAMURA Takumi2012-11-131-3/+0
| | | | | | for now.", corresponding to r167849. llvm-svn: 167876
* Revert 167755/167760. We don't want to emit crash diagnostics on ↵Chad Rosier2012-11-131-1/+1
| | | | | | command-line syntax errors. llvm-svn: 167849
* llvm/test/Other/close-stderr.ll: Mark it as XFAIL:mingw32 for now.NAKAMURA Takumi2012-11-131-0/+3
| | | | | | | | | | | On MSYS, 70 is not seen, but 1. r127726 should be reworked. Candidate options are; 1) Use not exit(70), but _exit(70), in report_fatal_error(). 2) Return with _exit(70) in ~raw_ostream(). llvm-svn: 167836
* Update test case for r167754/r167755.Chad Rosier2012-11-121-1/+1
| | | | llvm-svn: 167760
* Revert the series of commits starting with r166578 which introduced theChandler Carruth2012-11-011-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | getIntPtrType support for multiple address spaces via a pointer type, and also introduced a crasher bug in the constant folder reported in PR14233. These commits also contained several problems that should really be addressed before they are re-committed. I have avoided reverting various cleanups to the DataLayout APIs that are reasonable to have moving forward in order to reduce the amount of churn, and minimize the number of commits that were reverted. I've also manually updated merge conflicts and manually arranged for the getIntPtrType function to stay in DataLayout and to be defined in a plausible way after this revert. Thanks to Duncan for working through this exact strategy with me, and Nick Lewycky for tracking down the really annoying crasher this triggered. (Test case to follow in its own commit.) After discussing with Duncan extensively, and based on a note from Micah, I'm going to continue to back out some more of the more problematic patches in this series in order to ensure we go into the LLVM 3.2 branch with a reasonable story here. I'll send a note to llvmdev explaining what's going on and why. Summary of reverted revisions: r166634: Fix a compiler warning with an unused variable. r166607: Add some cleanup to the DataLayout changes requested by Chandler. r166596: Revert "Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this! r166591: Delete a directory that wasn't supposed to be checked in yet. r166578: Add in support for getIntPtrType to get the pointer type based on the address space. llvm-svn: 167221
* Add -alias and -ralias options to match what we have for functions andRafael Espindola2012-10-291-0/+9
| | | | | | globals. llvm-svn: 166909
* llvm-extract changes linkages so that functions on both sides of theRafael Espindola2012-10-292-4/+28
| | | | | | | split module can see each other. If it is keeping a symbol that already has a non local linkage, it doesn't need to change it. llvm-svn: 166908
* llvm-extract was unable to handle aliases. It would leave a copy on theRafael Espindola2012-10-291-0/+40
| | | | | | | | | | | | | | | | | | output of both llvm-extract foo.ll -func=bar and llvm-extract foo.ll -func=bar -delete so the two new files could not be linked together anymore. With this change alias are handled almost like functions and global variables. Almost because with alias we cannot just clear the initializer/body, we have to create a new declaration and replace the alias with it. The net result is that now the output of the above commands can be linked even if foo.ll has aliases. llvm-svn: 166907
* Change the internalize pass to internalize all symbols when given an emptyRafael Espindola2012-10-261-0/+13
| | | | | | | list of externals. This makes sense since a shared library with no symbols can still be useful if it has static constructors. llvm-svn: 166795
* Add in support for getIntPtrType to get the pointer type based on the ↵Micah Villmow2012-10-241-0/+43
| | | | | | | | | address space. This checkin also adds in some tests that utilize these paths and updates some of the clients. llvm-svn: 166578
* Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplifiedRafael Espindola2012-10-091-0/+9
| | | | | | the test. llvm-svn: 165535
* Forgot the SPIR test case.Micah Villmow2012-10-011-0/+13
| | | | llvm-svn: 164949
* Ignore apparent buffer overruns on external or weak globals. This is a majorDuncan Sands2012-09-301-0/+5
| | | | | | | source of false positives due to globals being declared in a header with some kind of incomplete (small) type, but the actual definition being bigger. llvm-svn: 164912
* Teach the 'lint' sanity checking pass to detect simple buffer overflows.Duncan Sands2012-09-261-0/+12
| | | | llvm-svn: 164671
* Change the way the lint sanity checking pass detects misaligned memory accesses.Duncan Sands2012-09-251-2/+6
| | | | | | | | | | | | | | | Previously it was only be able to detect problems if the pointer was a numerical value (eg inttoptr i32 1 to i32*), but not if it was an alloca or globa. The reason was the use of ComputeMaskedBits: imagine you have "alloca i8, align 2", and ask ComputeMaskedBits what it knows about the bits of the alloca pointer. It can tell you that the bottom bit is known zero (due to align 2) but it can't tell you that bit 1 is known one. That's because the address could be an even multiple of 2 rather than an odd multiple, eg it might be a multiple of 4. Thus trying to use KnownOne is ineffective in the case of an alloca as it will never have any bits set. Instead look explicitly for constant offsets from allocas and globals. llvm-svn: 164595
* Don't do actual work inside an assert statement. Fixes PR11760!Nick Lewycky2012-09-233-0/+3
| | | | llvm-svn: 164474
* FileCheck: Fix off-by-one bug that made CHECK-NOT: ignore the next character ↵Benjamin Kramer2012-09-182-1/+10
| | | | | | after the colon. llvm-svn: 164165
* Add hidden flag to exclude aliases from output.Jan Sjödin2012-09-181-0/+25
| | | | llvm-svn: 164158
* Fix the remaining TCL-style quotes found in the testsuite. This isChandler Carruth2012-07-021-1/+1
| | | | | | | | | | | | | | | | | another mechanical change accomplished though the power of terrible Perl scripts. I have manually switched some "s to 's to make escaping simpler. While I started this to fix tests that aren't run in all configurations, the massive number of tests is due to a really frustrating fragility of our testing infrastructure: things like 'grep -v', 'not grep', and 'expected failures' can mask broken tests all too easily. Essentially, I'm deeply disturbed that I can change the testsuite so radically without causing any change in results for most platforms. =/ llvm-svn: 159547
OpenPOWER on IntegriCloud