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] assert varTypeIsSIMD(indexedElementOpType) for AdvSimd.MultiplyBySelectedScalar with Vector64.CreateScalarUnsafe #135526
On arm64, AdvSimd.MultiplyBySelectedScalar(a, Vector64.CreateScalarUnsafe(x), 0) hits an assertion in LSRA in the Checked JIT; the Release JIT produces the correct result.
Assertion failed 'varTypeIsSIMD(indexedElementOpType)' in 'Program:Test(System.Runtime.Intrinsics.Vector64`1[float],float):System.Runtime.Intrinsics.Vector64`1[float]' during 'Linear scan register alloc'
File: src/coreclr/jit/lsraarm64.cpp:1688
Regression?
Unknown, because the assert is Checked-only. Release (.NET 10.0.12 and main) prints the expected <3, 6>.
Notes
LowerHWIntrinsic (lowerarmarch.cpp) removes NI_Vector_CreateScalarUnsafe for any HW intrinsic user except scalar FMA, so the indexed operand of a HW_Category_SIMDByIndexedElement intrinsic becomes TYP_FLOAT.
LSRA BuildHWIntrinsicImmediate (and HWIntrinsicImmOpHelper in codegen) derive the lane bounds from that operand's SIMD type.
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.