Skip to content

JIT importation asserts with EnableAVX2=0 #134150

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);
    }

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions