Skip to content

Commit 7b2dc26

Browse files
authored
fix ISA outerloop tests (#86705)
1 parent c7eed31 commit 7b2dc26

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/coreclr/jit/hwintrinsicxarch.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,18 +2565,23 @@ GenTree* Compiler::impSpecialIntrinsic(NamedIntrinsic intrinsic,
25652565
{
25662566
assert(sig->numArgs == 1);
25672567

2568-
op1 = impSIMDPopStack();
2569-
25702568
#if defined(TARGET_X86)
25712569
if (varTypeIsLong(simdBaseType))
25722570
{
2571+
if (!compExactlyDependsOn(InstructionSet_SSE41))
2572+
{
2573+
// We need SSE41 to handle long, use software fallback
2574+
break;
2575+
}
25732576
// Create a GetElement node which handles decomposition
2577+
op1 = impSIMDPopStack();
25742578
op2 = gtNewIconNode(0);
25752579
retNode = gtNewSimdGetElementNode(retType, op1, op2, simdBaseJitType, simdSize);
25762580
break;
25772581
}
25782582
#endif // TARGET_X86
25792583

2584+
op1 = impSIMDPopStack();
25802585
retNode = gtNewSimdHWIntrinsicNode(retType, op1, intrinsic, simdBaseJitType, simdSize);
25812586
break;
25822587
}

0 commit comments

Comments
 (0)