// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Runtime.CompilerServices;
using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using Xunit;

// Generated by Fuzzlyn v2.2 on 2024-08-04 16:04:50
// Run on X64 Linux
// Seed: 2207552216055442248-vectort,vector128,vector256,vector512,x86aes,x86avx,x86avx2,x86avx512bw,x86avx512bwvl,x86avx512cd,x86avx512cdvl,x86avx512dq,x86avx512dqvl,x86avx512f,x86avx512fvl,x86avx512fx64,x86avx512vbmi,x86avx512vbmivl,x86bmi1,x86bmi1x64,x86bmi2,x86bmi2x64,x86fma,x86lzcnt,x86lzcntx64,x86pclmulqdq,x86popcnt,x86popcntx64,x86sse,x86ssex64,x86sse2,x86sse2x64,x86sse3,x86sse41,x86sse41x64,x86sse42,x86sse42x64,x86ssse3,x86x86base
// Reduced from 138.4 KiB to 0.8 KiB in 00:07:16
// Hits JIT assert in Release:
// Assertion failed 'varDsc->GetRegNum() == REG_STK' in 'Program:Main(Fuzzlyn.ExecutionServer.IRuntime)' during 'Generate code' (IL size 62; hash 0xade6b36b; FullOpts)
//
//     File: /__w/1/s/src/coreclr/jit/codegenlinear.cpp Line: 1655
//

public class C0
{
    public float F3;
}

public class C2
{
    public C0 F4;
}

public class Runtime_105967
{
    [Fact]
    public static void TestEntryPoint()
    {
        if (Avx512F.IsSupported)
        {
            var vr26 = new C2();
            vr26.F4 = new C0();
            var vr29 = vr26.F4.F3;
            var vr30 = Vector512.Create<float>(vr29);
            var vr31 = Vector512.CreateScalar(-193.44424f);
            var vr32 = M17();
            var vr33 = Avx512F.Fixup(vr30, vr31, vr32, 0);
            M16(vr33, new long[] { 1 });
        }
    }

    private static void M16(Vector512<float> arg0, long[] arg2)
    {
        Assert.Equal(Vector512.Create(4286578687), arg0.AsUInt32());
    }

    private static Vector512<int> M17()
    {
        return Vector512.Create<int>(-1);
    }
}
