mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
eda22c241d
commit
dc42c65dfb
|
@ -226,7 +226,7 @@ else()
|
||||||
# Don't append -SSE2 on the first build to keep same name as SIMD build
|
# 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}" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags}")
|
||||||
add_pcsx2_plugin("${Output}-SSE4" "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags} -mssse3 -msse4 -msse4.1")
|
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()
|
else()
|
||||||
add_pcsx2_plugin(${Output} "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags}")
|
add_pcsx2_plugin(${Output} "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinalFlags}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -225,6 +225,8 @@ bool GSUtil::CheckSSE()
|
||||||
#endif
|
#endif
|
||||||
#if _M_SSE >= 0x501
|
#if _M_SSE >= 0x501
|
||||||
{Xbyak::util::Cpu::tAVX2, "AVX2"},
|
{Xbyak::util::Cpu::tAVX2, "AVX2"},
|
||||||
|
{Xbyak::util::Cpu::tBMI1, "BMI1"},
|
||||||
|
{Xbyak::util::Cpu::tBMI2, "BMI2"},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue