8000 Assertion failed '(insCodesMR[ins] != BAD_CODE)' during 'Generate code · Issue #115487 · dotnet/runtime · GitHub
[go: up one dir, main page]

Skip to content
Assertion failed '(insCodesMR[ins] != BAD_CODE)' during 'Generate code #115487
@kunalspathak

Description

@kunalspathak
// Found by Antigen
// Reduced from 313.92 KB to 1.05 KB.

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
using System.Runtime.Intrinsics.X86;
using System.Numerics;
public class TestClass
{
    static int s_int_13 = 0;
    static Vector128<ushort> s_v128_ushort_25 = Vector128.Create((ushort)5, 1, 1, 1, 5, 4, 53, 2);
    ushort ushort_81 = 1;
    Vector128<ushort> v128_ushort_88 = Vector128.Create((ushort)2, 53, 5, 5, 0, 1, 1, 4);
    private static List<string> toPrint = new List<string>();
    public void Method0()
    {
        unchecked
        {
            s_v128_ushort_25 = Vector128.WithElement(s_v128_ushort_25 * v128_ushort_88 ^ s_v128_ushort_25 & Vector128.MaxNative(s_v128_ushort_25, s_v128_ushort_25), s_int_13 >> s_int_13 & 3, ushort_81);
            return;
        }
    }
    public static int Main(string[] args)
    {
        return Antigen();
    }
    public static int Antigen()
    {
        new TestClass().Method0();
        return string.Join(Environment.NewLine, toPrint).GetHashCode();
    }
}
/*
Environment:

set DOTNET_TieredCompilation=0

JIT assert failed:
Assertion failed '(insCodesMR[ins] != BAD_CODE)' in 'TestClass:Method0():this' during 'Generate code' (IL size 83; hash 0x46e9aa75; MinOpts)

    File: D:\a\_work\1\s\src\coreclr\jit\emitxarch.cpp Line: 4203

*/

Related to #115348
cc: @kendall1997

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0