[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegInfo.cpp
Misha Brukman
brukman at cs.uiuc.edu
Tue May 27 17:41:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
SparcRegInfo.cpp updated: 1.94 -> 1.95
---
Log message:
Added 'r' and 'i' annotations to instructions as SparcInstr.def has changed.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/SparcRegInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.94 llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.95
--- llvm/lib/Target/Sparc/SparcRegInfo.cpp:1.94 Mon May 26 19:02:22 2003
+++ llvm/lib/Target/Sparc/SparcRegInfo.cpp Tue May 27 17:40:34 2003
@@ -1096,7 +1096,7 @@
break;
case IntRegType:
- MI = BuildMI(V9::ADD, 3).addMReg(SrcReg).addMReg(getZeroRegNum())
+ MI = BuildMI(V9::ADDr, 3).addMReg(SrcReg).addMReg(getZeroRegNum())
.addMReg(DestReg, MOTy::Def);
break;
@@ -1132,18 +1132,21 @@
MachineInstr * MI = NULL;
switch (RegType) {
case IntRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::STX, Offset));
- MI = BuildMI(V9::STX,3).addMReg(SrcReg).addMReg(DestPtrReg).addSImm(Offset);
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::STXi, Offset));
+ MI = BuildMI(V9::STXi,3).addMReg(SrcReg).addMReg(DestPtrReg)
+ .addSImm(Offset);
break;
case FPSingleRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::ST, Offset));
- MI = BuildMI(V9::ST, 3).addMReg(SrcReg).addMReg(DestPtrReg).addSImm(Offset);
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::STFi, Offset));
+ MI = BuildMI(V9::STFi, 3).addMReg(SrcReg).addMReg(DestPtrReg)
+ .addSImm(Offset);
break;
case FPDoubleRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::STD, Offset));
- MI = BuildMI(V9::STD,3).addMReg(SrcReg).addMReg(DestPtrReg).addSImm(Offset);
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::STDFi, Offset));
+ MI = BuildMI(V9::STDFi,3).addMReg(SrcReg).addMReg(DestPtrReg)
+ .addSImm(Offset);
break;
case IntCCRegType:
@@ -1158,10 +1161,10 @@
return;
case FloatCCRegType: {
- assert(target.getInstrInfo().constantFitsInImmedField(V9::STXFSR, Offset));
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::STXFSRi, Offset));
unsigned fsrRegNum = getUnifiedRegNum(UltraSparcRegInfo::SpecialRegClassID,
SparcSpecialRegClass::fsr);
- MI = BuildMI(V9::STXFSR, 3)
+ MI = BuildMI(V9::STXFSRi, 3)
.addMReg(fsrRegNum).addMReg(DestPtrReg).addSImm(Offset);
break;
}
@@ -1188,21 +1191,21 @@
MachineInstr * MI = NULL;
switch (RegType) {
case IntRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::LDX, Offset));
- MI = BuildMI(V9::LDX, 3).addMReg(SrcPtrReg).addSImm(Offset)
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::LDXi, Offset));
+ MI = BuildMI(V9::LDXi, 3).addMReg(SrcPtrReg).addSImm(Offset)
.addMReg(DestReg, MOTy::Def);
break;
case FPSingleRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::LD, Offset));
- MI = BuildMI(V9::LD, 3).addMReg(SrcPtrReg).addSImm(Offset)
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::LDFi, Offset));
+ MI = BuildMI(V9::LDFi, 3).addMReg(SrcPtrReg).addSImm(Offset)
.addMReg(DestReg, MOTy::Def);
break;
case FPDoubleRegType:
- assert(target.getInstrInfo().constantFitsInImmedField(V9::LDD, Offset));
- MI = BuildMI(V9::LDD, 3).addMReg(SrcPtrReg).addSImm(Offset).addMReg(DestReg,
- MOTy::Def);
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::LDDFi, Offset));
+ MI = BuildMI(V9::LDDFi, 3).addMReg(SrcPtrReg).addSImm(Offset)
+ .addMReg(DestReg, MOTy::Def);
break;
case IntCCRegType:
@@ -1215,10 +1218,10 @@
break;
case FloatCCRegType: {
- assert(target.getInstrInfo().constantFitsInImmedField(V9::LDXFSR, Offset));
+ assert(target.getInstrInfo().constantFitsInImmedField(V9::LDXFSRi, Offset));
unsigned fsrRegNum = getUnifiedRegNum(UltraSparcRegInfo::SpecialRegClassID,
SparcSpecialRegClass::fsr);
- MI = BuildMI(V9::LDXFSR, 3).addMReg(SrcPtrReg).addSImm(Offset)
+ MI = BuildMI(V9::LDXFSRi, 3).addMReg(SrcPtrReg).addSImm(Offset)
.addMReg(fsrRegNum, MOTy::UseAndDef);
break;
}
@@ -1243,7 +1246,7 @@
switch( RegType ) {
case IntRegType:
- MI = BuildMI(V9::ADD, 3).addReg(Src).addMReg(getZeroRegNum())
+ MI = BuildMI(V9::ADDr, 3).addReg(Src).addMReg(getZeroRegNum())
.addRegDef(Dest);
break;
case FPSingleRegType:
More information about the llvm-commits
mailing list