bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.21k stars 1.28k forks source link

cranelift: Add `f16const` and `f128const` instructions #8893

Closed beetrees closed 2 months ago

beetrees commented 3 months ago

This PR adds f16const and f128const instructions, as well as basic neg/abs/copysign constant propagation. The f128const instruction uses a Constant (like vconst) instead of directly storing the value in the instruction as InstructionData has a size of only 16 bytes.

Issue: #8312

github-actions[bot] commented 3 months ago

Subscribe to Label Action

cc @cfallin, @fitzgen

This issue or pull request has been labeled: "cranelift", "cranelift:area:machinst", "cranelift:meta", "isle" Thus the following users have been cc'd because of the following labels: * cfallin: isle * fitzgen: isle To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file. [Learn more.](https://github.com/bytecodealliance/subscribe-to-label-action)
beetrees commented 3 months ago

I've just made a minor improvement to make the f128 cprop tests more readable.