SPU LLVM: Hook up 128 bit spu verification

- Also fix FMA enablement for sapphirerapids
This commit is contained in:
Malcolm Jestadt 2021-11-05 17:05:04 -04:00 committed by Ivan
parent f9abe40494
commit 7573d7289b
3 changed files with 21 additions and 10 deletions

View file

@ -4485,13 +4485,13 @@ public:
elements = 16;
dwords = 8;
}
else if (true)
else if (m_use_avx)
{
stride = 32;
elements = 8;
dwords = 4;
}
else // TODO: Use this path when the cpu doesn't support AVX
else
{
stride = 16;
elements = 4;
@ -4539,7 +4539,7 @@ public:
{
vls = m_ir->CreateAlignedLoad(_ptr<u32[16]>(data_addr, j - starta), llvm::MaybeAlign{4});
}
else if (true)
else if (m_use_avx)
{
vls = m_ir->CreateAlignedLoad(_ptr<u32[8]>(data_addr, j - starta), llvm::MaybeAlign{4});
}
@ -4573,7 +4573,7 @@ public:
{
acc = m_ir->CreateBitCast(acc, get_type<u64[8]>());
}
else if (true)
else if (m_use_avx)
{
acc = m_ir->CreateBitCast(acc, get_type<u64[4]>());
}