Skip to content

Commit 9974cde

Browse files
committed
Merge pull request #184 from WebAssembly/conversions
update conversions to use type.method
2 parents dea013a + f601445 commit 9974cde

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

AstSemantics.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -415,31 +415,31 @@ implementations of the remaining required operations.
415415

416416
## Datatype conversions, truncations, reinterpretations, promotions, and demotions
417417

418-
* `int32_from_int64`: wrap a 64-bit integer to a 32-bit integer
419-
* `int64_from_sint32`: extend a signed 32-bit integer to a 64-bit integer
420-
* `int64_from_uint32`: extend an unsigned 32-bit integer to a 64-bit integer
421-
* `sint32_from_float64`: truncate a 64-bit float to a signed integer
422-
* `sint32_from_float32`: truncate a 32-bit float to a signed integer
423-
* `uint32_from_float64`: truncate a 64-bit float to an unsigned integer
424-
* `uint32_from_float32`: truncate a 32-bit float to an unsigned integer
425-
* `sint64_from_float64`: truncate a 64-bit float to a signed integer
426-
* `sint64_from_float32`: truncate a 32-bit float to a signed integer
427-
* `uint64_from_float64`: truncate a 64-bit float to an unsigned integer
428-
* `uint64_from_float32`: truncate a 32-bit float to an unsigned integer
429-
* `int32_from_float32_bits`: reinterpret the bits of a 32-bit float as a 32-bit integer
430-
* `int64_from_float64_bits`: reinterpret the bits of a 64-bit float as a 64-bit integer
431-
* `float64_from_float32`: promote a 32-bit float to a 64-bit float
432-
* `float64_from_sint32`: convert a signed integer to a 64-bit float
433-
* `float64_from_uint32`: convert an unsigned integer to a 64-bit float
434-
* `float64_from_sint64`: convert a signed integer to a 64-bit float
435-
* `float64_from_uint64`: convert an unsigned integer to a 64-bit float
436-
* `float32_from_float64`: demote a 64-bit float to a 32-bit float
437-
* `float32_from_sint32`: convert a signed integer to a 32-bit float
438-
* `float32_from_uint32`: convert an unsigned integer to a 32-bit float
439-
* `float32_from_sint64`: convert a signed integer to a 32-bit float
440-
* `float32_from_uint64`: convert an unsigned integer to a 32-bit float
441-
* `float32_from_int32_bits`: reinterpret the bits of a 32-bit integer as a 32-bit float
442-
* `float64_from_int64_bits`: reinterpret the bits of a 64-bit integer as a 64-bit float
418+
* `int32.wrap[int64]`: wrap a 64-bit integer to a 32-bit integer
419+
* `int32.trunc_signed[float32]`: truncate a 32-bit float to a signed 32-bit integer
420+
* `int32.trunc_signed[float64]`: truncate a 64-bit float to a signed 32-bit integer
421+
* `int32.trunc_unsigned[float32]`: truncate a 32-bit float to an unsigned 32-bit integer
422+
* `int32.trunc_unsigned[float64]`: truncate a 64-bit float to an unsigned 32-bit integer
423+
* `int32.reinterpret[float32]`: reinterpret the bits of a 32-bit float as a 32-bit integer
424+
* `int64.extend_signed[int32]`: extend a signed 32-bit integer to a 64-bit integer
425+
* `int64.extend_unsigned[int32]`: extend an unsigned 32-bit integer to a 64-bit integer
426+
* `int64.trunc_signed[float32]`: truncate a 32-bit float to a signed 64-bit integer
427+
* `int64.trunc_signed[float64]`: truncate a 64-bit float to a signed 64-bit integer
428+
* `int64.trunc_unsigned[float32]`: truncate a 32-bit float to an unsigned 64-bit integer
429+
* `int64.trunc_unsigned[float64]`: truncate a 64-bit float to an unsigned 64-bit integer
430+
* `int64.reinterpret[float64]`: reinterpret the bits of a 64-bit float as a 64-bit integer
431+
* `float32.demote[float64]`: demote a 64-bit float to a 32-bit float
432+
* `float32.cvt_signed[int32]`: convert a signed 32-bit integer to a 32-bit float
433+
* `float32.cvt_signed[int64]`: convert a signed 64-bit integer to a 32-bit float
434+
* `float32.cvt_unsigned[int32]`: convert an unsigned 32-bit integer to a 32-bit float
435+
* `float32.cvt_unsigned[int64]`: convert an unsigned 64-bit integer to a 32-bit float
436+
* `float32.reinterpret[int32]`: reinterpret the bits of a 32-bit integer as a 32-bit float
437+
* `float64.promote[float32]`: promote a 32-bit float to a 64-bit float
438+
* `float64.cvt_signed[int32]`: convert a signed 32-bit integer to a 64-bit float
439+
* `float64.cvt_signed[int64]`: convert a signed 64-bit integer to a 64-bit float
440+
* `float64.cvt_unsigned[int32]`: convert an unsigned 32-bit integer to a 64-bit float
441+
* `float64.cvt_unsigned[int64]`: convert an unsigned 64-bit integer to a 64-bit float
442+
* `float64.reinterpret[int64]`: reinterpret the bits of a 64-bit integer as a 64-bit float
443443

444444
Wrapping and extension of integer values always succeed.
445445
Promotion and demotion of floating point values always succeed.
@@ -454,6 +454,6 @@ Reinterpretations always succeed.
454454
Conversions from integer to floating point always succeed, though they may
455455
overflow to infinity or negative infinity as specified by IEEE-754.
456456

457-
Conversion from floating point to integer where IEEE-754 would specify an
457+
Truncation from floating point to integer where IEEE-754 would specify an
458458
invalid operation exception (e.g. when the floating point value is NaN or
459459
outside the range which rounds to an integer in range) traps.

0 commit comments

Comments
 (0)