forked from WebAssembly/memory64
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Relaxed SIMD proposal | ||
|
||
## Summary | ||
|
||
This proposal adds a set of useful SIMD instructions that introduce local | ||
non-determinism (where the results of the instructions may vary based on | ||
hardware support). | ||
|
||
## Motivation | ||
|
||
Applications running on Wasm SIMD cannot take full advantage of hardware | ||
capabilities. There are 3 reasons: | ||
|
||
1. Instruction depends on hardware support | ||
2. Approximate instructions that are underspecified in hardware | ||
3. Some SIMD instructions penalize particular architecture | ||
|
||
See [these | ||
slides](https://docs.google.com/presentation/d/1Qnx0nbNTRYhMONLuKyygEduCXNOv3xtWODfXfYokx1Y/edit?usp=sharing) | ||
for more details. | ||
|
||
## Overview | ||
|
||
Some instructions we would like to add: | ||
|
||
- Fused Multiply Add (single rounding if hardware supports it, double rounding if not) | ||
- Approximate reciprocal/reciprocal sqrt | ||
- Relaxed Swizzle (implementation defined out of bounds behavior) | ||
- Relaxed Rounding Q-format Multiplication (optional saturation) |