mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Thumb2 assembly parsing and encoding for STR.
More addressing mode encoding bits. Handle pre increment for STR/STRB/STRH and STR(register). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5495,6 +5495,19 @@ ARMTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
|
||||
MI->dump();
|
||||
llvm_unreachable("Unexpected instr type to insert");
|
||||
}
|
||||
// The Thumb2 pre-indexed stores have the same MI operands, they just
|
||||
// define them differently in the .td files from the isel patterns, so
|
||||
// they need pseudos.
|
||||
case ARM::t2STR_preidx:
|
||||
MI->setDesc(TII->get(ARM::t2STR_PRE));
|
||||
return BB;
|
||||
case ARM::t2STRB_preidx:
|
||||
MI->setDesc(TII->get(ARM::t2STRB_PRE));
|
||||
return BB;
|
||||
case ARM::t2STRH_preidx:
|
||||
MI->setDesc(TII->get(ARM::t2STRH_PRE));
|
||||
return BB;
|
||||
|
||||
case ARM::STRi_preidx:
|
||||
case ARM::STRBi_preidx: {
|
||||
unsigned NewOpc = MI->getOpcode() == ARM::STRi_preidx ?
|
||||
|
||||
Reference in New Issue
Block a user