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

Commit 54fdb47

Browse files
authored
v128.const text (#65)
1 parent 324cfa1 commit 54fdb47

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

proposals/simd/TextSIMD.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Text format for SIMD
2+
3+
### v128.const
4+
5+
The `v128.const` instruction has multiple valid text formats corresponding to
6+
different lane interpretations. The valid text formats are
7+
8+
```
9+
v128.const i8x16 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8
10+
v128.const i16x8 i16 i16 i16 i16 i16 i16 i16 i16
11+
v128.const i32x4 i32 i32 i32 i32
12+
v128.const i64x2 i64 i64
13+
v128.const f32x4 f32 f32 f32 f32
14+
v128.const f64x2 f64 f64
15+
```
16+
17+
The canonical text format used for printing `v128.const` instructions is
18+
19+
```
20+
v128.const i32x4 0xNNNNNNNN 0xNNNNNNNN 0xNNNNNNNN 0xNNNNNNNN
21+
```

0 commit comments

Comments
 (0)