Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 2ff0546

Browse files
committed
Quasi-Minimum and Quasi-Maximum instructions
1 parent 4e0a8e6 commit 2ff0546

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

proposals/simd/BinarySIMD.md

+4
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,7 @@ The `v8x16.shuffle` instruction has 16 bytes after `simdop`.
189189
| `i64x2.load32x2_s` | `0xd6`| m:memarg |
190190
| `i64x2.load32x2_u` | `0xd7`| m:memarg |
191191
| `v128.andnot` | `0xd8`| - |
192+
| `f32x4.qmin` | `0xd9`| - |
193+
| `f32x4.qmax` | `0xda`| - |
194+
| `f64x2.qmin` | `0xdb`| - |
195+
| `f64x2.qmax` | `0xdc`| - |

proposals/simd/SIMD.md

+12
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,18 @@ Lane-wise minimum value, propagating NaNs.
743743

744744
Lane-wise maximum value, propagating NaNs.
745745

746+
### Quasi-minimum
747+
* `f32x4.qmin(a: v128, b: v128) -> v128`
748+
* `f64x2.qmin(a: v128, b: v128) -> v128`
749+
750+
Lane-wise minimum value, defined as `b < a ? b : a`.
751+
752+
### Quasi-maximum
753+
* `f32x4.qmax(a: v128, b: v128) -> v128`
754+
* `f64x2.qmax(a: v128, b: v128) -> v128`
755+
756+
Lane-wise maximum value, defined as `a < b ? b : a`.
757+
746758
## Floating-point arithmetic
747759

748760
The floating-point arithmetic operations are all lane-wise versions of the

0 commit comments

Comments
 (0)