cranelift: Implement scalar FMA on x86 (#4460)
x86 does not have dedicated instructions for scalar FMA, lower to a libcall which seems to be what llvm does.
This commit is contained in:
@@ -169,9 +169,8 @@ const OPCODE_SIGNATURES: &'static [(
|
||||
(Opcode::Fcopysign, &[F32, F32], &[F32], insert_opcode),
|
||||
(Opcode::Fcopysign, &[F64, F64], &[F64], insert_opcode),
|
||||
// Fma
|
||||
// TODO: Missing on X86, see https://github.com/bytecodealliance/wasmtime/pull/4460
|
||||
// (Opcode::Fma, &[F32, F32, F32], &[F32], insert_opcode),
|
||||
// (Opcode::Fma, &[F64, F64, F64], &[F64], insert_opcode),
|
||||
(Opcode::Fma, &[F32, F32, F32], &[F32], insert_opcode),
|
||||
(Opcode::Fma, &[F64, F64, F64], &[F64], insert_opcode),
|
||||
// Fabs
|
||||
(Opcode::Fabs, &[F32], &[F32], insert_opcode),
|
||||
(Opcode::Fabs, &[F64], &[F64], insert_opcode),
|
||||
|
||||
Reference in New Issue
Block a user