diff options
| author | Afonso Bordado <afonso360@users.noreply.github.com> | 2022-08-23 11:42:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-23 12:42:35 +0200 |
| commit | 48c45c481c53e615637788e3dad1b7dcb993bdc3 (patch) | |
| tree | e12e8611735ec36f9f84d3504dd9d0432ad31bc7 /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff | |
| parent | 156bda8bc708cca60e9de18743d833c8d97dd7ff (diff) | |
| download | rust-48c45c481c53e615637788e3dad1b7dcb993bdc3.tar.gz rust-48c45c481c53e615637788e3dad1b7dcb993bdc3.zip | |
Use native scalar `fma` instruction (#1267)
Cranelift 0.87 now supports lowering `fma` as a libcall on x86 [0]. With 0.88 enabling the native x86 instruction under the `has_fma` flag. aarch64 and s390x already support this as a native instruction, so it's nice that we emit it for those. We can't lower the SIMD version using the `fma` instruction since the lowering can fail if the x86 `has_fma` flag is not enabled. Cranelift doesn't yet know how to fallback for these cases [0]: https://github.com/bytecodealliance/wasmtime/commit/709716bb8e6adaf7e65f3497168af23ce0cf09ef
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
