Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix base types of second paramters used in Avx.PermuteVar and Avx2.Pe…
Browse files Browse the repository at this point in the history
…rmute4x64 for float, double overloads

Fixes #19579

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
  • Loading branch information
4creators authored and jkotas committed Aug 23, 2018
1 parent 296373a commit 4efa6c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -761,22 +761,22 @@ internal Avx() { }
/// __m128 _mm_permutevar_ps (__m128 a, __m128i b)
/// VPERMILPS xmm, xmm, xmm/m128
/// </summary>
public static Vector128<float> PermuteVar(Vector128<float> left, Vector128<float> mask) { throw new PlatformNotSupportedException(); }
public static Vector128<float> PermuteVar(Vector128<float> left, Vector128<int> control) { throw new PlatformNotSupportedException(); }
/// <summary>
/// __m128d _mm_permutevar_pd (__m128d a, __m128i b)
/// VPERMILPD xmm, xmm, xmm/m128
/// </summary>
public static Vector128<double> PermuteVar(Vector128<double> left, Vector128<double> mask) { throw new PlatformNotSupportedException(); }
public static Vector128<double> PermuteVar(Vector128<double> left, Vector128<long> control) { throw new PlatformNotSupportedException(); }
/// <summary>
/// __m256 _mm256_permutevar_ps (__m256 a, __m256i b)
/// VPERMILPS ymm, ymm, ymm/m256
/// </summary>
public static Vector256<float> PermuteVar(Vector256<float> left, Vector256<float> mask) { throw new PlatformNotSupportedException(); }
public static Vector256<float> PermuteVar(Vector256<float> left, Vector256<int> control) { throw new PlatformNotSupportedException(); }
/// <summary>
/// __m256d _mm256_permutevar_pd (__m256d a, __m256i b)
/// VPERMILPD ymm, ymm, ymm/m256
/// </summary>
public static Vector256<double> PermuteVar(Vector256<double> left, Vector256<double> mask) { throw new PlatformNotSupportedException(); }
public static Vector256<double> PermuteVar(Vector256<double> left, Vector256<long> control) { throw new PlatformNotSupportedException(); }

/// <summary>
/// __m256 _mm256_rcp_ps (__m256 a)
Expand Down
8 changes: 4 additions & 4 deletions src/Common/src/CoreLib/System/Runtime/Intrinsics/X86/Avx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -922,22 +922,22 @@ public static Vector256<T> Permute2x128<T>(Vector256<T> left, Vector256<T> right
/// __m128 _mm_permutevar_ps (__m128 a, __m128i b)
/// VPERMILPS xmm, xmm, xmm/m128
/// </summary>
public static Vector128<float> PermuteVar(Vector128<float> left, Vector128<float> mask) => PermuteVar(left, mask);
public static Vector128<float> PermuteVar(Vector128<float> left, Vector128<int> control) => PermuteVar(left, control);
/// <summary>
/// __m128d _mm_permutevar_pd (__m128d a, __m128i b)
/// VPERMILPD xmm, xmm, xmm/m128
/// </summary>
public static Vector128<double> PermuteVar(Vector128<double> left, Vector128<double> mask) => PermuteVar(left, mask);
public static Vector128<double> PermuteVar(Vector128<double> left, Vector128<long> control) => PermuteVar(left, control);
/// <summary>
/// __m256 _mm256_permutevar_ps (__m256 a, __m256i b)
/// VPERMILPS ymm, ymm, ymm/m256
/// </summary>
public static Vector256<float> PermuteVar(Vector256<float> left, Vector256<float> mask) => PermuteVar(left, mask);
public static Vector256<float> PermuteVar(Vector256<float> left, Vector256<int> control) => PermuteVar(left, control);
/// <summary>
/// __m256d _mm256_permutevar_pd (__m256d a, __m256i b)
/// VPERMILPD ymm, ymm, ymm/m256
/// </summary>
public static Vector256<double> PermuteVar(Vector256<double> left, Vector256<double> mask) => PermuteVar(left, mask);
public static Vector256<double> PermuteVar(Vector256<double> left, Vector256<long> control) => PermuteVar(left, control);

/// <summary>
/// __m256 _mm256_rcp_ps (__m256 a)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1278,17 +1278,17 @@ internal Avx2() { }
/// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx)
/// VPERMD ymm, ymm/m256, imm8
/// </summary>
public static Vector256<int> PermuteVar8x32(Vector256<int> left, Vector256<int> mask) { throw new PlatformNotSupportedException(); }
public static Vector256<int> PermuteVar8x32(Vector256<int> left, Vector256<int> control) { throw new PlatformNotSupportedException(); }
/// <summary>
/// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx)
/// VPERMD ymm, ymm/m256, imm8
/// </summary>
public static Vector256<uint> PermuteVar8x32(Vector256<uint> left, Vector256<uint> mask) { throw new PlatformNotSupportedException(); }
public static Vector256<uint> PermuteVar8x32(Vector256<uint> left, Vector256<uint> control) { throw new PlatformNotSupportedException(); }
/// <summary>
/// __m256 _mm256_permutevar8x32_ps (__m256 a, __m256i idx)
/// VPERMPS ymm, ymm/m256, imm8
/// </summary>
public static Vector256<float> PermuteVar8x32(Vector256<float> left, Vector256<float> mask) { throw new PlatformNotSupportedException(); }
public static Vector256<float> PermuteVar8x32(Vector256<float> left, Vector256<int> control) { throw new PlatformNotSupportedException(); }

/// <summary>
/// __m256i _mm256_sll_epi16 (__m256i a, __m128i count)
Expand Down
6 changes: 3 additions & 3 deletions src/Common/src/CoreLib/System/Runtime/Intrinsics/X86/Avx2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,17 +1284,17 @@ public static Vector256<T> BroadcastScalarToVector256<T>(Vector128<T> value) whe
/// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx)
/// VPERMD ymm, ymm/m256, imm8
/// </summary>
public static Vector256<int> PermuteVar8x32(Vector256<int> left, Vector256<int> mask) => PermuteVar8x32(left, mask);
public static Vector256<int> PermuteVar8x32(Vector256<int> left, Vector256<int> control) => PermuteVar8x32(left, control);
/// <summary>
/// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx)
/// VPERMD ymm, ymm/m256, imm8
/// </summary>
public static Vector256<uint> PermuteVar8x32(Vector256<uint> left, Vector256<uint> mask) => PermuteVar8x32(left, mask);
public static Vector256<uint> PermuteVar8x32(Vector256<uint> left, Vector256<uint> control) => PermuteVar8x32(left, control);
/// <summary>
/// __m256 _mm256_permutevar8x32_ps (__m256 a, __m256i idx)
/// VPERMPS ymm, ymm/m256, imm8
/// </summary>
public static Vector256<float> PermuteVar8x32(Vector256<float> left, Vector256<float> mask) => PermuteVar8x32(left, mask);
public static Vector256<float> PermuteVar8x32(Vector256<float> left, Vector256<int> control) => PermuteVar8x32(left, control);

/// <summary>
/// __m256i _mm256_sll_epi16 (__m256i a, __m128i count)
Expand Down

0 comments on commit 4efa6c2

Please sign in to comment.