diff options
author | Scott Michel <scottm@aero.org> | 2008-01-30 02:55:46 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-01-30 02:55:46 +0000 |
commit | bb713ae0c7d8415a814833bf271d4f1fdd776ec1 (patch) | |
tree | 7e9465759ec203e998dfb71f1668030e96e4a91b /llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp | |
parent | 9d92ce8b3a44ed72d4e267947e9676c647a84564 (diff) | |
download | bcm5719-llvm-bb713ae0c7d8415a814833bf271d4f1fdd776ec1.tar.gz bcm5719-llvm-bb713ae0c7d8415a814833bf271d4f1fdd776ec1.zip |
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.
llvm-svn: 46544
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp b/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp index 4bd8673a5b4..031e997b9c4 100644 --- a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp +++ b/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp @@ -102,7 +102,7 @@ namespace { value = (value << (32 - 7)) >> (32 - 7); assert((value >= -(1 << 8) && value <= (1 << 7) - 1) - && "Invalid s7 argument"); + && "Invalid s7 argument"); O << value; } @@ -185,7 +185,7 @@ namespace { { const MachineOperand &MO = MI->getOperand(OpNo); assert(MO.isImmediate() - && "printMemRegImmS10 first operand is not immedate"); + && "printMemRegImmS10 first operand is not immedate"); printS10ImmOperand(MI, OpNo); O << "("; printOperand(MI, OpNo+1); @@ -246,7 +246,7 @@ namespace { if (MI->getOperand(OpNo).isImmediate()) { int value = (int) MI->getOperand(OpNo).getImm(); assert((value >= 0 && value < 16) - && "Invalid negated immediate rotate 7-bit argument"); + && "Invalid negated immediate rotate 7-bit argument"); O << -value; } else { assert(0 &&"Invalid/non-immediate rotate amount in printRotateNeg7Imm"); @@ -257,7 +257,7 @@ namespace { if (MI->getOperand(OpNo).isImmediate()) { int value = (int) MI->getOperand(OpNo).getImm(); assert((value >= 0 && value < 32) - && "Invalid negated immediate rotate 7-bit argument"); + && "Invalid negated immediate rotate 7-bit argument"); O << -value; } else { assert(0 &&"Invalid/non-immediate rotate amount in printRotateNeg7Imm"); @@ -385,7 +385,7 @@ bool SPUAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, } bool SPUAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, - unsigned OpNo, + unsigned OpNo, unsigned AsmVariant, const char *ExtraCode) { if (ExtraCode && ExtraCode[0]) |