Skip to content

Commit

Permalink
Requite SSE4.1 for Vector128.IsInteger (#111713)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored Jan 23, 2025
1 parent c5bb505 commit c74440f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/coreclr/jit/hwintrinsicxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2925,11 +2925,17 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
{
assert(sig->numArgs == 1);

if ((simdSize != 32) || compOpportunisticallyDependsOn(InstructionSet_AVX2))
if ((simdSize == 16) && !compOpportunisticallyDependsOn(InstructionSet_SSE41))
{
op1 = impSIMDPopStack();
retNode = gtNewSimdIsIntegerNode(retType, op1, simdBaseJitType, simdSize);
break;
}
if ((simdSize == 32) && !compOpportunisticallyDependsOn(InstructionSet_AVX2))
{
break;
}

op1 = impSIMDPopStack();
retNode = gtNewSimdIsIntegerNode(retType, op1, simdBaseJitType, simdSize);
break;
}

Expand Down

0 comments on commit c74440f

Please sign in to comment.