Skip to content
Prev Previous commit
Next Next commit
Fix SIMD
  • Loading branch information
SingleAccretion committed Apr 1, 2023
commit 8772e61718c4ece88628a175f927290b7c0b04b8
2 changes: 2 additions & 0 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22371,6 +22371,8 @@ GenTree* Compiler::gtNewSimdNarrowNode(var_types type,
// var tmp3 = Avx2.UnpackLow(tmp1, tmp2);
// return Avx2.Permute4x64(tmp3.AsUInt64(), SHUFFLE_WYZX).AsUInt32();

CorInfoType opBaseJitType = (simdBaseType == TYP_INT) ? CORINFO_TYPE_LONG : CORINFO_TYPE_ULONG;

GenTree* op1Dup = fgMakeMultiUse(&op1);
GenTree* op2Dup = fgMakeMultiUse(&op2);

Expand Down