Skip to content

Commit

Permalink
Vector128 wrong throw helper call (dotnet#101258)
Browse files Browse the repository at this point in the history
Create<T>(Vector64<T>, Vector64<T>) should use
ThrowHelper.ThrowForUnsupportedIntrinsicsVector128BaseType<T> instead of the Vector256 one.
  • Loading branch information
AdrienHache authored Apr 19, 2024
1 parent ef465c1 commit 5661009
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ public static Vector128<T> Create<T>(Vector64<T> lower, Vector64<T> upper)
}
else
{
ThrowHelper.ThrowForUnsupportedIntrinsicsVector256BaseType<T>();
ThrowHelper.ThrowForUnsupportedIntrinsicsVector128BaseType<T>();
Unsafe.SkipInit(out Vector128<T> result);

result.SetLowerUnsafe(lower);
Expand Down

0 comments on commit 5661009

Please sign in to comment.