mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
ARM IAS: support .movsp
.movsp is an ARM unwinding directive that indicates to the unwinder that a register contains an offset from the current stack pointer. If the offset is unspecified, it defaults to zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1091,11 +1091,11 @@ void ARMAsmPrinter::EmitUnwindingInstruction(const MachineInstr *MI) {
|
||||
// instruction.
|
||||
ATS.emitPad(Offset);
|
||||
} else {
|
||||
MI->dump();
|
||||
llvm_unreachable("Unsupported opcode for unwinding information");
|
||||
// Move of SP to a register. Positive values correspond to an "add"
|
||||
// instruction.
|
||||
ATS.emitMovSP(DstReg, -Offset);
|
||||
}
|
||||
} else if (DstReg == ARM::SP) {
|
||||
// FIXME: .movsp goes here
|
||||
MI->dump();
|
||||
llvm_unreachable("Unsupported opcode for unwinding information");
|
||||
}
|
||||
|
Reference in New Issue
Block a user