Skip to content

Commit

Permalink
Ensure NI_Vector128_AsVector128 (aka `Vector128<T> AsVector128(this V…
Browse files Browse the repository at this point in the history
…ector<T> value)`) doesn't have a side-effect in its assert (#76460)

* Ensure NI_Vector128_AsVector128 (aka `Vector128<T> AsVector128(this Vector<T> value)`) doesn't have a side-effect in its assert

* CorInfoType no var_types
  • Loading branch information
tannergooding committed Oct 2, 2022
1 parent 044caf6 commit 144a33a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coreclr/jit/hwintrinsicxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,11 @@ GenTree* Compiler::impBaseIntrinsic(NamedIntrinsic intrinsic,
{
assert(sig->numArgs == 1);
assert(HWIntrinsicInfo::BaseTypeFromFirstArg(intrinsic));
assert(simdBaseJitType ==
getBaseJitTypeAndSizeOfSIMDType(info.compCompHnd->getArgClass(sig, sig->args), &simdSize));

CorInfoType op1SimdBaseJitType =
getBaseJitTypeAndSizeOfSIMDType(info.compCompHnd->getArgClass(sig, sig->args), &simdSize);

assert(simdBaseJitType == op1SimdBaseJitType);

switch (getSIMDTypeForSize(simdSize))
{
Expand Down

0 comments on commit 144a33a

Please sign in to comment.