summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CellSPU
Commit message (Collapse)AuthorAgeFilesLines
...
* Overhaul Cell SPU's addressing mode internals so that there are nowScott Michel2008-01-296-194/+79
| | | | | | | | | | | | | | only two addressing mode nodes, SPUaform and SPUindirect (vice the three previous ones, SPUaform, SPUdform and SPUxform). This improves code somewhat because we now avoid using reg+reg addressing when it can be avoided. It also simplifies the address selection logic, which was the main point for doing this. Also, for various global variables that would be loaded using SPU's A-form addressing, prefer D-form offs[reg] addressing, keeping the base in a register if the variable is used more than once. llvm-svn: 46483
* remove extraneous &&'s from tests, as Scott is apparently not going to.Chris Lattner2008-01-1820-160/+160
| | | | llvm-svn: 46173
* Forward progress: crtbegin.c now compiles successfully!Scott Michel2008-01-173-11/+112
| | | | | | | | | | | | | Fixed CellSPU's A-form (local store) address mode, so that all globals, externals, constant pool and jump table symbols are now wrapped within a SPUISD::AFormAddr pseudo-instruction. This now identifies all local store memory addresses, although it requires a bit of legerdemain during instruction selection to properly select loads to and stores from local store, properly generating "LQA" instructions. Also added mul_ops.ll test harness for exercising integer multiplication. llvm-svn: 46142
* More CellSPU refinements:Scott Michel2008-01-113-3/+163
| | | | | | | | | | | | - struct_2.ll: Completely unaligned load/store testing - call_indirect.ll, struct_1.ll: Add test lines to exercise X-form [$reg($reg)] addressing At this point, loads and stores should be under control (he says in an optimistic tone of voice.) llvm-svn: 45882
* More CellSPU refinement and progress:Scott Michel2008-01-1123-0/+467
| | | | | | | | | | | | | | | | | | | | - Cleaned up custom load/store logic, common code is now shared [see note below], cleaned up address modes - More test cases: various intrinsics, structure element access (load/store test), updated target data strings, indirect function calls. Note: This patch contains a refactoring of the LoadSDNode and StoreSDNode structures: they now share a common base class, LSBaseSDNode, that provides an interface to their common functionality. There is some hackery to access the proper operand depending on the derived class; otherwise, to do a proper job would require finding and rearranging the SDOperands sent to StoreSDNode's constructor. The current refactor errs on the side of being conservatively and backwardly compatible while providing functionality that reduces redundant code for targets where loads and stores are custom-lowered. llvm-svn: 45851
* More working CellSPU tests:Scott Michel2007-12-202-0/+236
| | | | | | | - vec_const.ll: Vector constant loads - immed64.ll: i64, f64 constant loads llvm-svn: 45242
* CellSPU testcase, extract_elt.ll: extract vector element.Scott Michel2007-12-191-0/+175
| | | | llvm-svn: 45219
* More working CellSPU test cases:Scott Michel2007-12-1912-0/+1164
| | | | | | | | | | | | | | | | | - call.ll: Function call - ctpop.ll: Count population - dp_farith.ll: DP arithmetic - eqv.ll: Equivalence primitives - fcmp.ll: SP comparisons - fdiv.ll: SP division - fneg-fabs.ll: SP negation, aboslute value - int2fp.ll: Integer -> SP conversion - rotate_ops.ll: Rotation primitives - select_bits.ll: (a & c) | (b & ~c) bit selection - shift_ops.ll: Shift primitives - sp_farith.ll: SP arithmentic llvm-svn: 45217
* Two more test cases: or_ops.ll (arithmetic or operations) and vecinsert.llScott Michel2007-12-193-0/+320
| | | | | | (vector insertions) llvm-svn: 45216
* Add new immed16.ll test case, fix CellSPU errata to make test case work.Scott Michel2007-12-191-0/+38
| | | | llvm-svn: 45196
* i32 immediate constant test case for CellSPUScott Michel2007-12-171-0/+70
| | | | llvm-svn: 45134
* - Restore some i8 functionality in CellSPUScott Michel2007-12-172-8/+133
| | | | | | - New test case: nand.ll llvm-svn: 45130
* Start committing working test cases for CellSPU.Scott Michel2007-12-151-0/+270
llvm-svn: 45050
OpenPOWER on IntegriCloud