Skip to content

Conversation

@adamsitnik
Copy link
Member

Use "native" for .NET 8, don't use "serialize" for .NET 7.

fixes #2060
fixes #2463

cc @MichalStrehovsky

@adamsitnik adamsitnik added this to the v0.13.11 milestone Nov 14, 2023
if (HardwareIntrinsics.IsX86PopcntSupported) yield return "popcnt";
if (HardwareIntrinsics.IsX86AvxVnniSupported) yield return "avxvnni";
if (HardwareIntrinsics.IsX86SerializeSupported) yield return "serialize";
if (HardwareIntrinsics.IsX86SerializeSupported && runtimeMoniker > RuntimeMoniker.NativeAot70) yield return "serialize"; // https://github.com/dotnet/BenchmarkDotNet/issues/2463#issuecomment-1809625008
Copy link
Member

Choose a reason for hiding this comment

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

This list is missing intrinsics added in .NET 8 but maybe that's not relevant if this is for 7 and below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. But as you wrote, it's not relevant if we use "native" in .NET 8

@adamsitnik adamsitnik merged commit e93b2b1 into master Nov 14, 2023
@adamsitnik adamsitnik deleted the nativeAot7Serialize branch November 14, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants