You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT: (bug) comparing a reinterpreted vector comparison result for equality returns the wrong answer #133555
usingSystem;usingSystem.Runtime.CompilerServices;usingSystem.Runtime.Intrinsics;usingSystem.Runtime.Intrinsics.X86;classProgram{[MethodImpl(MethodImplOptions.NoInlining|MethodImplOptions.AggressiveOptimization)]staticboolTest(Vector128<byte>l,Vector128<byte>r,Vector128<long>other)=>Vector128.GreaterThan(l,r).AsInt64()==other;staticvoidMain(){if(!Avx512BW.VL.IsSupported)thrownewPlatformNotSupportedException("AVX-512BW+VL is required.");// 9 > 8 in every lane, so the comparison result is AllBitsSet.Console.WriteLine(Test(Vector128.Create((byte)9),Vector128.Create((byte)8),Vector128<long>.AllBitsSet));}}
Expected
True
Actual
False
Two bit-for-bit identical vectors compare as unequal.
Platform
Windows x64 with AVX-512BW+VL, local Checked build of dotnet/runtime main (ef97eb5).
Requires EVEX codegen; DOTNET_EnableAVX512=0 produces the correct True.
Also reproduces on release .NET 11.0.100-rc.1.26420.103, and at MinOpts.
Activity
dotnet-policy-service commentedon Sep 10, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon Sep 10, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Preserve mask element granularity in SIMD transformations (dotnet#133708
EgorBo commentedon Sep 18, 2026
Affected SDK versions:
Preserve mask element granularity in SIMD transformations (dotnet#133708
[release/11.0] Preserve mask element granularity in SIMD transformati…