Scott Michel | 6461bbf | 2007-03-28 17:04:43 +0000 | [diff] [blame] | 1 | //===- README.txt - Notes for improving CellSPU-specific code gen ---------===// |
| 2 | |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 3 | This code was contributed by a team from the Computer Systems Research |
| 4 | Department in The Aerospace Corporation: |
| 5 | |
| 6 | - Scott Michel (head bottle washer and much of the non-floating point |
| 7 | instructions) |
| 8 | - Mark Thomas (floating point instructions) |
| 9 | - Michael AuYeung (intrinsics) |
| 10 | - Chandler Carruth (LLVM expertise) |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 11 | - Nehal Desai (debugging, i32 operations, RoadRunner SPU expertise) |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 12 | |
Kalle Raiskila | 021b5ef | 2010-05-07 18:06:28 +0000 | [diff] [blame] | 13 | Some minor fixes added by Kalle Raiskila. |
| 14 | |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR |
| 18 | OTHERWISE. IN NO EVENT SHALL THE AEROSPACE CORPORATION BE LIABLE FOR DAMAGES |
| 19 | OF ANY KIND OR NATURE WHETHER BASED IN CONTRACT, TORT, OR OTHERWISE ARISING |
| 20 | OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE INCLUDING, WITHOUT |
| 21 | LIMITATION, DAMAGES RESULTING FROM LOST OR CONTAMINATED DATA, LOST PROFITS OR |
| 22 | REVENUE, COMPUTER MALFUNCTION, OR FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, |
| 23 | OR PUNITIVE DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR |
Misha Brukman | e9dd47a | 2008-12-29 20:08:23 +0000 | [diff] [blame] | 24 | SUCH DAMAGES ARE FORESEEABLE. |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 25 | |
| 26 | --------------------------------------------------------------------------- |
Scott Michel | b216a1b | 2007-12-05 02:01:41 +0000 | [diff] [blame] | 27 | --WARNING--: |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 28 | --WARNING--: The CellSPU work is work-in-progress and "alpha" quality code. |
Scott Michel | b216a1b | 2007-12-05 02:01:41 +0000 | [diff] [blame] | 29 | --WARNING--: |
| 30 | |
| 31 | If you are brave enough to try this code or help to hack on it, be sure |
| 32 | to add 'spu' to configure's --enable-targets option, e.g.: |
| 33 | |
Scott Michel | 7f9ba9b | 2008-01-30 02:55:46 +0000 | [diff] [blame] | 34 | ./configure <your_configure_flags_here> \ |
| 35 | --enable-targets=x86,x86_64,powerpc,spu |
Scott Michel | b216a1b | 2007-12-05 02:01:41 +0000 | [diff] [blame] | 36 | |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 37 | --------------------------------------------------------------------------- |
| 38 | |
Scott Michel | 6461bbf | 2007-03-28 17:04:43 +0000 | [diff] [blame] | 39 | TODO: |
Scott Michel | 939e3a7 | 2009-01-06 03:51:14 +0000 | [diff] [blame] | 40 | * Create a machine pass for performing dual-pipeline scheduling specifically |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 41 | for CellSPU, and insert branch prediction instructions as needed. |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 42 | |
Scott Michel | 939e3a7 | 2009-01-06 03:51:14 +0000 | [diff] [blame] | 43 | * i32 instructions: |
| 44 | |
| 45 | * i32 division (work-in-progress) |
| 46 | |
| 47 | * i64 support (see i64operations.c test harness): |
| 48 | |
| 49 | * shifts and comparison operators: done |
| 50 | * sign and zero extension: done |
| 51 | * addition: done |
| 52 | * subtraction: needed |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 53 | * multiplication: done |
Scott Michel | 939e3a7 | 2009-01-06 03:51:14 +0000 | [diff] [blame] | 54 | |
| 55 | * i128 support: |
| 56 | |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 57 | * zero extension, any extension: done |
Kalle Raiskila | 5106b84 | 2011-01-20 15:49:06 +0000 | [diff] [blame] | 58 | * sign extension: done |
Scott Michel | 939e3a7 | 2009-01-06 03:51:14 +0000 | [diff] [blame] | 59 | * arithmetic operators (add, sub, mul, div): needed |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 60 | * logical operations (and, or, shl, srl, sra, xor, nor, nand): needed |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 61 | |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 62 | * or: done |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 63 | |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 64 | * f64 support |
| 65 | |
| 66 | * Comparison operators: |
| 67 | SETOEQ unimplemented |
| 68 | SETOGT unimplemented |
| 69 | SETOGE unimplemented |
| 70 | SETOLT unimplemented |
| 71 | SETOLE unimplemented |
| 72 | SETONE unimplemented |
| 73 | SETO done (lowered) |
| 74 | SETUO done (lowered) |
| 75 | SETUEQ unimplemented |
| 76 | SETUGT unimplemented |
| 77 | SETUGE unimplemented |
| 78 | SETULT unimplemented |
| 79 | SETULE unimplemented |
| 80 | SETUNE unimplemented |
| 81 | |
| 82 | * LLVM vector suport |
| 83 | |
| 84 | * VSETCC needs to be implemented. It's pretty straightforward to code, but |
| 85 | needs implementation. |
Scott Michel | f2a2416 | 2007-12-03 23:09:49 +0000 | [diff] [blame] | 86 | |
| 87 | * Intrinsics |
| 88 | |
Scott Michel | d1e8d9c | 2009-01-21 04:58:48 +0000 | [diff] [blame] | 89 | * spu.h instrinsics added but not tested. Need to have an operational |
| 90 | llvm-spu-gcc in order to write a unit test harness. |
Scott Michel | 6461bbf | 2007-03-28 17:04:43 +0000 | [diff] [blame] | 91 | |
| 92 | ===-------------------------------------------------------------------------=== |