File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1299,7 +1299,6 @@ void EEJitManager::SetCpuInfo()
1299
1299
if (((cpuFeatures & XArchIntrinsicConstants_VectorT256) != 0 ) && ((maxVectorTBitWidth == 0 ) || (maxVectorTBitWidth >= 256 )))
1300
1300
{
1301
1301
// We allow 256-bit Vector<T> by default
1302
- CPUCompileFlags.Clear (InstructionSet_VectorT128);
1303
1302
CPUCompileFlags.Set (InstructionSet_VectorT256);
1304
1303
}
1305
1304
@@ -1541,6 +1540,20 @@ void EEJitManager::SetCpuInfo()
1541
1540
CPUCompileFlags.EnsureValidInstructionSetSupport ();
1542
1541
1543
1542
#if defined(TARGET_X86) || defined(TARGET_AMD64)
1543
+
1544
+ // Clean up mutually exclusive ISAs
1545
+ if (CPUCompileFlags.IsSet (InstructionSet_VectorT512))
1546
+ {
1547
+ // We don't currently support InstructionSet_VectorT512, but just to
1548
+ // make it future proof.
1549
+ CPUCompileFlags.Clear (InstructionSet_VectorT256);
1550
+ CPUCompileFlags.Clear (InstructionSet_VectorT128);
1551
+ }
1552
+ else if (CPUCompileFlags.IsSet (InstructionSet_VectorT256))
1553
+ {
1554
+ CPUCompileFlags.Clear (InstructionSet_VectorT128);
1555
+ }
1556
+
1544
1557
int cpuidInfo[4 ];
1545
1558
1546
1559
const int CPUID_EAX = 0 ;
You can’t perform that action at this time.
0 commit comments