Skip to content

IsInfinity can drop throwing side effects #132902

Description

@dhartglassMSFT

Following code correctly throws exception in TieredCompilation, does not throw with TieredCompilation=0.

gtNewSimdIsInfinityNode probably needs to respect side effects before folding.

using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
public class TestClass
{
    public static int Main(string[] args)
    {
        Vector64<int> a = Vector64<int>.Zero;
        byte idx = 2;

        Vector64.IsInfinity(AdvSimd.Arm64.MultiplyDoublingScalarBySelectedScalarSaturateHigh(a, a, idx));
        return 1;
    }
}

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIuntriagedNew issue has not been triaged by the area owner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions