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
Managed Return Value debug info cannot encode multi-register floating-point return values #129344
The managed return value (MRV) debug info protocol (VarLocType in cordebuginfo.h) has no encoding for values returned in two floating-point registers. This affects ICorDebugILFrame3::GetReturnValueForILOffset for types returned via multi-reg FP on Linux x64.
Type
Win x64
Unix x64
ARM64
x86
Vector128 (16B)
Ret buffer
Multi-reg (XMM0+XMM1) *
Single V0 reg
Ret buffer
Vector256 (32B)
Ret buffer
Ret buffer
Ret buffer
Ret buffer
Vector512 (64B)
Ret buffer
Ret buffer
Ret buffer
Ret buffer
Only the * case is affected. All other combinations either use the ret buffer path (stack-based encoding) or a single FP register (VLT_REG_FP).
Note: On platforms with mixed int/float multi-reg returns (SysV x64, RISC-V), a struct like ValueTuple<double, int> returns in XMM0 + RAX. VLT_REG_REG can only encode two integer registers, so the mixed case is also unsupported. Currently these calls are silently skipped (no MRV info emitted).
We might want to change things so that registers are treated uniformly, as a single enum. SysV x64 can also return structs in mixed XMM/general purpose registers, so we would end up needing VLT_REG_FP_REG and VLT_REG_REG_FP too otherwise.
In fact we probably end up with a weird encoding right now for that case, so we'll probably want to fix that as part of enabling structs.
Activity
dotnet-policy-service commentedon Jun 12, 2026
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.
jakobbotsch commentedon Jun 12, 2026
We might want to change things so that registers are treated uniformly, as a single enum. SysV x64 can also return structs in mixed XMM/general purpose registers, so we would end up needing
VLT_REG_FP_REGandVLT_REG_REG_FPtoo otherwise.In fact we probably end up with a weird encoding right now for that case, so we'll probably want to fix that as part of enabling structs.
Add TODO comments linking to tracking issue dotnet#129344
Add MRV debug info for multi-register FP/mixed struct returns on Unix…