RegAlloc: HostCall flushes all XMM regsiters
This commit is contained in:
parent
4dcd1d1859
commit
328422b740
1 changed files with 5 additions and 0 deletions
|
@ -314,6 +314,11 @@ void RegAlloc::HostCall(IR::Inst* result_def, IR::Value arg0_use, IR::Value arg1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Flush all xmm registers
|
||||||
|
for (auto xmm : any_xmm) {
|
||||||
|
ScratchRegister({xmm});
|
||||||
|
}
|
||||||
|
|
||||||
ScratchRegister({HostLoc::RSP});
|
ScratchRegister({HostLoc::RSP});
|
||||||
code->MOV(64, Gen::R(Gen::RSP), Gen::MDisp(Gen::R15, offsetof(JitState, save_host_RSP)));
|
code->MOV(64, Gen::R(Gen::RSP), Gen::MDisp(Gen::R15, offsetof(JitState, save_host_RSP)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue