Added the 'r' and 'i' annotations to instructions as their opcode names have

changed.

llvm-svn: 6380
This commit is contained in:
Misha Brukman 2003-05-27 22:44:44 +00:00
parent 4960b8db94
commit 3da906bb36

View File

@ -90,14 +90,14 @@ struct UltraSparcInstrInfo : public TargetInstrInfo {
bool ignore;
if (this->maxImmedConstant(opCode, ignore) != 0) {
// 1st store opcode
assert(! this->isStore((MachineOpCode) V9::STB - 1)); //r
assert(! this->isStore((MachineOpCode) V9::STBr - 1));
// last store opcode
assert(! this->isStore((MachineOpCode) V9::STXFSR + 1)); //i
assert(! this->isStore((MachineOpCode) V9::STXFSRi + 1));
if (opCode == V9::SETSW || opCode == V9::SETUW ||
opCode == V9::SETX || opCode == V9::SETHI)
return 0;
if (opCode >= V9::STB && opCode <= V9::STXFSR) //r, i
if (opCode >= V9::STBr && opCode <= V9::STXFSRi)
return 2;
return 1;
}