v128.const
v128.const SIMD vector operation.
simd0xFD 0x0C
Syntax
v128.const
Stack Effect
SIMD lane operands -> SIMD resultOpcode
- Hex
0xFD 0x0C- Decimal
253 12- Bytes
[0xfd, 0x0c]- Prefix
0xFDSIMD extension space- Encoding
0xFD 0x0C <value:v128-bytes>- Immediates
value:v128-bytes— 16 bytes
- Category
- simd
- Proposal
- simd
Browser Support
Feature-detect runtime support before executing examples.
Validation Rules
- Operands and result types must match the instruction signature.
- The instruction must appear in a valid structured control context.
Common Mistakes
- Using the instruction with the wrong operand type.
- Forgetting that WAT validation is stack-typed.
(func $example
;; v128.const example
)