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

Commit 7ae8006

Browse files
committed
Pseudo-Minimum and Pseudo-Maximum instructions
1 parent e7c2002 commit 7ae8006

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
@@ -197,6 +197,8 @@ For example, `ImmLaneIdx16` is a byte with values in the range 0-15 (inclusive).
197197
| `f32x4.div` | `0xe7`| - |
198198
| `f32x4.min` | `0xe8`| - |
199199
| `f32x4.max` | `0xe9`| - |
200+
| `f32x4.pmin` | `0xea`| - |
201+
| `f32x4.pmax` | `0xeb`| - |
200202
| `f64x2.abs` | `0xec`| - |
201203
| `f64x2.neg` | `0xed`| - |
202204
| `f64x2.sqrt` | `0xef`| - |
@@ -206,6 +208,8 @@ For example, `ImmLaneIdx16` is a byte with values in the range 0-15 (inclusive).
206208
| `f64x2.div` | `0xf3`| - |
207209
| `f64x2.min` | `0xf4`| - |
208210
| `f64x2.max` | `0xf5`| - |
211+
| `f64x2.pmin` | `0xf6`| - |
212+
| `f64x2.pmax` | `0xf7`| - |
209213
| `i32x4.trunc_sat_f32x4_s` | `0xf8`| - |
210214
| `i32x4.trunc_sat_f32x4_u` | `0xf9`| - |
211215
| `f32x4.convert_i32x4_s` | `0xfa`| - |

proposals/simd/SIMD.md

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

868868
Lane-wise maximum value, propagating NaNs.
869869

870+
### Pseudo-minimum
871+
* `f32x4.pmin(a: v128, b: v128) -> v128`
872+
* `f64x2.pmin(a: v128, b: v128) -> v128`
873+
874+
Lane-wise minimum value, defined as `b < a ? b : a`.
875+
876+
### Pseudo-maximum
877+
* `f32x4.pmax(a: v128, b: v128) -> v128`
878+
* `f64x2.pmax(a: v128, b: v128) -> v128`
879+
880+
Lane-wise maximum value, defined as `a < b ? b : a`.
881+
870882
## Floating-point arithmetic
871883

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

0 commit comments

Comments
 (0)