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:
@@ -3354,3 +3354,13 @@
|
||||
(decl x64_rsp () Reg)
|
||||
(rule (x64_rsp)
|
||||
(mov_preg (preg_rsp)))
|
||||
|
||||
;;;; Helpers for Emitting LibCalls ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(type LibCall extern
|
||||
(enum
|
||||
FmaF32
|
||||
FmaF64))
|
||||
|
||||
(decl libcall_3 (LibCall Reg Reg Reg) Reg)
|
||||
(extern constructor libcall_3 libcall_3)
|
||||
|
||||
Reference in New Issue
Block a user