From 56610095196ac12a397b1acd00835db4d86849b9 Mon Sep 17 00:00:00 2001 From: AdrienHache <83088022+AdrienHache@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:51:18 +0200 Subject: [PATCH] Vector128 wrong throw helper call (#101258) Create(Vector64, Vector64) should use ThrowHelper.ThrowForUnsupportedIntrinsicsVector128BaseType instead of the Vector256 one. --- .../src/System/Runtime/Intrinsics/Vector128.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs index 66c0a47734429..3e24e591a32c1 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128.cs @@ -1041,7 +1041,7 @@ public static Vector128 Create(Vector64 lower, Vector64 upper) } else { - ThrowHelper.ThrowForUnsupportedIntrinsicsVector256BaseType(); + ThrowHelper.ThrowForUnsupportedIntrinsicsVector128BaseType(); Unsafe.SkipInit(out Vector128 result); result.SetLowerUnsafe(lower);