x64: Add support for fmsub
and fnmsub
instructions
#8602
Labels
cranelift:area:x64
Issues related to x64 codegen
cranelift:E-compiler-easy
Beginner–Intermediate compiler issues.
cranelift:E-easy
Issues suitable for newcomers to investigate, including Rust newcomers!
👋 Hey,
Feature
Add support for the
fmsub
andfnmsub
instructions in the x64 backend.Benefit
This improves instruction selection quality for a few special fma cases.
Implementation
We already have support for the
fmadd
andfnmadd
versions of these instructions here and here. So we adding support for these instructions should be a matter of introducing the new opcodes and implementing lowering rules similar to what already exists today.Something similar was done in #8588 for the RISC-V backend. If anyone needs help implementing this, let me know!
The text was updated successfully, but these errors were encountered: