summaryrefslogtreecommitdiffstats
path: root/llvm/test
Commit message (Collapse)AuthorAgeFilesLines
* finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobalChris Lattner2009-07-261-0/+17
| | | | | | | for now. Make the section switching directives more consistent by not including \n and including \t for them all. llvm-svn: 77107
* simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bitChris Lattner2009-07-261-0/+17
| | | | | | | | | | | and make it more aggressive, we now put: const int G2 __attribute__((weak)) = 42; into the text (readonly) segment like gcc, previously we put it into the data (readwrite) segment. llvm-svn: 77104
* Add support for ARM Neon VREV instructions.Bob Wilson2009-07-261-0/+113
| | | | | | Patch by Anton Korzh, with some modifications from me. llvm-svn: 77101
* add the most expedient hack to fix PR4619, along with a testcase.Chris Lattner2009-07-251-0/+8
| | | | | | Thanks to Rafael for the great example. llvm-svn: 77083
* When attempting to sign-extend an addrec by interpretingDan Gohman2009-07-251-0/+74
| | | | | | | the step value as unsigned, the start value and the addrec itself still need to be treated as signed. llvm-svn: 77078
* remove this test. It is currently failing because we now emit the stringChris Lattner2009-07-251-11/+0
| | | | | | | | on darwin with ".cstring" instead of ".section __TEXT,__cstring". They are the same and the former is better. Remove this because this is no longer magic pixie dust in the frontend. llvm-svn: 77055
* Teach ScalarEvolution to make use of no-overflow flags whenDan Gohman2009-07-251-0/+40
| | | | | | analyzing add recurrences. llvm-svn: 77034
* I've lost my mind. PR4572 has not been fixed.Evan Cheng2009-07-251-29/+0
| | | | llvm-svn: 77031
* Change Thumb2 jumptable codegen to one that uses two level jumps:Evan Cheng2009-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: adr r12, #LJTI3_0_0 ldr pc, [r12, +r0, lsl #2] LJTI3_0_0: .long LBB3_24 .long LBB3_30 .long LBB3_31 .long LBB3_32 After: adr r12, #LJTI3_0_0 add pc, r12, +r0, lsl #2 LJTI3_0_0: b.w LBB3_24 b.w LBB3_30 b.w LBB3_31 b.w LBB3_32 This has several advantages. 1. This will make it easier to optimize this to a TBB / TBH instruction + (smaller) table. 2. This eliminate the need for ugly asm printer hack to force the address into thumb addresses (bit 0 is one). 3. Same codegen for pic and non-pic. 4. This eliminate the need to align the table so constantpool island pass won't have to over-estimate the size. Based on my calculation, the later is probably slightly faster as well since ldr pc with shifter address is very slow. That is, it should be a win as long as the HW implementation can do a reasonable job of branch predict the second branch. llvm-svn: 77024
* Remove a duplicated test.Evan Cheng2009-07-251-26/+0
| | | | llvm-svn: 77020
* Forgot this test earlier.Evan Cheng2009-07-241-0/+29
| | | | llvm-svn: 77007
* Fix these tests.Evan Cheng2009-07-242-2/+2
| | | | llvm-svn: 77006
* Fix assert assembling zero-argument constant GEP.Eli Friedman2009-07-241-0/+5
| | | | | | | There's still a strict-aliasing violation here, but I don't feel like dealing with that right now... llvm-svn: 77005
* Move insertps tests to sse41 combo test file, convert to filecheckEric Christopher2009-07-242-13/+31
| | | | | | format and add an extract/insert test. llvm-svn: 76994
* Convert a test to FileCheck.Evan Cheng2009-07-241-4/+3
| | | | llvm-svn: 76954
* Remove SectionKind::Small*. This was only used on mips, and is apparentlyChris Lattner2009-07-241-32/+0
| | | | | | a sad mistake that is regretted. :) llvm-svn: 76935
* Add tests for handling of globals and tls on the XCore. These currently failRichard Osborne2009-07-242-0/+58
| | | | | | but pass when run against r76652. llvm-svn: 76923
* Remove the IA-64 backend.Dan Gohman2009-07-2412-57/+6
| | | | llvm-svn: 76920
* Thumb2 does not allow the use of "pc" register as part of the load / store ↵Evan Cheng2009-07-232-8/+37
| | | | | | address. llvm-svn: 76909
* Fix up ARM constant island pass for Thumb2.Evan Cheng2009-07-231-0/+22
| | | | | | Also fixed up code to fully use the SoImm field for ADR on ARM mode. llvm-svn: 76890
* FileCheck'ize and expand LDA testcases.Andreas Bolka2009-07-2310-137/+292
| | | | llvm-svn: 76880
* testcase for PR4590Chris Lattner2009-07-231-0/+34
| | | | llvm-svn: 76868
* merge vector-casts-0.ll into vector-casts.llChris Lattner2009-07-232-55/+56
| | | | llvm-svn: 76864
* Make some existing optimizations that would only trigger on scalarsChris Lattner2009-07-231-2/+31
| | | | | | | | | | | | | | | | | | | | | also apply to vectors. This allows us to compile this: #include <emmintrin.h> __m128i a(__m128 a, __m128 b) { return a==a & b==b; } __m128i b(__m128 a, __m128 b) { return a!=a | b!=b; } to: _a: cmpordps %xmm1, %xmm0 ret _b: cmpunordps %xmm1, %xmm0 ret with clang instead of to a ton of horrible code. llvm-svn: 76863
* convert a test to filecheck format. This fixes an endemic problemChris Lattner2009-07-231-5/+12
| | | | | | | with negative tests: this test wasn't checking what it thought it was because it was grepping .bc, not .ll. llvm-svn: 76861
* rename testChris Lattner2009-07-231-0/+0
| | | | llvm-svn: 76860
* merge one more sse41 test into sse41.llChris Lattner2009-07-232-19/+44
| | | | llvm-svn: 76853
* merge another sse41 test into sse41.llChris Lattner2009-07-232-12/+23
| | | | llvm-svn: 76852
* merge sse41-pmovx.ll into sse41.llChris Lattner2009-07-232-54/+69
| | | | llvm-svn: 76850
* change a test to run in filecheck style. Rename it to be a generalChris Lattner2009-07-232-12/+23
| | | | | | | | | dumping ground of various SSE4.1 tests, since filecheck can reasonably handle them all in one file. Generalize it to check x86-64 stuff as well since it has a different ABI (a convenient way to test both the reg and mem forms of these instructions). llvm-svn: 76848
* Support insertps via the intrinsic and add a couple of simpleEric Christopher2009-07-231-0/+13
| | | | | | testcases to make sure it's being generated. llvm-svn: 76843
* Add test for pinsrd and pinsrb instructions.Eric Christopher2009-07-231-0/+12
| | | | llvm-svn: 76840
* Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into ↵Devang Patel2009-07-234-17/+7
| | | | | | METADATA_BLOCK in bitcode file. llvm-svn: 76834
* Revert r75663 (and r76805), as it is causing regressions on powerpc.Dan Gohman2009-07-231-20/+12
| | | | llvm-svn: 76823
* x86 isel tweak: use lea (%reg,%reg) instead of lea (,%reg,2).Dan Gohman2009-07-221-0/+8
| | | | llvm-svn: 76817
* Rename the new unsigned and signed keywords to nuw and nsw,Dan Gohman2009-07-224-54/+54
| | | | | | which stand for no-unsigned-wrap and no-signed-wrap. llvm-svn: 76810
* Add -march=ppc32 lines so that this test doesn't ever default to ppc64.Dan Gohman2009-07-221-2/+2
| | | | llvm-svn: 76805
* Use getTargetConstant instead of getConstant since it's meant as an constant ↵Evan Cheng2009-07-221-0/+95
| | | | | | operand. llvm-svn: 76803
* Make the grep line in this test more specific, to avoidDan Gohman2009-07-221-2/+2
| | | | | | unintended matches. llvm-svn: 76802
* Ignore undef uses.Evan Cheng2009-07-221-0/+94
| | | | llvm-svn: 76799
* Remove empty test.Devang Patel2009-07-221-0/+0
| | | | llvm-svn: 76763
* Introduce MetadataBase, a base class for MDString and MDNode.Devang Patel2009-07-222-7/+5
| | | | | | | Derive MDString directly from MetadataBase. Introduce new bitcode block to hold metadata. llvm-svn: 76759
* Revert commit 76707, it was breaking the llvm-gcc buildDuncan Sands2009-07-221-6/+3
| | | | | | | | on linux platforms. The binutils assembler does not recognize the "s" flag, see for example http://sourceware.org/binutils/docs/as/Section.html llvm-svn: 76733
* set the ELF "small" flag on objects that end up in .rodata.cst4 consistently,Chris Lattner2009-07-221-3/+6
| | | | | | updating a mips testcase to expect it. llvm-svn: 76707
* Replace the original ad-hoc code for determining whether (v pred w) impliesDan Gohman2009-07-211-0/+37
| | | | | | | | (x pred y) with more thorough code that does more complete canonicalization before resorting to range checks. This helps it find more cases where the canonicalized expressions match. llvm-svn: 76671
* Remove a big test case.Evan Cheng2009-07-211-5384/+0
| | | | llvm-svn: 76669
* Fix ocaml tests for 64-bit MacOS systems. LLVM is currently builtBob Wilson2009-07-211-1/+6
| | | | | | | | | as 32-bit code by default, and if gcc defaults to 64-bit code then ocamlc requires a -cc "gcc -arch i386" option. We were hardcoding -cc g++ and throwing away any other compiler options that were determined when ocamlc was configured and built. llvm-svn: 76658
* Do not select tSXTB / tSXTH in thumb2 mode.Evan Cheng2009-07-211-0/+34
| | | | llvm-svn: 76600
* convert this test to filecheck format, which is faster and avoids false ↵Chris Lattner2009-07-211-4/+16
| | | | | | matches of "st" -> "stdin" llvm-svn: 76591
* add a testcase for the pic16 section handling stuff.Chris Lattner2009-07-211-0/+15
| | | | llvm-svn: 76579
OpenPOWER on IntegriCloud