Skip to content

Assertion failed 'block->bbNatLoopNum == loopNum' during 'Optimize Valnum CSEs' #74739

@jakobbotsch

Description

@jakobbotsch
// Generated by Fuzzlyn v1.6 on 2022-08-28 15:37:22
// Run on Arm64 Linux
// Seed: 12944707798274443197
// Reduced from 38.4 KiB to 0.5 KiB in 00:01:30
// Hits JIT assert in Release:
// Assertion failed 'block->bbNatLoopNum == loopNum' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Optimize Valnum CSEs' (IL size 58; hash 0xade6b36b; FullOpts)
// 
//     File: /__w/1/s/src/coreclr/jit/fgdiagnostic.cpp Line: 3935
// 
public class Program
{
    public static ushort[] s_4;
    public static short s_23;
    public static void Main()
    {
        try
        {
            for (int vr0 = 0; vr0 < 2; vr0++)
            {
                for (int vr1 = 0; vr1 < 1; vr1++)
                {
                    s_23 = (short)(s_4[0] % -3635746572523657308L);
                }
            }
        }
        finally
        {
            M19();
        }
    }

    public static bool M19()
    {
        return default(bool);
    }
}

Saw several of these on arm64 only.

cc @dotnet/jit-contrib

Build Information

Build: https://dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_build/results?buildId=1970696
Build error leg or test failing: Exploratory Linux arm64 checked coreclr JIT / Summarize (Linux arm64)
Pull request: #73233

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "// Assertion failed 'block->bbNatLoopNum == loopNum' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Optimize Valnum CSEs' (IL size 67; hash 0xade6b36b; FullOpts)",
  "BuildRetry": false
}

Metadata

Metadata

Assignees

Labels

arch-arm64area-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