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

Commit cb0d731

Browse files
committed
Pseudo-Minimum and Pseudo-Maximum instructions
1 parent 4819d61 commit cb0d731

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
@@ -203,3 +203,7 @@ The `v8x16.shuffle` instruction has 16 bytes after `simdop`.
203203
| `v128.andnot` | `0xd8`| - |
204204
| `i8x16.avgr_u` | `0xd9`| |
205205
| `i16x8.avgr_u` | `0xda`| |
206+
| `f32x4.pmin` | `0xdd`| - |
207+
| `f32x4.pmax` | `0xde`| - |
208+
| `f64x2.pmin` | `0xdf`| - |
209+
| `f64x2.pmax` | `0xe0`| - |

proposals/simd/SIMD.md

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

821821
Lane-wise maximum value, propagating NaNs.
822822

823+
### Pseudo-minimum
824+
* `f32x4.pmin(a: v128, b: v128) -> v128`
825+
* `f64x2.pmin(a: v128, b: v128) -> v128`
826+
827+
Lane-wise minimum value, defined as `b < a ? b : a`.
828+
829+
### Pseudo-maximum
830+
* `f32x4.pmax(a: v128, b: v128) -> v128`
831+
* `f64x2.pmax(a: v128, b: v128) -> v128`
832+
833+
Lane-wise maximum value, defined as `a < b ? b : a`.
834+
823835
## Floating-point arithmetic
824836

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

0 commit comments

Comments
 (0)