Skip to content

Commit 88625a7

Browse files
committed
Rename opcodes.
See WebAssembly/spec#884 (comment).
1 parent c930220 commit 88625a7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

BinaryEncoding.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,14 @@ for [future :unicorn:][future multiple tables] use and must be 0 in the MVP.
810810
| `f64.convert_s/i64` | `0xb9` | | |
811811
| `f64.convert_u/i64` | `0xba` | | |
812812
| `f64.promote/f32` | `0xbb` | | |
813-
| `i32.trunc_s:sat/f32` | `0xfc` `0x00` | | :bowling: saturating form of `i32.trunc_s/f32` |
814-
| `i32.trunc_u:sat/f32` | `0xfc` `0x01` | | :bowling: saturating form of `i32.trunc_u/f32` |
815-
| `i32.trunc_s:sat/f64` | `0xfc` `0x02` | | :bowling: saturating form of `i32.trunc_s/f64` |
816-
| `i32.trunc_u:sat/f64` | `0xfc` `0x03` | | :bowling: saturating form of `i32.trunc_u/f64` |
817-
| `i64.trunc_s:sat/f32` | `0xfc` `0x04` | | :bowling: saturating form of `i64.trunc_s/f32` |
818-
| `i64.trunc_u:sat/f32` | `0xfc` `0x05` | | :bowling: saturating form of `i64.trunc_u/f32` |
819-
| `i64.trunc_s:sat/f64` | `0xfc` `0x06` | | :bowling: saturating form of `i64.trunc_s/f64` |
820-
| `i64.trunc_u:sat/f64` | `0xfc` `0x07` | | :bowling: saturating form of `i64.trunc_u/f64` |
813+
| `i32.trunc_sat_f32_s` | `0xfc` `0x00` | | :bowling: saturating form of `i32.trunc_f32_s` |
814+
| `i32.trunc_sat_f32_u` | `0xfc` `0x01` | | :bowling: saturating form of `i32.trunc_f32_u` |
815+
| `i32.trunc_sat_f64_s` | `0xfc` `0x02` | | :bowling: saturating form of `i32.trunc_f64_s` |
816+
| `i32.trunc_sat_f64_u` | `0xfc` `0x03` | | :bowling: saturating form of `i32.trunc_f64_u` |
817+
| `i64.trunc_sat_f32_s` | `0xfc` `0x04` | | :bowling: saturating form of `i64.trunc_f32_s` |
818+
| `i64.trunc_sat_f32_u` | `0xfc` `0x05` | | :bowling: saturating form of `i64.trunc_f32_u` |
819+
| `i64.trunc_sat_f64_s` | `0xfc` `0x06` | | :bowling: saturating form of `i64.trunc_f64_s` |
820+
| `i64.trunc_sat_f64_u` | `0xfc` `0x07` | | :bowling: saturating form of `i64.trunc_f64_u` |
821821

822822
## Reinterpretations ([described here](Semantics.md#datatype-conversions-truncations-reinterpretations-promotions-and-demotions))
823823

Semantics.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -648,14 +648,14 @@ is NaN, and *ordered* otherwise.
648648
* `f64.convert_u/i32`: convert an unsigned 32-bit integer to a 64-bit float
649649
* `f64.convert_u/i64`: convert an unsigned 64-bit integer to a 64-bit float
650650
* `f64.reinterpret/i64`: reinterpret the bits of a 64-bit integer as a 64-bit float
651-
* `i32.trunc_s:sat/f32`: :bowling: truncate a 32-bit float to a signed 32-bit integer with saturation
652-
* `i32.trunc_s:sat/f64`: :bowling: truncate a 64-bit float to a signed 32-bit integer with saturation
653-
* `i32.trunc_u:sat/f32`: :bowling: truncate a 32-bit float to an unsigned 32-bit integer with saturation
654-
* `i32.trunc_u:sat/f64`: :bowling: truncate a 64-bit float to an unsigned 32-bit integer with saturation
655-
* `i64.trunc_s:sat/f32`: :bowling: truncate a 32-bit float to a signed 64-bit integer with saturation
656-
* `i64.trunc_s:sat/f64`: :bowling: truncate a 64-bit float to a signed 64-bit integer with saturation
657-
* `i64.trunc_u:sat/f32`: :bowling: truncate a 32-bit float to an unsigned 64-bit integer with saturation
658-
* `i64.trunc_u:sat/f64`: :bowling: truncate a 64-bit float to an unsigned 64-bit integer with saturation
651+
* `i32.trunc_sat_f32_s`: :bowling: truncate a 32-bit float to a signed 32-bit integer with saturation
652+
* `i32.trunc_sat_f64_s`: :bowling: truncate a 64-bit float to a signed 32-bit integer with saturation
653+
* `i32.trunc_sat_f32_u`: :bowling: truncate a 32-bit float to an unsigned 32-bit integer with saturation
654+
* `i32.trunc_sat_f64_u`: :bowling: truncate a 64-bit float to an unsigned 32-bit integer with saturation
655+
* `i64.trunc_sat_f32_s`: :bowling: truncate a 32-bit float to a signed 64-bit integer with saturation
656+
* `i64.trunc_sat_f64_s`: :bowling: truncate a 64-bit float to a signed 64-bit integer with saturation
657+
* `i64.trunc_sat_f32_u`: :bowling: truncate a 32-bit float to an unsigned 64-bit integer with saturation
658+
* `i64.trunc_sat_f64_u`: :bowling: truncate a 64-bit float to an unsigned 64-bit integer with saturation
659659

660660
Wrapping and extension of integer values always succeed.
661661
Promotion and demotion of floating point values always succeed.
@@ -683,7 +683,7 @@ Truncation from floating point to integer where IEEE 754-2008 would specify an
683683
invalid operator exception (e.g. when the floating point value is NaN or
684684
outside the range which rounds to an integer in range) is handled as follows:
685685
- For instructions with no exceptional behavior specified, a trap is produced.
686-
- :bowling: For instructions with the `:sat` modifier, no trap is produced, and:
686+
- :bowling: For instructions containing `_sat`, no trap is produced, and:
687687
- If the floating-point value is positive, the maximum integer value is returned.
688688
- If the floating-point value is negative, the minimum integer value is returned.
689689
- If the floating-point value is NaN, zero is returned.

0 commit comments

Comments
 (0)