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

// Generated by Fuzzlyn v2.2 on 2024-07-29 22:21:51
// Run on X64 Linux
// Seed: 4430919607943821849-vectort,vector128,vector256,x86aes,x86avx,x86avx2,x86avx512bw,x86avx512bwvl,x86avx512cd,x86avx512cdvl,x86avx512dq,x86avx512dqvl,x86avx512f,x86avx512fvl,x86avx512fx64,x86bmi1,x86bmi1x64,x86bmi2,x86bmi2x64,x86fma,x86lzcnt,x86lzcntx64,x86pclmulqdq,x86popcnt,x86popcntx64,x86sse,x86ssex64,x86sse2,x86sse2x64,x86sse3,x86sse41,x86sse41x64,x86sse42,x86sse42x64,x86ssse3,x86x86base
// Reduced from 98.9 KiB to 0.6 KiB in 00:01:25
// Debug: Outputs 1
// Release: Outputs 0

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

public struct S0
{
    public ulong F1;
    public S0(ulong f1) : this()
    {
        F1 = f1;
    }
}

public class Runtime_105683
{
    public static S0 s_1;

    [Fact]
    public static void TestEntyPoint()
    {
        if (!Bmi2.X64.IsSupported)
            return;
        var vr1 = M1();
        ulong vr2 = Bmi2.X64.ZeroHighBits(vr1, s_1.F1);
        if (vr2 == 0)
            throw new InvalidOperationException();
    }

    public static ulong M1()
    {
        s_1 = new S0(1);
        return s_1.F1;
    }
}
