Skip to content

Commit

Permalink
Temporarily disable arm64-intrin. UTF-16 validation (#42064)
Browse files Browse the repository at this point in the history
Co-authored-by: Levi Broderick <[email protected]>
  • Loading branch information
github-actions[bot] and GrabYourPitchforks authored Sep 10, 2020
1 parent bb1257b commit 9e70a06
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ static Utf16Utility()
long tempUtf8CodeUnitCountAdjustment = 0;
int tempScalarCountAdjustment = 0;

if ((AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) || Sse2.IsSupported)
// Per https://github.com/dotnet/runtime/issues/41699, temporarily disabling
// ARM64-intrinsicified code paths. ARM64 platforms may still use the vectorized
// non-intrinsicified 'else' block below.

if (/* (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) || */ Sse2.IsSupported)
{
if (inputLength >= Vector128<ushort>.Count)
{
Expand Down

0 comments on commit 9e70a06

Please sign in to comment.