mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
LLVM: handle icelake-client and icelake-server CPU names
Correct AVX / AVX-512 disabling logic
This commit is contained in:
parent
fb64b28886
commit
ebb24375d1
1 changed files with 6 additions and 2 deletions
|
@ -625,7 +625,9 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
||||||
m_cpu == "skylake" ||
|
m_cpu == "skylake" ||
|
||||||
m_cpu == "skylake-avx512" ||
|
m_cpu == "skylake-avx512" ||
|
||||||
m_cpu == "cannonlake" ||
|
m_cpu == "cannonlake" ||
|
||||||
m_cpu == "icelake")
|
m_cpu == "icelake" ||
|
||||||
|
m_cpu == "icelake-client" ||
|
||||||
|
m_cpu == "icelake-server")
|
||||||
{
|
{
|
||||||
// Downgrade if AVX is not supported by some chips
|
// Downgrade if AVX is not supported by some chips
|
||||||
if (!utils::has_avx())
|
if (!utils::has_avx())
|
||||||
|
@ -636,7 +638,9 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
||||||
|
|
||||||
if (m_cpu == "skylake-avx512" ||
|
if (m_cpu == "skylake-avx512" ||
|
||||||
m_cpu == "cannonlake" ||
|
m_cpu == "cannonlake" ||
|
||||||
m_cpu == "icelake")
|
m_cpu == "icelake" ||
|
||||||
|
m_cpu == "icelake-client" ||
|
||||||
|
m_cpu == "icelake-server")
|
||||||
{
|
{
|
||||||
// Downgrade if AVX-512 is disabled or not supported
|
// Downgrade if AVX-512 is disabled or not supported
|
||||||
if (!utils::has_512())
|
if (!utils::has_512())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue