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

Commit d9aa56f

Browse files
committed
Disabling the Math.Round, Math.Floor, and Math.Ceiling intrinsics on non-AVX machines
1 parent ff39b0f commit d9aa56f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jit/importer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19127,7 +19127,8 @@ bool Compiler::IsTargetIntrinsic(CorInfoIntrinsics intrinsicId)
1912719127
case CORINFO_INTRINSIC_Round:
1912819128
case CORINFO_INTRINSIC_Ceiling:
1912919129
case CORINFO_INTRINSIC_Floor:
19130-
return compSupports(InstructionSet_SSE41);
19130+
// TODO-XArch-CQ: Update to work on non-AVX machines: https://github.com/dotnet/coreclr/issues/15908
19131+
return compSupports(InstructionSet_SSE41) && canUseVexEncoding();
1913119132

1913219133
default:
1913319134
return false;

0 commit comments

Comments
 (0)