Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ceb0a80

Browse files
committed
Merge pull request #3087 from sivarv/master
Fix to SquareRootUInt16 test failure under JitStress=1/2
2 parents f087eb3 + e9ab14a commit ceb0a80

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/jit/gschecks.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void Compiler::gsParamsToShadows()
405405
}
406406

407407
if (!varDsc->lvIsPtr && !varDsc->lvIsUnsafeBuffer)
408-
{
408+
{
409409
continue;
410410
}
411411

@@ -414,7 +414,18 @@ void Compiler::gsParamsToShadows()
414414
// Copy some info
415415

416416
var_types type = varTypeIsSmall(varDsc->TypeGet()) ? TYP_INT : varDsc->TypeGet();
417-
lvaTable[shadowVar].lvType = type;
417+
lvaTable[shadowVar].lvType = type;
418+
419+
#ifdef FEATURE_SIMD
420+
lvaTable[shadowVar].lvSIMDType = varDsc->lvSIMDType;
421+
lvaTable[shadowVar].lvUsedInSIMDIntrinsic = varDsc->lvUsedInSIMDIntrinsic;
422+
if (varDsc->lvSIMDType)
423+
{
424+
lvaTable[shadowVar].lvBaseType = varDsc->lvBaseType;
425+
}
426+
#endif
427+
lvaTable[shadowVar].lvRegStruct = varDsc->lvRegStruct;
428+
418429
lvaTable[shadowVar].lvAddrExposed = varDsc->lvAddrExposed;
419430
lvaTable[shadowVar].lvDoNotEnregister = varDsc->lvDoNotEnregister;
420431
#ifdef DEBUG

0 commit comments

Comments
 (0)