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) an embedded broadcast of a runtime value hits a JIT assert when it is widened for masking #133552
usingSystem;usingSystem.Runtime.CompilerServices;usingSystem.Runtime.Intrinsics;usingSystem.Runtime.Intrinsics.X86;classProgram{// The broadcast source is a runtime load, not a constant.[MethodImpl(MethodImplOptions.NoInlining|MethodImplOptions.AggressiveOptimization)]staticunsafeVector128<double>Test(Vector128<float>v,float*p,Vector128<double>a,Vector128<double>b,Vector128<double>f){Vector128<float>anded=Sse.And(v,Vector128.Create(*p));returnVector128.ConditionalSelect(Vector128.Equals(a,b),anded.AsDouble(),f);}staticunsafevoidMain(){if(!Avx512F.VL.IsSupported)thrownewPlatformNotSupportedException("AVX-512VL is required.");floatx=1.0f;vareq=Vector128.Create(1.0);Console.WriteLine(Test(Vector128.Create(1.0f),&x,eq,eq,Vector128.Create(9.0)).AsUInt32().GetElement(0).ToString("X8"));}}
Expected
3F800000
Actual
Assert failure(PID 46276 [0x0000b4c4], Thread: 112720 [0x1b850]): Assertion failed 'constNode->OperIs(GT_CNS_INT)' in 'Program:Test(System.Runtime.Intrinsics.Vector128`1[float],ptr,System.Runtime.Intrinsics.Vector128`1[double],System.Runtime.Intrinsics.Vector128`1[double],System.Runtime.Intrinsics.Vector128`1[double]):System.Runtime.Intrinsics.Vector128`1[double]' during 'Lowering nodeinfo' (IL size 35; hash 0xbc6a6a4e; FullOpts)
File: C:\prj\runtime-main3\src\coreclr\jit\lowerxarch.cpp:10519
The same assert fires with Sse.Xor in place of Sse.And, and with the int/long forms. The Vector256 and Vector512 shapes of the same pattern instead fail an adjacent assert
(tgtMaskSize == 2, lowerxarch.cpp:10509).
Platform
Windows x64 with AVX-512VL, local Checked build of dotnet/runtime main (ef97eb5).
It currently only exists in main (12.0). The repro still fails on the shipped 11.0 RC2 SDK (11.0.100-rc.2.26467.112), while 8.0.425, 9.0.318 and 10.0.401 all behave correctly, so this is a regression introduced during the 11.0 cycle rather than a long-standing bug — 11.0 would ship with it.
Note: this comment was produced by an AI agent; the repro was re-run against all four released SDKs to confirm the results above.
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.
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
EgorBo commentedon Sep 18, 2026
@tannergooding would you consider backporting the fix from #133708 to
release/11.0?It currently only exists in
main(12.0). The repro still fails on the shipped 11.0 RC2 SDK (11.0.100-rc.2.26467.112), while 8.0.425, 9.0.318 and 10.0.401 all behave correctly, so this is a regression introduced during the 11.0 cycle rather than a long-standing bug — 11.0 would ship with it.Note: this comment was produced by an AI agent; the repro was re-run against all four released SDKs to confirm the results above.
[release/11.0] Preserve mask element granularity in SIMD transformati…