gsdx: requires/allow BMI instruction in AVX2 build

So far BMI is inclusive in AVX2 CPU. Help compiler to generate better code
This commit is contained in:
Gregory Hainaut 2017-01-30 18:23:52 +01:00
parent eda22c241d
commit dc42c65dfb
2 changed files with 3 additions and 1 deletions

View File

@ -226,7 +226,7 @@ else()
# Don't append -SSE2 on the first build to keep same name as SIMD build
add_pcsx2_plugin("${Output}" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags}")
add_pcsx2_plugin("${Output}-SSE4" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags} -mssse3 -msse4 -msse4.1")
add_pcsx2_plugin("${Output}-AVX2" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags} -mavx -mavx2")
add_pcsx2_plugin("${Output}-AVX2" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags} -mavx -mavx2 -mbmi -mbmi2")
else()
add_pcsx2_plugin(${Output} "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags}")
endif()

View File

@ -225,6 +225,8 @@ bool GSUtil::CheckSSE()
#endif
#if _M_SSE >= 0x501
{Xbyak::util::Cpu::tAVX2, "AVX2"},
{Xbyak::util::Cpu::tBMI1, "BMI1"},
{Xbyak::util::Cpu::tBMI2, "BMI2"},
#endif
};