Skip to content

Review the list of ISAs support for which we generate detection code #33737

@tannergooding

Description

@tannergooding

We are currently generating detection code for several ISAs and allowing a few others through on R2R: https://github.com/dotnet/runtime/blob/master/src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs#L2839-L2906

One of the ISAs we generate detection code for is LZCNT and while this ISA was released on AMD chips in 2007 (Barcelona) they weren't implemented on Intel chips until 2013 (Haswell) which is the same time they released AVX2, BMI1, BMI2, and FMA3.

While it is fine to generate a check for this ISA (as it doesn't use the VEX encoding), it seems out of place when viewed in context with the other possible ISAs we could generate checks for and what we use for R2R. So it may be worth reviewing which ISAs we allow here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions