Open
Description
Now, some hardware intrinsic can throw ArgumentOutOfRangeException
from the IMM arguments.
Avx.Compare(Avx.SetZeroVector256<float>(), Avx.SetZeroVector256<float>(), (FloatComparisonMode)100);
Unhandled Exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at System.Runtime.Intrinsics.X86.Avx.Compare(Vector256`1 left, Vector256`1 right, FloatComparisonMode mode)
at SseTest.Program.Main(String[] args) in D:\workspace\tests\testIntrinsic\Program.cs:line 14
We may need to bring the IMM parameter name in the exception object.
Logged from the conversation dotnet/coreclr#19392 (comment)
category:implementation
theme:hardware-intrinsics
skill-level:beginner
cost:small