Skip to content

Commit 4baff06

Browse files
Change saturating truncation operators to place the ":sat" modifier immediately after the trunc_u or trunc_s, instead of after the source type
e.g. i32x4.trunc_s:sat/f32x4 instead of i32.trunc_s/f32x4:sat Resolves WebAssembly#25
1 parent 2286fff commit 4baff06

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

proposals/simd/BinarySIMD.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The `v8x16.shuffle` instruction has 16 bytes after `simdop`.
163163
| `f32x4.convert_u/i32x4` | 133 | - |
164164
| `f64x2.convert_s/i64x2` | 134 | - |
165165
| `f64x2.convert_u/i64x2` | 135 | - |
166-
| `i32x4.trunc_s/f32x4:sat` | 136 | - |
167-
| `i32x4.trunc_u/f32x4:sat` | 137 | - |
168-
| `i64x2.trunc_s/f64x2:sat` | 138 | - |
169-
| `i64x2.trunc_u/f64x2:sat` | 139 | - |
166+
| `i32x4.trunc_s:sat/f32x4` | 136 | - |
167+
| `i32x4.trunc_u:sat/f32x4` | 137 | - |
168+
| `i64x2.trunc_s:sat/f64x2` | 138 | - |
169+
| `i64x2.trunc_u:sat/f64x2` | 139 | - |

proposals/simd/SIMD.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,10 @@ Lane-wise conversion from integer to floating point. Some integer values will be
665665
rounded.
666666

667667
### Floating point to integer with saturation
668-
* `i32x4.trunc_s/f32x4:sat(a: v128) -> v128`
669-
* `i32x4.trunc_u/f32x4:sat(a: v128) -> v128`
670-
* `i64x2.trunc_s/f64x2:sat(a: v128) -> v128`
671-
* `i64x2.trunc_u/f64x2:sat(a: v128) -> v128`
668+
* `i32x4.trunc_s:sat/f32x4(a: v128) -> v128`
669+
* `i32x4.trunc_u:sat/f32x4(a: v128) -> v128`
670+
* `i64x2.trunc_s:sat/f64x2(a: v128) -> v128`
671+
* `i64x2.trunc_u:sat/f64x2(a: v128) -> v128`
672672

673673
Lane-wise saturating conversion from floating point to integer using the IEEE
674674
`convertToIntegerTowardZero` function. If any input lane is a NaN, the

0 commit comments

Comments
 (0)