forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isle: Migrate f32const/f64const to ISLE (bytecodealliance#3537)
This moves the `f32const` and `f64const` instructions from `lower.rs` to ISLE. I was originally going to add something else but due to the `isle.rs`'s manual use of `constructor_imm(..)` it necessitated filling out the `imm` cases for f32/f64 constants, so I figured I'd go ahead and move these instructions as well. The special case for 0 constants which use `xorp{s,d}` is preserved from `lower.rs` today, but a special case isn't added for the all-ones constant. The comment says to use `cmpeqp{s,d}` but as discovered on other recent PRs that's not quite sufficient because comparing a register against itself which happens to be NaN wouldn't work, so something else will be required (perhaps `pcmpeq` or similar? I figured I'd defer to later)
- Loading branch information
1 parent
306c96b
commit f30c8eb
Showing
6 changed files
with
410 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.