Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/coreclr/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2526,8 +2526,8 @@ regMaskTP CodeGenInterface::genGetGSCookieTempRegs(bool tailCall)
// leaves rax, r10, r11. rax and r11 are used for indirection cells, so we pick r10.
return RBM_R10;
}
// Otherwise on x64 (win-x64 and SysV) r8 is never used for return values
return RBM_R8;
// Otherwise on x64 (win-x64, SysV and Swift) r9 is never used for return values
return RBM_R9;
#elif TARGET_X86
assert(!tailCall);
// On x86 it's more difficult: we have only eax, ecx and edx available as volatile
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ void CallArgs::AddFinalArgsAndDetermineABIInfo(Compiler* comp, GenTreeCall* call
InsertAfterThisOrFirst(comp, NewCallArg::Primitive(arg).WellKnown(WellKnownArg::PInvokeCookie));
// put destination into R10/EAX
arg = comp->gtClone(call->gtCallAddr, true);
// On x64 the pinvoke target is passed in r11 which is the same
// On x64 the pinvoke target is passed in r10 which is the same
// register as the gs cookie check may use. That would be a problem if
// this was a tailcall, but we do not tailcall functions with
// non-standard added args except indirection cells currently.
Expand Down
Loading