mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Wire up the ARM MCInst printer, for llvm-mc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84600 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -534,8 +534,17 @@ bool ARMAsmParser::MatchInstruction(SmallVectorImpl<ARMOperand> &Operands,
|
||||
Mnemonic == "bl" ||
|
||||
Mnemonic == "push" ||
|
||||
Mnemonic == "blx" ||
|
||||
Mnemonic == "pop")
|
||||
Mnemonic == "pop") {
|
||||
// Hard-coded to a valid instruction, till we have a real matcher.
|
||||
Inst = MCInst();
|
||||
Inst.setOpcode(ARM::MOVr);
|
||||
Inst.addOperand(MCOperand::CreateReg(2));
|
||||
Inst.addOperand(MCOperand::CreateReg(2));
|
||||
Inst.addOperand(MCOperand::CreateImm(0));
|
||||
Inst.addOperand(MCOperand::CreateImm(0));
|
||||
Inst.addOperand(MCOperand::CreateReg(0));
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user