Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4bae653

Browse files
FeiPengIntelmorganbr
authored andcommitted
Fix a bug that disabled Bmi1/2.X64
1 parent c605229 commit 4bae653

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/jit/compiler.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,13 +2567,19 @@ void Compiler::compSetProcessor()
25672567
if (configEnableISA(InstructionSet_BMI1))
25682568
{
25692569
opts.setSupportedISA(InstructionSet_BMI1);
2570+
#ifdef _TARGET_AMD64_
2571+
opts.setSupportedISA(InstructionSet_BMI1_X64);
2572+
#endif
25702573
}
25712574
}
25722575
if (jitFlags.IsSet(JitFlags::JIT_FLAG_USE_BMI2))
25732576
{
25742577
if (configEnableISA(InstructionSet_BMI2))
25752578
{
25762579
opts.setSupportedISA(InstructionSet_BMI2);
2580+
#ifdef _TARGET_AMD64_
2581+
opts.setSupportedISA(InstructionSet_BMI2_X64);
2582+
#endif
25772583
}
25782584
}
25792585
}

0 commit comments

Comments
 (0)