x64ABI: enhance MOVTwo to take an offset

This lets us merge displacements into MOVTwo in trampolines.
This commit is contained in:
Fiora
2015-01-02 15:32:23 -08:00
parent 2a8936312e
commit 53b44ccb3a
3 changed files with 25 additions and 16 deletions

View File

@ -888,7 +888,7 @@ public:
void ABI_CallFunctionRR(const void *func, X64Reg reg1, X64Reg reg2);
// Helper method for the above, or can be used separately.
void MOVTwo(int bits, Gen::X64Reg dst1, Gen::X64Reg src1, Gen::X64Reg dst2, Gen::X64Reg src2);
void MOVTwo(int bits, Gen::X64Reg dst1, Gen::X64Reg src1, s32 offset, Gen::X64Reg dst2, Gen::X64Reg src2);
// Saves/restores the registers and adjusts the stack to be aligned as
// required by the ABI, where the previous alignment was as specified.