Skip to content

Commit 144a33a

Browse files
Ensure NI_Vector128_AsVector128 (aka Vector128<T> AsVector128(this Vector<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
1 parent 044caf6 commit 144a33a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/coreclr/jit/hwintrinsicxarch.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,11 @@ GenTree* Compiler::impBaseIntrinsic(NamedIntrinsic intrinsic,
702702
{
703703
assert(sig->numArgs == 1);
704704
assert(HWIntrinsicInfo::BaseTypeFromFirstArg(intrinsic));
705-
assert(simdBaseJitType ==
706-
getBaseJitTypeAndSizeOfSIMDType(info.compCompHnd->getArgClass(sig, sig->args), &simdSize));
705+
706+
CorInfoType op1SimdBaseJitType =
707+
getBaseJitTypeAndSizeOfSIMDType(info.compCompHnd->getArgClass(sig, sig->args), &simdSize);
708+
709+
assert(simdBaseJitType == op1SimdBaseJitType);
707710

708711
switch (getSIMDTypeForSize(simdSize))
709712
{

0 commit comments

Comments
 (0)