Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 37bd5d8

Browse files
4creatorseerhardt
authored andcommitted
Enable partially implemented Intel HW intrinsics ISAs - CoreCLR part of changes
1 parent 13dfb52 commit 37bd5d8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/jit/hwintrinsicxarch.cpp

+10-4
Original file line numberDiff line numberDiff line change
@@ -540,22 +540,28 @@ GenTree* Compiler::addRangeCheckIfNeeded(NamedIntrinsic intrinsic, GenTree* last
540540
// Arguments:
541541
// isa - Instruction set
542542
// Return Value:
543-
// true - all the hardware intrinsics of "isa" are implemented in RyuJIT.
543+
// true - all the hardware intrinsics of "isa" exposed in CoreFX
544+
// System.Runtime.Intrinsics.Experimental assembly are implemented in RyuJIT.
544545
//
545546
bool Compiler::isFullyImplmentedISAClass(InstructionSet isa)
546547
{
547548
switch (isa)
548549
{
549-
case InstructionSet_SSE42:
550-
case InstructionSet_AVX:
551-
case InstructionSet_AVX2:
550+
// These ISAs have no implementation
552551
case InstructionSet_AES:
553552
case InstructionSet_BMI1:
554553
case InstructionSet_BMI2:
555554
case InstructionSet_FMA:
556555
case InstructionSet_PCLMULQDQ:
557556
return false;
558557

558+
// These ISAs are partially implemented
559+
case InstructionSet_AVX:
560+
case InstructionSet_AVX2:
561+
case InstructionSet_SSE42:
562+
return true;
563+
564+
// These ISAs are fully implemented
559565
case InstructionSet_SSE:
560566
case InstructionSet_SSE2:
561567
case InstructionSet_SSE3:

0 commit comments

Comments
 (0)