Skip to content

Missing throw on vector division on xarch #133844

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

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