Skip to content

Arm64 SVE: Error when ConditionalSelect has all constant arguments #116847

@a74nh

Description

@a74nh
Contributor
    static Vector<int> ConditionalSelect1CC()
    {
        return Sve.ConditionalSelect(
            Sve.CreateTrueMaskInt32(SveMaskPattern.VectorCount1),
            Vector.Create<int>(3),
            Vector.Create<int>(4)
        );
    }
Assert failure(PID 1207671 [0x00126d77], Thread: 1207671 [0x126d77]): Assertion failed 'OperIs(GT_CNS_VEC)' in 'ConditionalSelectConstants:ConditionalSelect1CC():System.Numerics.Vector`1[int]' during 'Morph - Global' (IL size 24; hash 0x36e039d8; FullOpts)

    File: /mnt/sdb/home/alahay01/dotnet/runtime_sve/src/coreclr/jit/gtstructs.h:64
    Image: /mnt/sdb/home/alahay01/dotnet/runtime_sve/artifacts/tests/coreclr/linux.arm64.Checked/Tests/Core_Root/corerun

This is because since #115566 the mask in arg is imported as a constant mask. This now triggers the constant folding in gtFoldExprHWIntrinsic().

Activity

self-assigned this
on Jun 20, 2025
added
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
on Jun 20, 2025
dotnet-policy-service

dotnet-policy-service commented on Jun 20, 2025

@dotnet-policy-service
Contributor

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

added a commit that references this issue on Jun 20, 2025
7835f72
added
in-prThere is an active PR which will close this issue when it is merged
and removed
untriagedNew issue has not been triaged by the area owner
on Jun 20, 2025
added this to the 10.0.0 milestone on Jun 23, 2025
added a commit that references this issue on Jul 3, 2025
4a06ac3
locked and limited conversation to collaborators on Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @a74nh@JulieLeeMSFT

    Issue actions

      Arm64 SVE: Error when ConditionalSelect has all constant arguments · Issue #116847 · dotnet/runtime