Skip to content

Commit

Permalink
v128.const text (WebAssembly#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlively authored Jan 28, 2019
1 parent 324cfa1 commit 54fdb47
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions proposals/simd/TextSIMD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Text format for SIMD

### v128.const

The `v128.const` instruction has multiple valid text formats corresponding to
different lane interpretations. The valid text formats are

```
v128.const i8x16 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8 i8
v128.const i16x8 i16 i16 i16 i16 i16 i16 i16 i16
v128.const i32x4 i32 i32 i32 i32
v128.const i64x2 i64 i64
v128.const f32x4 f32 f32 f32 f32
v128.const f64x2 f64 f64
```

The canonical text format used for printing `v128.const` instructions is

```
v128.const i32x4 0xNNNNNNNN 0xNNNNNNNN 0xNNNNNNNN 0xNNNNNNNN
```

0 comments on commit 54fdb47

Please sign in to comment.