Skip to content

JIT importation asserts with EnableAVX2=0 #134150

Closed

Description

@dhartglassMSFT

Bad importation for IsNegative and IsPositive for FP types

With DOTNET_EnableAVX2=0, this hits Assertion failed 'comp->compIsaSupportedDebugOnly(InstructionSet_AVX2)' in 'TestClass:Method1():System.Runtime.Intrinsics.Vector2561[double]' during 'Importation`:

    [MethodImpl(MethodImplOptions.NoInlining)]
    public static Vector256<double> Method1()
    {
        return Vector256.IsNegative(s_v256_double);
    }

This gets Assertion failed '(simdSize == 16) || ((simdSize == 32) && compOpportunisticallyDependsOn(InstructionSet_AVX2))' during 'Importation':

    [MethodImpl(MethodImplOptions.NoInlining)]
    public static Vector256<float> Method81()
    {
        return Vector256.IsPositive(s_v256_float);
    }

Activity

  1. added this to the 12.0.0 milestone on Sep 17, 2026
  2. added
    area-CodeGen-coreclr
    on Sep 17, 2026
  3. dotnet-policy-service commented on Sep 17, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  4. added a commit that references this issue on Sep 18, 2026
    09b9045
  5. locked and limited conversation to collaborators on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions