abi: Add RAX to ABI_ALL_CALLER_SAVE

This commit is contained in:
MerryMage
2018-02-12 18:17:39 +00:00
parent 8756487554
commit 6c4773e85b
4 changed files with 37 additions and 19 deletions

View File

@@ -351,6 +351,7 @@ void RegAlloc::HostCall(IR::Inst* result_def, boost::optional<Argument&> arg0, b
static const std::vector<HostLoc> other_caller_save = [args_hostloc]() {
std::vector<HostLoc> ret(ABI_ALL_CALLER_SAVE.begin(), ABI_ALL_CALLER_SAVE.end());
ret.erase(std::find(ret.begin(), ret.end(), ABI_RETURN));
for (auto hostloc : args_hostloc)
ret.erase(std::find(ret.begin(), ret.end(), hostloc));