InstSelectSimple.cpp: Give promote32 a comment. Add initial

implementation of getReg() for arguments.

MachineCodeEmitter.cpp: Fix using EBP with index, scale and no
 displacement (whew!) due to Chris.

Printer.cpp: Fix printing out index and scale in memory references.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke
2002-12-13 07:56:18 +00:00
parent 3153b35a52
commit 95780cccef
6 changed files with 58 additions and 16 deletions

View File

@@ -148,8 +148,8 @@ static void printMemReference(std::ostream &O, const MachineInstr *MI,
if (IndexReg.getReg()) {
if (NeedPlus) O << " + ";
if (IndexReg.getImmedValue() != 1)
O << IndexReg.getImmedValue() << "*";
if (Scale.getImmedValue() != 1)
O << Scale.getImmedValue() << "*";
printOp(O, IndexReg, RI);
NeedPlus = true;
}