@@ -81,12 +81,9 @@ private static class XArchIntrinsicConstants
8181 public const int Avx512Vbmi = 0x800000 ;
8282 public const int Avx512Vbmi_vl = 0x1000000 ;
8383 public const int Serialize = 0x2000000 ;
84- public const int VectorT128 = 0x4000000 ;
85- public const int VectorT256 = 0x8000000 ;
86- public const int VectorT512 = 0x10000000 ;
87- public const int Avx10v1 = 0x20000000 ;
88- public const int Avx10v1_v256 = 0x40000000 ;
89- public const int Avx10v1_v512 = unchecked ( ( int ) 0x80000000 ) ;
84+ public const int Avx10v1 = 0x4000000 ;
85+ public const int Avx10v1_v256 = 0x8000000 ;
86+ public const int Avx10v1_v512 = 0x10000000 ;
9087
9188 public static void AddToBuilder ( InstructionSetSupportBuilder builder , int flags )
9289 {
@@ -228,9 +225,9 @@ public static int FromInstructionSet(InstructionSet instructionSet)
228225 InstructionSet . X64_X86Base_X64 => 0 ,
229226
230227 // Vector<T> Sizes
231- InstructionSet . X64_VectorT128 => VectorT128 ,
232- InstructionSet . X64_VectorT256 => VectorT256 ,
233- InstructionSet . X64_VectorT512 => VectorT512 ,
228+ InstructionSet . X64_VectorT128 => 0 ,
229+ InstructionSet . X64_VectorT256 => Avx2 ,
230+ InstructionSet . X64_VectorT512 => Avx512f ,
234231
235232 _ => throw new NotSupportedException ( ( ( InstructionSet_X64 ) instructionSet ) . ToString ( ) )
236233 } ;
@@ -249,9 +246,8 @@ private static class Arm64IntrinsicConstants
249246 public const int Sha256 = 0x0040 ;
250247 public const int Atomics = 0x0080 ;
251248 public const int Rcpc = 0x0100 ;
252- public const int VectorT128 = 0x0200 ;
253- public const int Rcpc2 = 0x0400 ;
254- public const int Sve = 0x0800 ;
249+ public const int Rcpc2 = 0x0200 ;
250+ public const int Sve = 0x0400 ;
255251
256252 public static void AddToBuilder ( InstructionSetSupportBuilder builder , int flags )
257253 {
@@ -310,7 +306,7 @@ public static int FromInstructionSet(InstructionSet instructionSet)
310306 InstructionSet . ARM64_Sve_Arm64 => Sve ,
311307
312308 // Vector<T> Sizes
313- InstructionSet . ARM64_VectorT128 => VectorT128 ,
309+ InstructionSet . ARM64_VectorT128 => AdvSimd ,
314310
315311 _ => throw new NotSupportedException ( ( ( InstructionSet_ARM64 ) instructionSet ) . ToString ( ) )
316312 } ;
0 commit comments