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) [ARM64] LSRA consecutive-register wraparound filter accepts V31,V0,V1 while V1 is busy (assert "Not sufficient consecutive registers available") #135508
LinearScan::filterConsecutiveCandidates accepts a wraparound start register even when the sequence includes a busy register. Checked JITs then assert. Release JITs silently fall back to MinOpts.
14034272802312799429, which is also what DOTNET_JITMinOpts=1 prints.
Actual
Assertion failed '!"Not sufficient consecutive registers available."' in 'Program:Test(System.Runtime.Intrinsics.Vector128`1[byte],System.Runtime.Intrinsics.Vector128`1[byte],System.Runtime.Intrinsics.Vector128`1[byte],byte[]):ulong' during 'LSRA build intervals' (IL size 278; hash 0xf75fa69d; FullOpts)
File: src/coreclr/jit/lsra.cpp:13742
Regression?
No. On .NET 10.0.12 (Release), the same noway_assert silently makes Test fall back to MinOpts.
Notes
filterConsecutiveCandidates (lsraarm64.cpp) checks wraparound sequences with (floatCandidates & mask) != RBM_NONE instead of == mask. With V31 and V0 free, it accepts V31 as the start of a 3-register sequence even though V1 (holding def, in use at the tbx) isn't a candidate.
The 4-register wraparound masks are copy-pasted (all three are V0|V29|V30|V31), so starts V30 and V31 are never validated against the right registers.
The same code is used by the SVE multi-register APIs (Sve.StoreAndZip, Sve.Load3xVectorAndUnzip/Load4xVectorAndUnzip).
Activity
dotnet-policy-service commentedon Oct 9, 2026
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
Arm64: Fix consecutive register wraparound (dotnet#136642)