summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic
Commit message (Collapse)AuthorAgeFilesLines
* Fix up -fstack-protector on linux to use the segmentEric Christopher2010-07-061-25/+0
| | | | | | | | | registers. Split out testcases per architecture and os now. Patch from Nelson Elhage. llvm-svn: 107640
* Move v-binop-widen tests to X86 since they don't work on all platformsMon P Wang2010-06-222-45/+0
| | | | llvm-svn: 106562
* Remove arm_apcscc from the test files. It is the default and doing thisRafael Espindola2010-06-171-2/+2
| | | | | | matches what llvm-gcc and clang now produce. llvm-svn: 106221
* modify so the test doesn't drop an output file in the test source directory.Jim Grosbach2010-06-161-1/+1
| | | | | | | The test should also likely have some FileCheck bits to validate the output(?). llvm-svn: 106146
* Remove the local register allocator.Jakob Stoklund Olesen2010-06-151-1/+0
| | | | | | Please use the fast allocator instead. llvm-svn: 106051
* Fixed vector widening of binary instructions that can trap. Patch by Visa ↵Mon P Wang2010-06-152-0/+45
| | | | | | Putkinen! llvm-svn: 106038
* Implement expansion in type legalization for add/sub with overflow. TheEli Friedman2010-06-031-0/+42
| | | | | | | | | | expansion is the same as that used by LegalizeDAG. The resulting code sucks in terms of performance/codesize on x86-32 for a 64-bit operation; I haven't looked into whether different expansions might be better in general. llvm-svn: 105378
* Enable a bunch more -regalloc=fast testsJakob Stoklund Olesen2010-05-121-0/+1
| | | | llvm-svn: 103531
* SDDbgValues are apparently not being legalized. Fix a symptom of the problem,Dan Gohman2010-05-071-0/+25
| | | | | | | and not the real problem itself, by dropping debug info for i128 values. rdar://7958162. llvm-svn: 103310
* Remove the -enable-sjlj-eh option, which doesn't do anything.Duncan Sands2010-05-023-3/+3
| | | | | | | Remove the -enable-eh option which is only used by the JIT, and replace it with -jit-enable-eh. llvm-svn: 102865
* fix PR6332, allowing an index of zero into a zero sized array Chris Lattner2010-04-171-0/+8
| | | | | | even if the element of the array has no size. llvm-svn: 101662
* Fix PR4975. Avoid referencing empty vector.Evan Cheng2010-03-291-0/+17
| | | | llvm-svn: 99840
* Revert Edwin's change that is breaking MultiSource/Applications/ClamAV/clamscan.Bob Wilson2010-03-241-114/+0
| | | | | | | | --- Reverse-merging r99400 into '.': D test/CodeGen/Generic/2010-03-24-liveintervalleak.ll U lib/CodeGen/LiveIntervalAnalysis.cpp llvm-svn: 99419
* Fix memory leak in liveintervals: the destructor for VNInfos must be called,Torok Edwin2010-03-241-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | otherwise the SmallVector it contains doesn't free its memory. In most cases LiveIntervalAnalysis could get away by not calling the destructor, because VNInfos are bumpptr-allocated, and smallvectors usually don't grow. However when the SmallVector does grow it always leaks. This is the valgrind shown leak from the original testcase: ==8206== 18,304 bytes in 151 blocks are definitely lost in loss record 164 of 164 ==8206== at 0x4A079C7: operator new(unsigned long) (vg_replace_malloc.c:220) ==8206== by 0x4DB7A7E: llvm::SmallVectorBase::grow_pod(unsigned long, unsigned long) (in /home/edwin/clam/git/builds/defaul t/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4F90382: llvm::VNInfo::addKill(llvm::SlotIndex) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libcl amav.so.6.1.0) ==8206== by 0x5126B5C: llvm::LiveIntervals::handleVirtualRegisterDef(llvm::MachineBasicBlock*, llvm::ilist_iterator<llvm::M achineInstr>, llvm::SlotIndex, llvm::MachineOperand&, unsigned int, llvm::LiveInterval&) (in /home/edwin/clam/git/builds/defau lt/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x512725E: llvm::LiveIntervals::handleRegisterDef(llvm::MachineBasicBlock*, llvm::ilist_iterator<llvm::MachineI nstr>, llvm::SlotIndex, llvm::MachineOperand&, unsigned int) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav .so.6.1.0) ==8206== by 0x51278A8: llvm::LiveIntervals::computeIntervals() (in /home/edwin/clam/git/builds/default/libclamav/.libs/libc lamav.so.6.1.0) ==8206== by 0x5127CB4: llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) (in /home/edwin/clam/git/builds/de fault/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAE935: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclama v/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAEB10: llvm::FunctionPassManagerImpl::run(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclama v/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAED3D: llvm::FunctionPassManager::run(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclamav/.l ibs/libclamav.so.6.1.0) ==8206== by 0x4D8BE8E: llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4D8CA72: llvm::JIT::getPointerToFunction(llvm::Function*) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav.so.6.1.0) llvm-svn: 99400
* Fix PR6673: updating the callback should not clear the map.Chris Lattner2010-03-221-0/+23
| | | | llvm-svn: 99227
* Fix liveintervals handling of dbg_value instructions.Evan Cheng2010-03-161-0/+13
| | | | llvm-svn: 98686
* Fix the third (and last known) case of code update problems due Chris Lattner2010-03-161-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | to LLVM IR changes with addr label weirdness. In the testcase, we generate references to the two bb's when codegen'ing the first function: _test1: ## @test1 leaq Ltmp0(%rip), %rax .. leaq Ltmp1(%rip), %rax Then continue to codegen the second function where the blocks get merged. We're now smart enough to emit both labels, producing this code: _test_fun: ## @test_fun ## BB#0: ## %entry Ltmp1: ## Block address taken Ltmp0: ## BB#1: ## %ret movl $-1, %eax ret Rejoice. llvm-svn: 98595
* Implement support for the case when a reference to a addr-of-bb Chris Lattner2010-03-151-0/+39
| | | | | | | | | label is generated, but then the block is deleted. Since the value is undefined, we just emit the label right after the entry label of the function. It might matter that the label is in the same section as the function was afterall. llvm-svn: 98579
* don't have i386-specific tests in CodeGen/Generic, PR6601.Chris Lattner2010-03-1422-419/+0
| | | | llvm-svn: 98508
* stop using anders-aaChris Lattner2010-03-011-1/+1
| | | | llvm-svn: 97491
* Remove this generic debug info intrinsic test. LLVM does not use this ↵Devang Patel2010-03-011-19/+0
| | | | | | llvm.dbg.stoppoint intrinsic anymore. There are tests to check new implementation, which attaches location information directly with an instruction using metadata. llvm-svn: 97464
* Preliminary patch to improve dwarf EH generation - Hooks to return ↵Anton Korobeynikov2010-02-151-1/+1
| | | | | | Personality / FDE / LSDA / TType encoding depending on target / options (e.g. code model / relocation model) - MCIzation of Dwarf EH printer to use encoding information - Stub generation for ELF target (needed for indirect references) - Some other small changes here and there llvm-svn: 96285
* move tests that depend on the x86 backend out of codegen/generic,Chris Lattner2010-02-0910-379/+1
| | | | | | and remove a few old and unreduced ones. Fixes PR5624. llvm-svn: 95656
* make target independent.Chris Lattner2010-02-091-1/+0
| | | | llvm-svn: 95655
* merge a target-specific add test into x86 directory.Chris Lattner2010-02-091-10/+0
| | | | llvm-svn: 95654
* merge two tests, make target independent.Chris Lattner2010-02-092-56/+40
| | | | llvm-svn: 95651
* just remove this test, it is not reduced, is not clear what its testing for andChris Lattner2010-01-241-2870/+0
| | | | | | it is dying due to fragility in the asmprinter .s comments. llvm-svn: 94372
* remove this test.Chris Lattner2010-01-231-14/+0
| | | | llvm-svn: 94276
* Fix test.Evan Cheng2010-01-231-1/+1
| | | | llvm-svn: 94272
* APInt'fy TargetLowering::SimplifySetCC to fix PR5963.Evan Cheng2010-01-071-0/+16
| | | | llvm-svn: 92943
* Delete useless trailing semicolons.Dan Gohman2010-01-051-1/+1
| | | | llvm-svn: 92740
* While this test is testing a problem in the generic part of codegen,Duncan Sands2009-11-271-37/+0
| | | | | | | | | the problem only shows for msp430 and pic16 which is why it specifies them using -march. But it is wrong to put such tests in CodeGen/Generic, since not everyone builds these targets. Put a copy of the test in each of the target test directories. llvm-svn: 90005
* Convert test to FileCheck.Benjamin Kramer2009-11-221-2/+6
| | | | llvm-svn: 89589
* Don't leave temporary files in the test directory.Jakob Stoklund Olesen2009-11-211-2/+2
| | | | llvm-svn: 89531
* Fix PR5558, which was caused by a wrong fix for PR3393 (see commit 63048),Duncan Sands2009-11-201-0/+37
| | | | | | | | which was an expensive checks failure due to a bug in the checking. This patch in essence reverts the original fix for PR3393, and refixes it by a tweak to the way expensive checking is done. llvm-svn: 89454
* Added a testcase for PR5495.Lang Hames2009-11-161-0/+75
| | | | llvm-svn: 88946
* Fix PR5421 by APInt'izing switch lowering.Chris Lattner2009-11-071-2/+16
| | | | llvm-svn: 86354
* Declare sin & cos as readonly so they match the code in SelectionDAGBuildNate Begeman2009-11-031-4/+4
| | | | llvm-svn: 85853
* Revert the main portion of r31856. It was causing BranchFoldingDan Gohman2009-10-221-2/+2
| | | | | | | | | | | | to break up CFG diamonds by banishing one of the blocks to the end of the function, which is bad for code density and branch size. This does pessimize MultiSource/Benchmarks/Ptrdist/yacr2, the benchmark cited as the reason for the change, however I've examined the code and it looks more like a case of gaming a particular branch than of being generally applicable. llvm-svn: 84803
* Convert more tests to avoid llvm-as.Dan Gohman2009-09-112-2/+2
| | | | llvm-svn: 81545
* Change tests from "opt %s" to "opt < %s" so that opt doesn't see theDan Gohman2009-09-114-5/+5
| | | | | | | | input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
* Eliminate more uses of llvm-as and llvm-dis.Dan Gohman2009-09-09152-165/+165
| | | | llvm-svn: 81293
* Use opt -S instead of piping bitcode output through llvm-dis.Dan Gohman2009-09-082-3/+3
| | | | llvm-svn: 81257
* Change these tests to feed the assembly files to opt directly, insteadDan Gohman2009-09-084-5/+5
| | | | | | of using llvm-as, now that opt supports this. llvm-svn: 81226
* Remove obsolete -f flags.Dan Gohman2009-08-253-4/+4
| | | | llvm-svn: 79992
* Split test into 3.Dale Johannesen2009-08-241-10/+0
| | | | llvm-svn: 79926
* Make linkerprivate work for ARM and PPC. Testcase coversDale Johannesen2009-08-241-0/+10
| | | | | | | | | all Darwin targets; could be split into separate tests for the chip subdirectories, but from Chris' last mail on testing I assume he'd rather have only one test. Generic seems to be the best available, maybe there should be a Darwin subdirectory? llvm-svn: 79877
* Remove the IA-64 backend.Dan Gohman2009-07-241-1/+0
| | | | llvm-svn: 76920
* remove tests for removed intrinsics.Chris Lattner2009-07-121-32/+0
| | | | llvm-svn: 75433
* Split the Add, Sub, and Mul instruction opcodes into separateDan Gohman2009-06-0411-38/+38
| | | | | | | | | | | | | | | integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897
OpenPOWER on IntegriCloud