mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add tSpill and tRestore to the opcodes to replace with tSTRi and tLDRi
respectively. It may be a bug that these opcodes are getting this far into machine code generation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dedec2b89d
commit
5a54516adf
@ -356,9 +356,11 @@ static void removeOperands(MachineInstr &MI, unsigned i) {
|
||||
static unsigned convertToNonSPOpcode(unsigned Opcode) {
|
||||
switch (Opcode) {
|
||||
case ARM::tLDRspi:
|
||||
case ARM::tRestore: // FIXME: Should this opcode be here?
|
||||
return ARM::tLDRi;
|
||||
|
||||
case ARM::tSTRspi:
|
||||
case ARM::tSpill: // FIXME: Should this opcode be here?
|
||||
return ARM::tSTRi;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user