From 92498ca4e16abb01ead0db9d7fb2ba27da05e63b Mon Sep 17 00:00:00 2001 From: Fei Peng Date: Thu, 15 Nov 2018 14:44:55 -0800 Subject: [PATCH] Remove legacy 64-bit intrinsic APIs --- .../Intrinsics/X86/Bmi1.PlatformNotSupported.cs | 36 +-------------- .../shared/System/Runtime/Intrinsics/X86/Bmi1.cs | 36 +-------------- .../Intrinsics/X86/Bmi2.PlatformNotSupported.cs | 20 --------- .../shared/System/Runtime/Intrinsics/X86/Bmi2.cs | 20 --------- .../Intrinsics/X86/Lzcnt.PlatformNotSupported.cs | 5 --- .../shared/System/Runtime/Intrinsics/X86/Lzcnt.cs | 5 --- .../Intrinsics/X86/Popcnt.PlatformNotSupported.cs | 9 +--- .../shared/System/Runtime/Intrinsics/X86/Popcnt.cs | 5 --- .../Intrinsics/X86/Sse.PlatformNotSupported.cs | 15 ------- .../shared/System/Runtime/Intrinsics/X86/Sse.cs | 15 ------- .../Intrinsics/X86/Sse2.PlatformNotSupported.cs | 48 +------------------- .../shared/System/Runtime/Intrinsics/X86/Sse2.cs | 52 +++------------------- .../Intrinsics/X86/Sse41.PlatformNotSupported.cs | 20 --------- .../shared/System/Runtime/Intrinsics/X86/Sse41.cs | 20 --------- .../Intrinsics/X86/Sse42.PlatformNotSupported.cs | 5 --- .../shared/System/Runtime/Intrinsics/X86/Sse42.cs | 5 --- 16 files changed, 10 insertions(+), 306 deletions(-) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.PlatformNotSupported.cs index 4756d9c..ec2f547 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.PlatformNotSupported.cs @@ -78,75 +78,41 @@ namespace System.Runtime.Intrinsics.X86 /// ANDN r32a, r32b, reg/m32 /// public static uint AndNot(uint left, uint right) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _andn_u64 (unsigned __int64 a, unsigned __int64 b) - /// ANDN r64a, r64b, reg/m64 - /// - public static ulong AndNot(ulong left, ulong right) { throw new PlatformNotSupportedException(); } /// /// unsigned int _bextr_u32 (unsigned int a, unsigned int start, unsigned int len) /// BEXTR r32a, reg/m32, r32b /// public static uint BitFieldExtract(uint value, byte start, byte length) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _bextr_u64 (unsigned __int64 a, unsigned int start, unsigned int len) - /// BEXTR r64a, reg/m64, r64b - /// - public static ulong BitFieldExtract(ulong value, byte start, byte length) { throw new PlatformNotSupportedException(); } + /// /// unsigned int _bextr2_u32 (unsigned int a, unsigned int control) /// BEXTR r32a, reg/m32, r32b /// public static uint BitFieldExtract(uint value, ushort control) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _bextr2_u64 (unsigned __int64 a, unsigned __int64 control) - /// BEXTR r64a, reg/m64, r64b - /// - public static ulong BitFieldExtract(ulong value, ushort control) { throw new PlatformNotSupportedException(); } /// /// unsigned int _blsi_u32 (unsigned int a) /// BLSI reg, reg/m32 /// public static uint ExtractLowestSetBit(uint value) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _blsi_u64 (unsigned __int64 a) - /// BLSI reg, reg/m64 - /// - public static ulong ExtractLowestSetBit(ulong value) { throw new PlatformNotSupportedException(); } /// /// unsigned int _blsmsk_u32 (unsigned int a) /// BLSMSK reg, reg/m32 /// public static uint GetMaskUpToLowestSetBit(uint value) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _blsmsk_u64 (unsigned __int64 a) - /// BLSMSK reg, reg/m64 - /// - public static ulong GetMaskUpToLowestSetBit(ulong value) { throw new PlatformNotSupportedException(); } /// /// unsigned int _blsr_u32 (unsigned int a) /// BLSR reg, reg/m32 /// public static uint ResetLowestSetBit(uint value) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _blsr_u64 (unsigned __int64 a) - /// BLSR reg, reg/m64 - /// - public static ulong ResetLowestSetBit(ulong value) { throw new PlatformNotSupportedException(); } /// /// int _mm_tzcnt_32 (unsigned int a) /// TZCNT reg, reg/m32 /// public static uint TrailingZeroCount(uint value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_tzcnt_64 (unsigned __int64 a) - /// TZCNT reg, reg/m64 - /// - public static ulong TrailingZeroCount(ulong value) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.cs index b75e2da..859252a 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi1.cs @@ -78,75 +78,41 @@ namespace System.Runtime.Intrinsics.X86 /// ANDN r32a, r32b, reg/m32 /// public static uint AndNot(uint left, uint right) => AndNot(left, right); - /// - /// unsigned __int64 _andn_u64 (unsigned __int64 a, unsigned __int64 b) - /// ANDN r64a, r64b, reg/m64 - /// - public static ulong AndNot(ulong left, ulong right) => AndNot(left, right); /// /// unsigned int _bextr_u32 (unsigned int a, unsigned int start, unsigned int len) /// BEXTR r32a, reg/m32, r32b /// public static uint BitFieldExtract(uint value, byte start, byte length) => BitFieldExtract(value, start, length); - /// - /// unsigned __int64 _bextr_u64 (unsigned __int64 a, unsigned int start, unsigned int len) - /// BEXTR r64a, reg/m64, r64b - /// - public static ulong BitFieldExtract(ulong value, byte start, byte length) => BitFieldExtract(value, start, length); + /// /// unsigned int _bextr2_u32 (unsigned int a, unsigned int control) /// BEXTR r32a, reg/m32, r32b /// public static uint BitFieldExtract(uint value, ushort control) => BitFieldExtract(value, control); - /// - /// unsigned __int64 _bextr2_u64 (unsigned __int64 a, unsigned __int64 control) - /// BEXTR r64a, reg/m64, r64b - /// - public static ulong BitFieldExtract(ulong value, ushort control) => BitFieldExtract(value, control); /// /// unsigned int _blsi_u32 (unsigned int a) /// BLSI reg, reg/m32 /// public static uint ExtractLowestSetBit(uint value) => ExtractLowestSetBit(value); - /// - /// unsigned __int64 _blsi_u64 (unsigned __int64 a) - /// BLSI reg, reg/m64 - /// - public static ulong ExtractLowestSetBit(ulong value) => ExtractLowestSetBit(value); /// /// unsigned int _blsmsk_u32 (unsigned int a) /// BLSMSK reg, reg/m32 /// public static uint GetMaskUpToLowestSetBit(uint value) => GetMaskUpToLowestSetBit(value); - /// - /// unsigned __int64 _blsmsk_u64 (unsigned __int64 a) - /// BLSMSK reg, reg/m64 - /// - public static ulong GetMaskUpToLowestSetBit(ulong value) => GetMaskUpToLowestSetBit(value); /// /// unsigned int _blsr_u32 (unsigned int a) /// BLSR reg, reg/m32 /// public static uint ResetLowestSetBit(uint value) => ResetLowestSetBit(value); - /// - /// unsigned __int64 _blsr_u64 (unsigned __int64 a) - /// BLSR reg, reg/m64 - /// - public static ulong ResetLowestSetBit(ulong value) => ResetLowestSetBit(value); /// /// int _mm_tzcnt_32 (unsigned int a) /// TZCNT reg, reg/m32 /// public static uint TrailingZeroCount(uint value) => TrailingZeroCount(value); - /// - /// __int64 _mm_tzcnt_64 (unsigned __int64 a) - /// TZCNT reg, reg/m64 - /// - public static ulong TrailingZeroCount(ulong value) => TrailingZeroCount(value); } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.PlatformNotSupported.cs index 033f055..fd0a2d8 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.PlatformNotSupported.cs @@ -57,43 +57,23 @@ namespace System.Runtime.Intrinsics.X86 /// BZHI r32a, reg/m32, r32b /// public static uint ZeroHighBits(uint value, uint index) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _bzhi_u64 (unsigned __int64 a, unsigned int index) - /// BZHI r64a, reg/m32, r64b - /// - public static ulong ZeroHighBits(ulong value, ulong index) { throw new PlatformNotSupportedException(); } /// /// unsigned int _mulx_u32 (unsigned int a, unsigned int b, unsigned int* hi) /// MULX r32a, r32b, reg/m32 /// public static unsafe uint MultiplyNoFlags(uint left, uint right, uint* high) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _mulx_u64 (unsigned __int64 a, unsigned __int64 b, unsigned __int64* hi) - /// MULX r64a, r64b, reg/m64 - /// - public static unsafe ulong MultiplyNoFlags(ulong left, ulong right, ulong* high) { throw new PlatformNotSupportedException(); } /// /// unsigned int _pdep_u32 (unsigned int a, unsigned int mask) /// PDEP r32a, r32b, reg/m32 /// public static uint ParallelBitDeposit(uint value, uint mask) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _pdep_u64 (unsigned __int64 a, unsigned __int64 mask) - /// PDEP r64a, r64b, reg/m64 - /// - public static ulong ParallelBitDeposit(ulong value, ulong mask) { throw new PlatformNotSupportedException(); } /// /// unsigned int _pext_u32 (unsigned int a, unsigned int mask) /// PEXT r32a, r32b, reg/m32 /// public static uint ParallelBitExtract(uint value, uint mask) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _pext_u64 (unsigned __int64 a, unsigned __int64 mask) - /// PEXT r64a, r64b, reg/m64 - /// - public static ulong ParallelBitExtract(ulong value, ulong mask) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.cs index a3360bd..f535e0a 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Bmi2.cs @@ -57,43 +57,23 @@ namespace System.Runtime.Intrinsics.X86 /// BZHI r32a, reg/m32, r32b /// public static uint ZeroHighBits(uint value, uint index) => ZeroHighBits(value, index); - /// - /// unsigned __int64 _bzhi_u64 (unsigned __int64 a, unsigned int index) - /// BZHI r64a, reg/m32, r64b - /// - public static ulong ZeroHighBits(ulong value, ulong index) => ZeroHighBits(value, index); /// /// unsigned int _mulx_u32 (unsigned int a, unsigned int b, unsigned int* hi) /// MULX r32a, r32b, reg/m32 /// public static unsafe uint MultiplyNoFlags(uint left, uint right, uint* high) => MultiplyNoFlags(left, right, high); - /// - /// unsigned __int64 _mulx_u64 (unsigned __int64 a, unsigned __int64 b, unsigned __int64* hi) - /// MULX r64a, r64b, reg/m64 - /// - public static unsafe ulong MultiplyNoFlags(ulong left, ulong right, ulong* high) => MultiplyNoFlags(left, right, high); /// /// unsigned int _pdep_u32 (unsigned int a, unsigned int mask) /// PDEP r32a, r32b, reg/m32 /// public static uint ParallelBitDeposit(uint value, uint mask) => ParallelBitDeposit(value, mask); - /// - /// unsigned __int64 _pdep_u64 (unsigned __int64 a, unsigned __int64 mask) - /// PDEP r64a, r64b, reg/m64 - /// - public static ulong ParallelBitDeposit(ulong value, ulong mask) => ParallelBitDeposit(value, mask); /// /// unsigned int _pext_u32 (unsigned int a, unsigned int mask) /// PEXT r32a, r32b, reg/m32 /// public static uint ParallelBitExtract(uint value, uint mask) => ParallelBitExtract(value, mask); - /// - /// unsigned __int64 _pext_u64 (unsigned __int64 a, unsigned __int64 mask) - /// PEXT r64a, r64b, reg/m64 - /// - public static ulong ParallelBitExtract(ulong value, ulong mask) => ParallelBitExtract(value, mask); } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.PlatformNotSupported.cs index 3ae39ed..7c3bf30 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.PlatformNotSupported.cs @@ -35,10 +35,5 @@ namespace System.Runtime.Intrinsics.X86 /// LZCNT reg, reg/m32 /// public static uint LeadingZeroCount(uint value) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _lzcnt_u64 (unsigned __int64 a) - /// LZCNT reg, reg/m64 - /// - public static ulong LeadingZeroCount(ulong value) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.cs index 0f1b8cf..b648ee8 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Lzcnt.cs @@ -36,10 +36,5 @@ namespace System.Runtime.Intrinsics.X86 /// LZCNT reg, reg/m32 /// public static uint LeadingZeroCount(uint value) => LeadingZeroCount(value); - /// - /// unsigned __int64 _lzcnt_u64 (unsigned __int64 a) - /// LZCNT reg, reg/m64 - /// - public static ulong LeadingZeroCount(ulong value) => LeadingZeroCount(value); } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs index 1ca46a2..830e32a 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.PlatformNotSupported.cs @@ -19,13 +19,13 @@ namespace System.Runtime.Intrinsics.X86 public new abstract class X64 : Sse41.X64 { internal X64() { } - public new static bool IsSupported { get => IsSupported; } + public new static bool IsSupported { get { return false; } } /// /// __int64 _mm_popcnt_u64 (unsigned __int64 a) /// POPCNT reg64, reg/m64 /// This intrinisc is only available on 64-bit processes /// - public static ulong PopCount(ulong value) => PopCount(value); + public static ulong PopCount(ulong value) { throw new PlatformNotSupportedException(); } } /// @@ -33,10 +33,5 @@ namespace System.Runtime.Intrinsics.X86 /// POPCNT reg, reg/m32 /// public static uint PopCount(uint value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_popcnt_u64 (unsigned __int64 a) - /// POPCNT reg64, reg/m64 - /// - public static ulong PopCount(ulong value) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs index c5dd18c..60d2899 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Popcnt.cs @@ -34,10 +34,5 @@ namespace System.Runtime.Intrinsics.X86 /// POPCNT reg, reg/m32 /// public static uint PopCount(uint value) => PopCount(value); - /// - /// __int64 _mm_popcnt_u64 (unsigned __int64 a) - /// POPCNT reg, reg/m64 - /// - public static ulong PopCount(ulong value) => PopCount(value); } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs index 1701046..a206eb1 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.PlatformNotSupported.cs @@ -290,33 +290,18 @@ namespace System.Runtime.Intrinsics.X86 /// CVTSS2SI r32, xmm/m32 /// public static int ConvertToInt32(Vector128 value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_cvtss_si64 (__m128 a) - /// CVTSS2SI r64, xmm/m32 - /// - public static long ConvertToInt64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_cvtsi32_ss (__m128 a, int b) /// CVTSI2SS xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128Single(Vector128 upper, int value) { throw new PlatformNotSupportedException(); } - /// - /// __m128 _mm_cvtsi64_ss (__m128 a, __int64 b) - /// CVTSI2SS xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Single(Vector128 upper, long value) { throw new PlatformNotSupportedException(); } /// /// int _mm_cvttss_si32 (__m128 a) /// CVTTSS2SI r32, xmm/m32 /// public static int ConvertToInt32WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_cvttss_si64 (__m128 a) - /// CVTTSS2SI r64, xmm/m32 - /// - public static long ConvertToInt64WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128 _mm_div_ps (__m128 a, __m128 b) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.cs index cfcd15a..b11718e 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse.cs @@ -291,33 +291,18 @@ namespace System.Runtime.Intrinsics.X86 /// CVTSS2SI r32, xmm/m32 /// public static int ConvertToInt32(Vector128 value) => ConvertToInt32(value); - /// - /// __int64 _mm_cvtss_si64 (__m128 a) - /// CVTSS2SI r64, xmm/m32 - /// - public static long ConvertToInt64(Vector128 value) => ConvertToInt64(value); /// /// __m128 _mm_cvtsi32_ss (__m128 a, int b) /// CVTSI2SS xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128Single(Vector128 upper, int value) => ConvertScalarToVector128Single(upper, value); - /// - /// __m128 _mm_cvtsi64_ss (__m128 a, __int64 b) - /// CVTSI2SS xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Single(Vector128 upper, long value) => ConvertScalarToVector128Single(upper, value); /// /// int _mm_cvttss_si32 (__m128 a) /// CVTTSS2SI r32, xmm/m32 /// public static int ConvertToInt32WithTruncation(Vector128 value) => ConvertToInt32WithTruncation(value); - /// - /// __int64 _mm_cvttss_si64 (__m128 a) - /// CVTTSS2SI r64, xmm/m32 - /// - public static long ConvertToInt64WithTruncation(Vector128 value) => ConvertToInt64WithTruncation(value); /// /// __m128 _mm_div_ps (__m128 a, __m128 b) diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs index 56b9e0a..eb0a081 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.PlatformNotSupported.cs @@ -579,37 +579,17 @@ namespace System.Runtime.Intrinsics.X86 /// public static int ConvertToInt32(Vector128 value) { throw new PlatformNotSupportedException(); } /// - /// __int64 _mm_cvtsd_si64 (__m128d a) - /// CVTSD2SI r64, xmm/m64 - /// - public static long ConvertToInt64(Vector128 value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_cvtsi128_si64 (__m128i a) - /// MOVQ reg/m64, xmm - /// - public static long ConvertToInt64(Vector128 value) { throw new PlatformNotSupportedException(); } - /// /// int _mm_cvtsi128_si32 (__m128i a) /// MOVD reg/m32, xmm /// public static uint ConvertToUInt32(Vector128 value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_cvtsi128_si64 (__m128i a) - /// MOVQ reg/m64, xmm - /// - public static ulong ConvertToUInt64(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128d _mm_cvtsi32_sd (__m128d a, int b) - /// CVTSI2SD xmm, reg/m64 + /// CVTSI2SD xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128Double(Vector128 upper, int value) { throw new PlatformNotSupportedException(); } /// - /// __m128d _mm_cvtsi64_sd (__m128d a, int b) - /// CVTSI2SD xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Double(Vector128 upper, long value) { throw new PlatformNotSupportedException(); } - /// /// __m128d _mm_cvtss_sd (__m128d a, __m128 b) /// CVTSS2SD xmm, xmm/m32 /// @@ -620,11 +600,6 @@ namespace System.Runtime.Intrinsics.X86 /// public static Vector128 ConvertScalarToVector128Int32(int value) { throw new PlatformNotSupportedException(); } /// - /// __m128i _mm_cvtsi64_si128 (__int64 a) - /// MOVQ xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Int64(long value) { throw new PlatformNotSupportedException(); } - /// /// __m128 _mm_cvtsd_ss (__m128 a, __m128d b) /// CVTSD2SS xmm, xmm/m64 /// @@ -634,11 +609,6 @@ namespace System.Runtime.Intrinsics.X86 /// MOVD xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128UInt32(uint value) { throw new PlatformNotSupportedException(); } - /// - /// __m128i _mm_cvtsi64_si128 (__int64 a) - /// MOVQ xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128UInt64(ulong value) { throw new PlatformNotSupportedException(); } /// /// __m128i _mm_cvttps_epi32 (__m128 a) @@ -656,11 +626,6 @@ namespace System.Runtime.Intrinsics.X86 /// CVTTSD2SI reg, xmm/m64 /// public static int ConvertToInt32WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_cvttsd_si64 (__m128d a) - /// CVTTSD2SI reg, xmm/m64 - /// - public static long ConvertToInt64WithTruncation(Vector128 value) { throw new PlatformNotSupportedException(); } /// /// __m128d _mm_div_pd (__m128d a, __m128d b) @@ -1501,17 +1466,6 @@ namespace System.Runtime.Intrinsics.X86 public static unsafe void StoreNonTemporal(uint* address, uint value) { throw new PlatformNotSupportedException(); } /// - /// void _mm_stream_si64(__int64 *p, __int64 a) - /// MOVNTI m64, r64 - /// - public static unsafe void StoreNonTemporal(long* address, long value) { throw new PlatformNotSupportedException(); } - /// - /// void _mm_stream_si64(__int64 *p, __int64 a) - /// MOVNTI m64, r64 - /// - public static unsafe void StoreNonTemporal(ulong* address, ulong value) { throw new PlatformNotSupportedException(); } - - /// /// __m128i _mm_sub_epi8 (__m128i a, __m128i b) /// PSUBB xmm, xmm/m128 /// diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs index d9d440a..afcb477 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse2.cs @@ -579,52 +579,31 @@ namespace System.Runtime.Intrinsics.X86 /// MOVD reg/m32, xmm /// public static int ConvertToInt32(Vector128 value) => ConvertToInt32(value); - /// - /// __int64 _mm_cvtsd_si64 (__m128d a) - /// CVTSD2SI r64, xmm/m64 - /// - public static long ConvertToInt64(Vector128 value) => ConvertToInt64(value); - /// - /// __int64 _mm_cvtsi128_si64 (__m128i a) - /// MOVQ reg/m64, xmm - /// - public static long ConvertToInt64(Vector128 value) => ConvertToInt64(value); + /// /// int _mm_cvtsi128_si32 (__m128i a) /// MOVD reg/m32, xmm /// public static uint ConvertToUInt32(Vector128 value) => ConvertToUInt32(value); - /// - /// __int64 _mm_cvtsi128_si64 (__m128i a) - /// MOVQ reg/m64, xmm - /// - public static ulong ConvertToUInt64(Vector128 value) => ConvertToUInt64(value); /// /// __m128d _mm_cvtsi32_sd (__m128d a, int b) - /// CVTSI2SD xmm, reg/m64 + /// CVTSI2SD xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128Double(Vector128 upper, int value) => ConvertScalarToVector128Double(upper, value); - /// - /// __m128d _mm_cvtsi64_sd (__m128d a, __int64 b) - /// CVTSI2SD xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Double(Vector128 upper, long value) => ConvertScalarToVector128Double(upper, value); + /// /// __m128d _mm_cvtss_sd (__m128d a, __m128 b) /// CVTSS2SD xmm, xmm/m32 /// public static Vector128 ConvertScalarToVector128Double(Vector128 upper, Vector128 value) => ConvertScalarToVector128Double(upper, value); + /// /// __m128i _mm_cvtsi32_si128 (int a) /// MOVD xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128Int32(int value) => ConvertScalarToVector128Int32(value); - /// - /// __m128i _mm_cvtsi64_si128 (__int64 a) - /// MOVQ xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128Int64(long value) => ConvertScalarToVector128Int64(value); + /// /// __m128 _mm_cvtsd_ss (__m128 a, __m128d b) /// CVTSD2SS xmm, xmm/m64 @@ -635,11 +614,6 @@ namespace System.Runtime.Intrinsics.X86 /// MOVD xmm, reg/m32 /// public static Vector128 ConvertScalarToVector128UInt32(uint value) => ConvertScalarToVector128UInt32(value); - /// - /// __m128i _mm_cvtsi64_si128 (__int64 a) - /// MOVQ xmm, reg/m64 - /// - public static Vector128 ConvertScalarToVector128UInt64(ulong value) => ConvertScalarToVector128UInt64(value); /// /// __m128i _mm_cvttps_epi32 (__m128 a) @@ -657,11 +631,6 @@ namespace System.Runtime.Intrinsics.X86 /// CVTTSD2SI reg, xmm/m64 /// public static int ConvertToInt32WithTruncation(Vector128 value) => ConvertToInt32WithTruncation(value); - /// - /// __int64 _mm_cvttsd_si64 (__m128d a) - /// CVTTSD2SI reg, xmm/m64 - /// - public static long ConvertToInt64WithTruncation(Vector128 value) => ConvertToInt64WithTruncation(value); /// /// __m128d _mm_div_pd (__m128d a, __m128d b) @@ -1502,17 +1471,6 @@ namespace System.Runtime.Intrinsics.X86 public static unsafe void StoreNonTemporal(uint* address, uint value) => StoreNonTemporal(address, value); /// - /// void _mm_stream_si64(__int64 *p, __int64 a) - /// MOVNTI m64, r64 - /// - public static unsafe void StoreNonTemporal(long* address, long value) => StoreNonTemporal(address, value); - /// - /// void _mm_stream_si64(__int64 *p, __int64 a) - /// MOVNTI m64, r64 - /// - public static unsafe void StoreNonTemporal(ulong* address, ulong value) => StoreNonTemporal(address, value); - - /// /// __m128i _mm_sub_epi8 (__m128i a, __m128i b) /// PSUBB xmm, xmm/m128 /// diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs index c70233e..26ae9a6 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.PlatformNotSupported.cs @@ -265,16 +265,6 @@ namespace System.Runtime.Intrinsics.X86 /// public static uint Extract(Vector128 value, byte index) { throw new PlatformNotSupportedException(); } /// - /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) - /// PEXTRQ reg/m64, xmm, imm8 - /// - public static long Extract(Vector128 value, byte index) { throw new PlatformNotSupportedException(); } - /// - /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) - /// PEXTRQ reg/m64, xmm, imm8 - /// - public static ulong Extract(Vector128 value, byte index) { throw new PlatformNotSupportedException(); } - /// /// int _mm_extract_ps (__m128 a, const int imm8) /// EXTRACTPS xmm, xmm/m32, imm8 /// @@ -336,16 +326,6 @@ namespace System.Runtime.Intrinsics.X86 /// public static Vector128 Insert(Vector128 value, uint data, byte index) { throw new PlatformNotSupportedException(); } /// - /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) - /// PINSRQ xmm, reg/m64, imm8 - /// - public static Vector128 Insert(Vector128 value, long data, byte index) { throw new PlatformNotSupportedException(); } - /// - /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) - /// PINSRQ xmm, reg/m64, imm8 - /// - public static Vector128 Insert(Vector128 value, ulong data, byte index) { throw new PlatformNotSupportedException(); } - /// /// __m128 _mm_insert_ps (__m128 a, __m128 b, const int imm8) /// INSERTPS xmm, xmm/m32, imm8 /// diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.cs index 2d20b73..c63dac8 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse41.cs @@ -265,16 +265,6 @@ namespace System.Runtime.Intrinsics.X86 /// public static uint Extract(Vector128 value, byte index) => Extract(value, index); /// - /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) - /// PEXTRQ reg/m64, xmm, imm8 - /// - public static long Extract(Vector128 value, byte index) => Extract(value, index); - /// - /// __int64 _mm_extract_epi64 (__m128i a, const int imm8) - /// PEXTRQ reg/m64, xmm, imm8 - /// - public static ulong Extract(Vector128 value, byte index) => Extract(value, index); - /// /// int _mm_extract_ps (__m128 a, const int imm8) /// EXTRACTPS xmm, xmm/m32, imm8 /// @@ -336,16 +326,6 @@ namespace System.Runtime.Intrinsics.X86 /// public static Vector128 Insert(Vector128 value, uint data, byte index) => Insert(value, data, index); /// - /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) - /// PINSRQ xmm, reg/m64, imm8 - /// - public static Vector128 Insert(Vector128 value, long data, byte index) => Insert(value, data, index); - /// - /// __m128i _mm_insert_epi64 (__m128i a, __int64 i, const int imm8) - /// PINSRQ xmm, reg/m64, imm8 - /// - public static Vector128 Insert(Vector128 value, ulong data, byte index) => Insert(value, data, index); - /// /// __m128 _mm_insert_ps (__m128 a, __m128 b, const int imm8) /// INSERTPS xmm, xmm/m32, imm8 /// diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.PlatformNotSupported.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.PlatformNotSupported.cs index 7c2b7b3..1a7aa91 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.PlatformNotSupported.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.PlatformNotSupported.cs @@ -52,10 +52,5 @@ namespace System.Runtime.Intrinsics.X86 /// CRC32 reg, reg/m32 /// public static uint Crc32(uint crc, uint data) { throw new PlatformNotSupportedException(); } - /// - /// unsigned __int64 _mm_crc32_u64 (unsigned __int64 crc, unsigned __int64 v) - /// CRC32 reg, reg/m64 - /// - public static ulong Crc32(ulong crc, ulong data) { throw new PlatformNotSupportedException(); } } } diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.cs index 8d0b59e..e997653 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Sse42.cs @@ -52,10 +52,5 @@ namespace System.Runtime.Intrinsics.X86 /// CRC32 reg, reg/m32 /// public static uint Crc32(uint crc, uint data) => Crc32(crc, data); - /// - /// unsigned __int64 _mm_crc32_u64 (unsigned __int64 crc, unsigned __int64 v) - /// CRC32 reg, reg/m64 - /// - public static ulong Crc32(ulong crc, ulong data) => Crc32(crc, data); } } -- 2.7.4