Repository navigation
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1433539
Build error leg or test failing: coreclr Pri1 Runtime Tests Run windows x64 checked - HardwareIntrinsics_X86_Avx512_r
Error Details
JIT assertion failure in emitxarch.cpp when compiling Avx512F:FusedMultiplyAddNegated under jitstress2-jitstressregs mode. The assertion validates register allocation constraints for FMA instructions with AVX-512 encoding.
Assert failure(PID 7260 [0x00001c5c], Thread: 5484 [0x156c]): Assertion failed '(op3Reg != targetReg) || (op1Reg == targetReg)' in 'System.Runtime.Intrinsics.X86.Avx512F:FusedMultiplyAddNegated(System.Runtime.Intrinsics.Vector512`1[float],System.Runtime.Intrinsics.Vector512`1[float],System.Runtime.Intrinsics.Vector512`1[float],byte):System.Runtime.Intrinsics.Vector512`1[float]' during 'Generate code' (IL size 10; hash 0x93fdea0a; FullOpts)
File: D:\a\_work\1\s\src\coreclr\jit\emitxarch.cpp:10315
Related closed issues: #114322, #106866 (same assertion pattern on ARM64/SVE, now regressed on x64 AVX-512 under stress).
Confirmed failing in builds 1433539 (2026-05-24) and 1432990 (2026-05-23). Build 1423851 succeeded between them, suggesting intermittent or recently re-introduced.
Error Message
{
"ErrorMessage": "Assertion failed '(op3Reg != targetReg) || (op1Reg == targetReg)' in 'System.Runtime.Intrinsics.X86.Avx512F:FusedMultiplyAddNegated",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Note
🔒 Integrity filter blocked 6 items
The following items were blocked because they don't meet the GitHub integrity level.
- #125825
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - [ci-scan] Known Build Error: SocketBlockingModeTransitionTests.ConnectAsync_WithBuffer_Succeeds on Android #128141
issue_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #115508
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #114358
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #104841
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #62267
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
To allow these resources, lower min-integrity in your GitHub frontmatter:
tools:
github:
min-integrity: approved # merged | approved | unapproved | noneGenerated by CI Outer-Loop Failure Scanner · ● 44.6M · ◷
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 0 |
Activity
mangod9 commentedon May 25, 2026
Dump Analysis
Dump:
corerun.exe.7260.dmp(201MB, Windows x64) from Helix job5283d7c1-a6ee-4d56-8b3e-966e1857384f, work itemHardwareIntrinsics_X86_Avx512_r, build 1433539.Crash Details
Assert:
emitxarch.cpp:10315inemitIns_SIMD_R_R_R_RMethod being compiled:
Avx512F.FusedMultiplyAddNegated(Vector512<float>, Vector512<float>, Vector512<float>, byte)— FullOpts, IL size 10, hash0x93fdea0a.Environment:
jitstress2-jitstressregs, Windows x64, AVX-512 capable hardware.Root Cause
The assert enforces a register constraint for 3-operand RMW (read-modify-write) FMA instructions. The codegen sequence is:
If
op3Reg == targetRegbutop1Reg != targetReg, step 1 overwrites the target register (which holds op3) with op1 before step 2 can read op3 — producing wrong results.Call Path
The 4-operand embedded-rounding FMA path triggers this:
The embedded-rounding FMA variant (line 1843-1869) uses
genHWIntrinsicJumpTableFallbackwhich builds a jump table over the rounding control byte. This path callsgenHWIntrinsic_R_R_R_RMdirectly with the register assignments from LSRA, without the FMA-specific register swapping that the normal 3-operand codegen path does.Why jitstress-only
Normal LSRA gives op1 a strong preference for the target register (since FMA is RMW on op1), so
op1Reg == targetRegnaturally holds and the movaps is a no-op. Underjitstress2-jitstressregs, the allocator assigns random registers, breaking this implicit assumption.Fix
The LSRA build phase for the 4-operand embedded-rounding FMA needs to mark
op2andop3asdelayFree(cannot share the target register), or the codegen at line 1865 needs to handle the case whereop3Reg == targetRegby either:movapsto save op3 before the op1→target copy213vs231vs132) that puts the memory/last operand in a position that doesn't conflictRelated Issues
dotnet-policy-service commentedon May 27, 2026
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics
See info in area-owners.md if you want to be subscribed.
jeffschwMSFT commentedon May 29, 2026
closing as this issue has not been hit since opening
[ci-scan] Enforce KBE match-count gate; document native-assert array …
[ci-scan] Enforce KBE match-count gate; document native-assert array …
JIT/x64: Route FMA embedded-rounding fallback through genFmaIntrinsic (…