mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
Added the 'r' and 'i' annotations to instructions as their opcode names have
changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3432d1d1d5
commit
3c4cf15f76
@ -90,14 +90,14 @@ struct UltraSparcInstrInfo : public TargetInstrInfo {
|
|||||||
bool ignore;
|
bool ignore;
|
||||||
if (this->maxImmedConstant(opCode, ignore) != 0) {
|
if (this->maxImmedConstant(opCode, ignore) != 0) {
|
||||||
// 1st store opcode
|
// 1st store opcode
|
||||||
assert(! this->isStore((MachineOpCode) V9::STB - 1)); //r
|
assert(! this->isStore((MachineOpCode) V9::STBr - 1));
|
||||||
// last store opcode
|
// 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 ||
|
if (opCode == V9::SETSW || opCode == V9::SETUW ||
|
||||||
opCode == V9::SETX || opCode == V9::SETHI)
|
opCode == V9::SETX || opCode == V9::SETHI)
|
||||||
return 0;
|
return 0;
|
||||||
if (opCode >= V9::STB && opCode <= V9::STXFSR) //r, i
|
if (opCode >= V9::STBr && opCode <= V9::STXFSRi)
|
||||||
return 2;
|
return 2;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user