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

Commit 85e6e7a

Browse files
Clarify that the SIMD narrowing instructions interpret their inputs as signed integers.
1 parent 8ecb31f commit 85e6e7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

proposals/simd/SIMD.md

+2
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ Converts two input vectors into a smaller lane vector by narrowing each lane,
795795
signed or unsigned. The signed narrowing operation will use signed saturation
796796
to handle overflow, 0x7f or 0x80 for i8x16, the unsigned narrowing operation
797797
will use unsigned saturation to handle overflow, 0x00 or 0xff for i8x16.
798+
Regardless of the whether the operation is signed or unsigned, the input lanes
799+
are interpreted as signed integers.
798800

799801
### Integer to integer widening
800802
* `i16x8.widen_low_i8x16_s(a: v128) -> v128`

0 commit comments

Comments
 (0)