aarch64: Add support for the fmls instruction (#5895)
This commit adds lowerings to the AArch64 backend for the `fmls` instruction which is intended to be leveraged in the relaxed-simd proposal for WebAssembly. This should hopefully allow for a teeny-bit-more efficient codegen for this operator instead of using the `fmla` instruction plus a negation instruction.
This commit is contained in:
@@ -2906,6 +2906,9 @@ impl MachInstEmit for Inst {
|
||||
VecALUModOp::Fmla => {
|
||||
(0b000_01110_00_1 | (size.enc_float_size() << 1), 0b110011)
|
||||
}
|
||||
VecALUModOp::Fmls => {
|
||||
(0b000_01110_10_1 | (size.enc_float_size() << 1), 0b110011)
|
||||
}
|
||||
};
|
||||
sink.put4(enc_vec_rrr(top11 | q << 9, rm, bit15_10, rn, rd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user