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

Commit b10d3bf

Browse files
committed
Update conversion op names
This renaming was decided on in WebAssembly/spec#884.
1 parent fb7b68b commit b10d3bf

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

proposals/simd/BinarySIMD.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ The `v8x16.shuffle` instruction has 16 bytes after `simdop`.
157157
| `f64x2.div` | `0xa8`| - |
158158
| `f64x2.min` | `0xa9`| - |
159159
| `f64x2.max` | `0xaa`| - |
160-
| `i32x4.trunc_s/f32x4:sat` | `0xab`| - |
161-
| `i32x4.trunc_u/f32x4:sat` | `0xac`| - |
162-
| `i64x2.trunc_s/f64x2:sat` | `0xad`| - |
163-
| `i64x2.trunc_u/f64x2:sat` | `0xae`| - |
164-
| `f32x4.convert_s/i32x4` | `0xaf`| - |
165-
| `f32x4.convert_u/i32x4` | `0xb0`| - |
166-
| `f64x2.convert_s/i64x2` | `0xb1`| - |
167-
| `f64x2.convert_u/i64x2` | `0xb2`| - |
160+
| `i32x4.trunc_sat_f32x4_s` | `0xab`| - |
161+
| `i32x4.trunc_sat_f32x4_u` | `0xac`| - |
162+
| `i64x2.trunc_sat_f64x2_s` | `0xad`| - |
163+
| `i64x2.trunc_sat_f64x2_u` | `0xae`| - |
164+
| `f32x4.convert_i32x4_s` | `0xaf`| - |
165+
| `f32x4.convert_i32x4_u` | `0xb0`| - |
166+
| `f64x2.convert_i64x2_s` | `0xb1`| - |
167+
| `f64x2.convert_i64x2_u` | `0xb2`| - |
168168
| `v8x16.swizzle` | `0xc0`| - |
169169
| `v8x16.shuffle` | `0xc1`| s:LaneIdx32[16] |
170170
| `v8x16.load_splat` | `0xc2`| - |

proposals/simd/SIMD.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -775,19 +775,19 @@ Lane-wise IEEE `squareRoot`.
775775

776776
## Conversions
777777
### Integer to floating point
778-
* `f32x4.convert_s/i32x4(a: v128) -> v128`
779-
* `f32x4.convert_u/i32x4(a: v128) -> v128`
780-
* `f64x2.convert_s/i64x2(a: v128) -> v128`
781-
* `f64x2.convert_u/i64x2(a: v128) -> v128`
778+
* `f32x4.convert_i32x4_s(a: v128) -> v128`
779+
* `f32x4.convert_i32x4_u(a: v128) -> v128`
780+
* `f64x2.convert_i64x2_s(a: v128) -> v128`
781+
* `f64x2.convert_i64x2_u(a: v128) -> v128`
782782

783783
Lane-wise conversion from integer to floating point. Some integer values will be
784784
rounded.
785785

786786
### Floating point to integer with saturation
787-
* `i32x4.trunc_s/f32x4:sat(a: v128) -> v128`
788-
* `i32x4.trunc_u/f32x4:sat(a: v128) -> v128`
789-
* `i64x2.trunc_s/f64x2:sat(a: v128) -> v128`
790-
* `i64x2.trunc_u/f64x2:sat(a: v128) -> v128`
787+
* `i32x4.trunc_sat_f32x4_s(a: v128) -> v128`
788+
* `i32x4.trunc_sat_f32x4_u(a: v128) -> v128`
789+
* `i64x2.trunc_sat_f64x2_s(a: v128) -> v128`
790+
* `i64x2.trunc_sat_f64x2_u(a: v128) -> v128`
791791

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

0 commit comments

Comments
 (0)