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

Commit 72fbb93

Browse files
committed
Pseudo-Minimum and Pseudo-Maximum instructions
1 parent 07a4fe6 commit 72fbb93

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
@@ -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.pmin` | `0xd9`| - |
193+
| `f32x4.pmax` | `0xda`| - |
194+
| `f64x2.pmin` | `0xdb`| - |
195+
| `f64x2.pmax` | `0xdc`| - |

proposals/simd/SIMD.md

Lines changed: 12 additions & 0 deletions
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+
### Pseudo-minimum
747+
* `f32x4.pmin(a: v128, b: v128) -> v128`
748+
* `f64x2.pmin(a: v128, b: v128) -> v128`
749+
750+
Lane-wise minimum value, defined as `b < a ? b : a`.
751+
752+
### Pseudo-maximum
753+
* `f32x4.pmax(a: v128, b: v128) -> v128`
754+
* `f64x2.pmax(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)