Skip to content

ARM32 JIT: Assertion failed '!"NYI: odd sized struct in fgMorphMultiregStructArg"' during 'Morph - Global' #61168

Closed
@jakobbotsch

Description

@jakobbotsch

Description

The following program hits a NYI in the ARM32 JIT.

Reproduction Steps

// Generated by Fuzzlyn v1.5 on 2021-11-03 13:28:03
// Run on Arm Linux
// Seed: 6887874265338996715
// Reduced from 122.0 KiB to 0.4 KiB in 00:02:32
// Hits JIT assert in Debug:
// Assertion failed '!"NYI: odd sized struct in fgMorphMultiregStructArg"' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Morph - Global' (IL size 20)
// 
//     File: /__w/1/s/src/coreclr/jit/morph.cpp Line: 4382
// 
public struct S0
{
    public byte F0;
    public sbyte F1;
    public bool F2;
    public byte F3;
    public byte F4;
    public byte F5;
    public sbyte F6;
}

public class Program
{
    public static S0 s_4;
    public static void Main()
    {
        ref S0 vr0 = ref s_4;
        M35(vr0);
    }

    public static void M35(S0 arg0)
    {
    }
}

Expected behavior

No assert hit

Actual behavior

Assert hit

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

cc @dotnet/jit-contrib

Metadata

Metadata

Assignees

Labels

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