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

Fix SIMD intrinsics handling in crossgen2 #27853

Merged
merged 2 commits into from
Nov 13, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/tools/crossgen2/Common/JitInterface/CorInfoImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,13 @@ private uint getMethodAttribsInternal(MethodDesc method)
result |= CorInfoFlag.CORINFO_FLG_FINAL;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if READYTORUN ?

// Check for SIMD intrinsics
if (method.OwningType.IsIntrinsic && method.OwningType is MetadataType mdType &&
(mdType.Name == "Vector`1") && (mdType.Namespace == "System.Numerics"))
{
throw new RequiresRuntimeJitException("This function is using SIMD intrinsics, their size is machine specific");
}

// Check for hardware intrinsics
if (HardwareIntrinsicHelpers.IsHardwareIntrinsic(method))
{
Expand Down