ARM64Emitter: Implement instructions to move data to/from SP

This commit is contained in:
Henrik Rydgard committed 2017-01-26 14:23:42 +01:00
1 parent f5cef88e14
commit a1ec735f6c
6 files changed
+25 -2

No files matched your search

+9
View File
@@ -1464,6 +1464,15 @@ void ARM64XEmitter::MOV(ARM64Reg Rd, ARM64Reg Rm)
_assert_msg_(JIT, false, "Non-GPRs not supported in MOV");
}
}
void ARM64XEmitter::MOVfromSP(ARM64Reg Rd) {
ADD(Rd, ARM64Reg::SP, 0, false);
}
void ARM64XEmitter::MOVtoSP(ARM64Reg Rn) {
ADD(ARM64Reg::SP, Rn, 0, false);
}
void ARM64XEmitter::MVN(ARM64Reg Rd, ARM64Reg Rm)
{
ORN(Rd, Is64Bit(Rd) ? ZR : WZR, Rm, ArithOption(Rm, ST_LSL, 0));