Repository navigation
Closed
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIdisabled-testThe test is disabled in source code against the issue
Milestone
Description
Had to disable them because a newly added test uses dynamic keyword. Dynamic keyword is not compatible with trimming or AOT. I'm surprised to see it in a JIT test.
03:06:58.023 Running test: _AdvSimd_ro::JIT.HardwareIntrinsics.Arm._AdvSimd.Program.AddRoundedHighNarrowingLower_Vector64_Int16()
Beginning scenario: RunBasicScenario_UnsafeRead
System.ArgumentNullException: Value cannot be null. (Parameter 'key')
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) + 0x3c8
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) + 0x10
at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.VisitSAVE(ExprBinOp) + 0x5c
at Microsoft.CSharp.RuntimeBinder.Semantics.ExprVisitorBase.Dispatch(Expr) + 0x408
at Microsoft.CSharp.RuntimeBinder.ExpressionTreeCallRewriter.Rewrite(ExprBinOp, Expression[]) + 0x6c
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore(ICSharpBinder, Expression[], DynamicMetaObject[], DynamicMetaObject&) + 0x1d4
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(ICSharpBinder, Expression[], DynamicMetaObject[], DynamicMetaObject&) + 0x58
at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(ICSharpBinder, RuntimeBinder, DynamicMetaObject[], IEnumerable`1, DynamicMetaObject) + 0x490
at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[], ReadOnlyCollection`1, LabelTarget) + 0x148
at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1, Object[]) + 0x94
at HardwareIntrinsics_Arm_ro!<BaseAddress>+0x3e90fec
at System.Reflection.DynamicInvokeInfo.InvokeWithFewArguments(IntPtr, Byte&, Byte&, Object[], BinderBundle, Boolean) + 0xd0
--- End of stack trace from previous location ---
at System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow(TargetInvocationException) + 0x18
at System.Linq.Expressions.Interpreter.MethodInfoCallInstruction.Run(InterpretedFrame) + 0x1cc
at System.Linq.Expressions.Interpreter.Interpreter.Run(InterpretedFrame) + 0x48
at System.Linq.Expressions.Interpreter.LightLambda.Run(Object[] arguments) + 0x8c
at HardwareIntrinsics_Arm_ro!<BaseAddress>+0x3ce7d60
at JIT.HardwareIntrinsics.Arm.Helpers.AddRoundedHighNarrowing[W,N](W op1, W op2) + 0xa4
at JIT.HardwareIntrinsics.Arm._AdvSimd.SimpleBinaryOpTest__AddRoundedHighNarrowingLower_Vector64_Int16.ValidateResult(Int32[] left, Int32[] right, Int16[] result, String method) + 0x90
at JIT.HardwareIntrinsics.Arm._AdvSimd.Program.AddRoundedHighNarrowingLower_Vector64_Int16() + 0x3c
at Program.<<Main>$>g__TestExecutor988|0_989(StreamWriter tempLogSw, StreamWriter statsCsvSw, Program.<>c__DisplayClass0_0&) + 0x114
03:06:58.025 Failed test: _AdvSimd_ro::JIT.HardwareIntrinsics.Arm._AdvSimd.Program.AddRoundedHighNarrowingLower_Vector64_Int16()
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIdisabled-testThe test is disabled in source code against the issue
Activity
dotnet-policy-service commentedon Jul 31, 2025
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
EgorBo commentedon Jul 31, 2025
Presumably introduced by #116914
@snickolls-arm can we remove the dynamic keyword (and never use in the future for these tests) from there? it significantly reduces coverage on NativeAOT
snickolls-arm commentedon Jul 31, 2025
Yes noted, we'll stop using this in future and remove them. It was intended to help us abstract over the different sizes of integers when writing the tests but I didn't realize the impact on NativeAOT.
We've only being trying this for SVE2 so this shouldn't be affecting the AdvSimd tests. The tests are all sharing a namespace, so I think there has been an unintended change due to overload resolution. Is it just this single case or are more intrinsics failing as well @MichalStrehovsky?
MichalStrehovsky commentedon Jul 31, 2025
Here's a sample log: https://helixr18s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-118211-merge-0fb6d4ee5eea46f89e/HardwareIntrinsics_Arm_ro/1/console.234302b0.log?helixlogtype=result&skoid=8eda00af-b5ec-4be9-b69b-0919a2338892&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2025-07-31T13%3A26%3A12Z&ske=2025-07-31T14%3A26%3A12Z&sks=b&skv=2024-11-04&sv=2024-11-04&se=2025-07-31T14%3A26%3A12Z&sr=b&sp=rl&sig=%2FJai7KM11M5BARcMpQTUeXa5lCs7Vr48xPpJQBSQP68%3D
Remove some uses of dynamic from HardwareIntrinsic test code
Remove some uses of dynamic from HardwareIntrinsic test code
Remove some uses of dynamic from HardwareIntrinsic test code (#118273)