Skip to content

Commit 001f9a5

Browse files
authored
docs: fix {i32x4,i64x2}.extract_lane instructions in README (#105)
The `i32x4` and `i64x2` only have `extract_lane` (there is no signed or unsigned version). See https://webassembly.github.io/spec/core/syntax/instructions.html#vector-instructions for details.
1 parent 4e65f00 commit 001f9a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ Creates a call to a function. Note that we must specify the return type here as
837837
* Module#i16x8.**load8x8_u**(offset: `number`, align: `number`, ptr: `ExpressionRef`): `ExpressionRef`
838838
>
839839
* Module#i32x4.**splat**(value: `ExpressionRef`): `ExpressionRef`
840-
* Module#i32x4.**extract_lane_s**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
841-
* Module#i32x4.**extract_lane_u**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
840+
* Module#i32x4.**extract_lane**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
842841
* Module#i32x4.**replace_lane**(vec: `ExpressionRef`, index: `number`, value: `ExpressionRef`): `ExpressionRef`
843842
* Module#i32x4.**eq**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
844843
* Module#i32x4.**ne**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
@@ -874,8 +873,7 @@ Creates a call to a function. Note that we must specify the return type here as
874873
* Module#i32x4.**load16x4_u**(offset: `number`, align: `number`, ptr: `ExpressionRef`): `ExpressionRef`
875874
>
876875
* Module#i64x2.**splat**(value: `ExpressionRef`): `ExpressionRef`
877-
* Module#i64x2.**extract_lane_s**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
878-
* Module#i64x2.**extract_lane_u**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
876+
* Module#i64x2.**extract_lane**(vec: `ExpressionRef`, index: `number`): `ExpressionRef`
879877
* Module#i64x2.**replace_lane**(vec: `ExpressionRef`, index: `number`, value: `ExpressionRef`): `ExpressionRef`
880878
* Module#i64x2.**neg**(value: `ExpressionRef`): `ExpressionRef`
881879
* Module#i64x2.**any_true**(value: `ExpressionRef`): `ExpressionRef`

0 commit comments

Comments
 (0)