Skip to content

Commit bd94b14

Browse files
authored
JIT: Only look for integer temp regs in prolog generation (dotnet#118956)
Otherwise we may end up with mask registers in this mask, and passing that to `genFindLowestBit` hits asserts. We are in any case only interested in integer registers here, so limit it to that.
1 parent 0f21477 commit bd94b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/codegencommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5035,7 +5035,7 @@ void CodeGen::genFnProlog()
50355035
const bool isOSRx64Root = false;
50365036
#endif // TARGET_AMD64
50375037

5038-
regMaskTP tempMask = initRegs & ~excludeMask & ~regSet.rsMaskResvd;
5038+
regMaskTP tempMask = initRegs & RBM_ALLINT & ~excludeMask & ~regSet.rsMaskResvd;
50395039

50405040
if (tempMask != RBM_NONE)
50415041
{

0 commit comments

Comments
 (0)