Skip to content

Missing throw on vector division on xarch #133844

Closed

Description

@dhartglassMSFT

The following code throws a DivideByZeroException with tiering, but exits without throwing under TieredCompilation=0.

Have a fix locally

using System.Numerics;
public class TestClass
{
    static int int_2819 = 0;
    static Vector<int> s_sink;
    Vector<int> v_int_93 = Vector.Create(1);
    public void Method0()
    {
        s_sink = (v_int_93 ^ v_int_93) *
            Vector.CreateHarmonicSequence(int_2819, int_2819);
    }
    public static int Main()
    {
        new TestClass().Method0();
        return 0;
    }
}

Activity

  1. added this to the 12.0.0 milestone on Sep 14, 2026
  2. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Sep 14, 2026
  3. dotnet-policy-service commented on Sep 14, 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 Oct 29, 2026
    9414b8f
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