Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Applying formatting patch
  • Loading branch information
tannergooding committed May 25, 2022
commit 5b7d3e4ef98efc12e4bbb0435874ee0a54da71a9
11 changes: 6 additions & 5 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7018,7 +7018,8 @@ GenTree* Compiler::gtNewZeroConNode(var_types type, CorInfoType simdBaseJitType)

GenTreeVecCon* vecCon = gtNewVconNode(type, simdBaseJitType);
vecCon->gtSimd32Val = {};
return vecCon;;
return vecCon;
;
}

GenTree* Compiler::gtNewOneConNode(var_types type)
Expand Down Expand Up @@ -21174,7 +21175,7 @@ GenTree* Compiler::gtNewSimdNarrowNode(var_types type,
// return Avx2.Permute4x64(tmp4.AsUInt64(), SHUFFLE_WYZX).As<T>();

CorInfoType opBaseJitType = (simdBaseType == TYP_SHORT) ? CORINFO_TYPE_INT : CORINFO_TYPE_UINT;
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);

tmp1 = gtNewSimdHWIntrinsicNode(type, gtNewIconNode(0x0000FFFF), NI_Vector256_Create, opBaseJitType,
simdSize, isSimdAsHWIntrinsic);
Expand Down Expand Up @@ -21214,7 +21215,7 @@ GenTree* Compiler::gtNewSimdNarrowNode(var_types type,
// return Avx2.Permute4x64(tmp3.AsUInt64(), SHUFFLE_WYZX).AsUInt32();

CorInfoType opBaseJitType = (simdBaseType == TYP_INT) ? CORINFO_TYPE_LONG : CORINFO_TYPE_ULONG;
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);

GenTree* op1Dup;
op1 = impCloneExpr(op1, &op1Dup, clsHnd, (unsigned)CHECK_SPILL_ALL,
Expand Down Expand Up @@ -21312,7 +21313,7 @@ GenTree* Compiler::gtNewSimdNarrowNode(var_types type,
// ...

CorInfoType opBaseJitType = (simdBaseType == TYP_SHORT) ? CORINFO_TYPE_INT : CORINFO_TYPE_UINT;
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);

if (compOpportunisticallyDependsOn(InstructionSet_SSE41))
{
Expand Down Expand Up @@ -21406,7 +21407,7 @@ GenTree* Compiler::gtNewSimdNarrowNode(var_types type,
// return Sse2.UnpackLow(tmp1, tmp2).As<T>();

CorInfoType opBaseJitType = (simdBaseType == TYP_INT) ? CORINFO_TYPE_LONG : CORINFO_TYPE_ULONG;
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);
CORINFO_CLASS_HANDLE clsHnd = gtGetStructHandleForSimdOrHW(type, opBaseJitType, isSimdAsHWIntrinsic);

GenTree* op1Dup;
op1 = impCloneExpr(op1, &op1Dup, clsHnd, (unsigned)CHECK_SPILL_ALL,
Expand Down
5 changes: 2 additions & 3 deletions src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,7 @@ struct GenTreeVecCon : public GenTree
};

private:
unsigned char gtSimdBaseJitType; // SIMD vector base JIT type
unsigned char gtSimdBaseJitType; // SIMD vector base JIT type

public:
CorInfoType GetSimdBaseJitType() const
Expand Down Expand Up @@ -3430,8 +3430,7 @@ struct GenTreeVecCon : public GenTree
}

GenTreeVecCon(var_types type, CorInfoType simdBaseJitType)
: GenTree(GT_CNS_VEC, type)
, gtSimdBaseJitType((unsigned char)simdBaseJitType)
: GenTree(GT_CNS_VEC, type), gtSimdBaseJitType((unsigned char)simdBaseJitType)
{
assert(varTypeIsSIMD(type));
assert(gtSimdBaseJitType == simdBaseJitType);
Expand Down