arm64: enable fma and "avx" on Apple and Cortex CPUs

This commit is contained in:
sguo35 2022-07-11 12:51:24 -07:00 committed by Ivan
parent c52abed4d3
commit b02e6e222f

View File

@ -140,6 +140,14 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
m_use_avx512_icl = true;
m_use_vnni = true;
}
// Aarch64 CPUs
if (cpu == "cyclone" || cpu.contains("cortex"))
{
m_use_fma = true;
// AVX does not use intrinsics so far
m_use_avx = true;
}
}
llvm::Value* cpu_translator::bitcast(llvm::Value* val, llvm::Type* type) const