mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user