Skip to content

JIT: TVector.IsSupported incorrectly folds to false through ISimdVector<TVector,T> #134201

Closed

Description

@hez2010

Description

At

typeArgHnd = info.compCompHnd->getTypeInstantiationArgument(clsHnd, 0);
the importer reads the first generic argument from the class handle. After constrained dispatch, that handle still describes the interface, so it examines the container type TVector instead of the element type T.

Reproduction Steps

static bool Supported<TVector, T>() where TVector : ISimdVector<TVector, T>
    => TVector.IsSupported;

Expected behavior

Supported<Vector128<int>, int>() should returns true.

Actual behavior

Supported<Vector128<int>, int>() returns false, whereas direct Vector128<int>.IsSupported returns true.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

The import needs to obtain the element type from the resolved target's instantiation, rather than the original interface token's first generic argument.

Activity

  1. added
    untriaged
    on Sep 18, 2026
  2. changed the title [-]TVector.IsSupported incorrectly folds to false through ISimdVector<TVector,T>[/-] [+]JIT: TVector.IsSupported incorrectly folds to false through ISimdVector<TVector,T>[/+] on Sep 18, 2026
  3. added
    area-CodeGen-coreclr
    on Sep 18, 2026
  4. dotnet-policy-service commented on Sep 18, 2026

    @dotnet-policy-service
    Contributor

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

  5. added a commit that references this issue on Sep 18, 2026
    a530ff2
  6. removed
    untriaged
    on Sep 18, 2026
  7. locked and limited conversation to collaborators on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions