dotnet / dotnet/runtime

Missing throw on vector division on xarch

Open
#133,844 1 comment 0 reactions 1 assignee Claimed by @dhartglassMSFT View on GitHub
area-CodeGen-coreclr
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

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 s_sink;
Vector 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;
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.