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

Commit b1e3f6a

Browse files
committed
Pseudo-Minimum and Pseudo-Maximum instructions
1 parent 77e7fda commit b1e3f6a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

proposals/simd/BinarySIMD.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,7 @@ The `v8x16.shuffle` instruction has 16 bytes after `simdop`.
202202
| `i8x16.abs` | `0xe1`| - |
203203
| `i16x8.abs` | `0xe2`| - |
204204
| `i32x4.abs` | `0xe3`| - |
205+
| `f32x4.pmin` | `0xdd`| - |
206+
| `f32x4.pmax` | `0xde`| - |
207+
| `f64x2.pmin` | `0xdf`| - |
208+
| `f64x2.pmax` | `0xe0`| - |

proposals/simd/SIMD.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,18 @@ Lane-wise minimum value, propagating NaNs.
832832

833833
Lane-wise maximum value, propagating NaNs.
834834

835+
### Pseudo-minimum
836+
* `f32x4.pmin(a: v128, b: v128) -> v128`
837+
* `f64x2.pmin(a: v128, b: v128) -> v128`
838+
839+
Lane-wise minimum value, defined as `b < a ? b : a`.
840+
841+
### Pseudo-maximum
842+
* `f32x4.pmax(a: v128, b: v128) -> v128`
843+
* `f64x2.pmax(a: v128, b: v128) -> v128`
844+
845+
Lane-wise maximum value, defined as `a < b ? b : a`.
846+
835847
## Floating-point arithmetic
836848

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

0 commit comments

Comments
 (0)