Skip to content

JIT: Assertion failed 'layout->GetType() == TYP_STRUCT' during 'Morph - Inlining' #116369

Closed
@jakobbotsch

Description

@jakobbotsch
// Generated by Fuzzlyn v3.3 on 2025-06-06 10:21:46
// Run on X64 Windows
// Seed: 1256851873714619775-async,vectort,vector128,vector256,x86aes,x86avx,x86avx2,x86bmi1,x86bmi1x64,x86bmi2,x86bmi2x64,x86fma,x86lzcnt,x86lzcntx64,x86pclmulqdq,x86pclmulqdqv256,x86popcnt,x86popcntx64,x86sse,x86ssex64,x86sse2,x86sse2x64,x86sse3,x86sse41,x86sse41x64,x86sse42,x86sse42x64,x86ssse3,x86x86base
// Reduced from 14.5 KiB to 0.3 KiB in 00:00:21
// Hits JIT assert for Release:
// Assertion failed 'layout->GetType() == TYP_STRUCT' in 'System.Threading.AsyncLocal`1[System.Nullable`1[System.Runtime.Intrinsics.Vector128`1[int]]]:get_Value():System.Nullable`1[System.Runtime.Intrinsics.Vector128`1[int]]:this' during 'Importation' (IL size 44; hash 0x78887c0d; FullOpts)
//
//     File: C:\dev\dotnet\runtime3\src\coreclr\jit\gentree.cpp Line: 8641
//
using System.Threading;
using System.Runtime.Intrinsics;

public class Program
{
    public static AsyncLocal<Vector128<int>?> s_asyncLocal7 = new AsyncLocal<Vector128<int>?>();
    public static void Main()
    {
        Vector128<int> vr0 = s_asyncLocal7.Value ??= Vector128.Create<int>(0);
    }
}

cc @dotnet/jit-contrib

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions