Skip to content

Fix an incorrect assert #65564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
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
6 changes: 5 additions & 1 deletion src/coreclr/jit/codegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3375,7 +3375,11 @@ void CodeGen::genStructPutArgUnroll(GenTreePutArgStk* putArgNode)
#endif

unsigned size = putArgNode->GetStackByteSize();
#ifdef TARGET_X86
assert((XMM_REGSIZE_BYTES <= size) && (size <= CPBLK_UNROLL_LIMIT));
#else // !TARGET_X86
assert(size <= CPBLK_UNROLL_LIMIT);
#endif // !TARGET_X86

if (src->AsOp()->gtOp1->isUsedFromReg())
{
Expand All @@ -3399,7 +3403,7 @@ void CodeGen::genStructPutArgUnroll(GenTreePutArgStk* putArgNode)
#ifdef TARGET_X86
longTmpReg = xmmTmpReg;
#else
longTmpReg = intTmpReg;
longTmpReg = intTmpReg;
#endif

// Let's use SSE2 to be able to do 16 byte at a time with loads and stores.
Expand Down