More cleanups for CellSPU:

- Expand tabs... (poss 80-col violations, will get them later...)
- Consolidate logic for SelectDFormAddr and SelectDForm2Addr into a single
  function, simplifying maintenance. Also reduced custom instruction
  generation for SPUvecinsert/INSERT_MASK.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Scott Michel
2008-01-30 02:55:46 +00:00
parent 772601a885
commit 7f9ba9bb3c
18 changed files with 4947 additions and 3864 deletions

View File

@@ -35,7 +35,7 @@ namespace llvm {
inline bool isS10Constant(short Value) {
int SExtValue = ((int) Value << (32 - 10)) >> (32 - 10);
return ((Value > 0 && Value <= (1 << 9) - 1)
|| (Value < 0 && (short) SExtValue == Value));
|| (Value < 0 && (short) SExtValue == Value));
}
inline bool isS10Constant(int Value) {