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: [runtime async] Assertion failed 'isScalableVectorSize(size)' during 'Generate code' #118924
// Generated by Fuzzlyn v3.3 on 2025-08-20 10:58:52// Run on Arm64 Linux// Seed: 1357987998247197787-async,runtimeasync,vectort,vector64,vector128,armadvsimd,armadvsimdarm64,armaes,armarmbase,armarmbasearm64,armcrc32,armcrc32arm64,armdp,armrdm,armrdmarm64,armsha1,armsha256,armsve,armsve2// Reduced from 80.8 KiB to 0.7 KiB in 00:00:53// Hits JIT assert for Release with Runtime Async:// Assertion failed 'isScalableVectorSize(size)' in 'Program:M0()' during 'Generate code' (IL size 98; hash 0xaf50ff37; FullOpts)// // File: /__w/1/s/src/coreclr/jit/emitarm64sve.cpp Line: 2685// usingSystem.Numerics;usingSystem.Threading.Tasks;usingSystem.Runtime.Intrinsics;usingSystem.Runtime.Intrinsics.Arm;publicclassProgram{publicstaticvoidMain(){M0().GetAwaiter().GetResult();}publicstaticasyncTaskM0(){for(intlvar0=-2147483648;lvar0<-2147483646;lvar0++){varvr1=Vector128.CreateScalar(715424757U).AsVector();varvr2=Vector.Create<uint>(0);varvr0=Sve.Or(vr1,vr2);if(1<=Sve.SaturatingIncrementByActiveElementCount(lvar0,vr0)){awaitTask.Yield();}}}}
This one is similar to #118921 -- we have a TYP_MASK typed STOREIND, created for runtime async because a TYP_MASK local is live across a suspension point:
@a74nh@tannergooding what is needed to support TYP_MASK typed STOREIND for arm64?
I think short term fix may just be to stop CSE from creating mask CSEs across suspension points. But it's possible these mask locals can end up overlapping async calls in other ways than CSE.
@a74nh@tannergooding what is needed to support TYP_MASK typed STOREIND for arm64?
I think short term fix may just be to stop CSE from creating mask CSEs across suspension points. But it's possible these mask locals can end up overlapping async calls in other ways than CSE.
Agreed that if we stop CSE from creating masks, then something else may still trigger this.
There is a store predicate instruction, so I'm going to have a look see if we can support doing the store (and load). Although there might be an issue as the immediate in the store has to be a multiple of the current vector length
Activity
dotnet-policy-service commentedon Aug 20, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
MihuBot commentedon Aug 20, 2025
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Assertion failed 'isScalableVectorSize(size)'#101786jakobbotsch commentedon Aug 21, 2025
Attached SPMI collection on fad7576
E8EAB13B.zip
jakobbotsch commentedon Aug 21, 2025
This one is similar to #118921 -- we have a
TYP_MASKtypedSTOREIND, created for runtime async because aTYP_MASKlocal is live across a suspension point:@a74nh @tannergooding what is needed to support
TYP_MASKtypedSTOREINDfor arm64?I think short term fix may just be to stop CSE from creating mask CSEs across suspension points. But it's possible these mask locals can end up overlapping async calls in other ways than CSE.
a74nh commentedon Sep 2, 2025
Agreed that if we stop CSE from creating masks, then something else may still trigger this.
There is a store predicate instruction, so I'm going to have a look see if we can support doing the store (and load). Although there might be an issue as the immediate in the store has to be a multiple of the current vector length
a74nh commentedon Sep 2, 2025
This doesn't fail for me. Does it need running in a special way? I've copied the code and am running with:
I've tried setting
DOTNET_TieredCompilation=0.I see that the SVE code gets generated in
MoveNext()jakobbotsch commentedon Sep 2, 2025
You need to build the example above with
in the csproj, with a new SDK (rc1+). Then you furthermore need to set
DOTNET_RuntimeAsync=1when running the produced assembly.Alternatively you can just use the SPMI collection I attached above.
a74nh commentedon Sep 2, 2025
Got it. This gives me the right error now.