f32.demote_f64
f32.demote_f64 conversion/reinterpretation instruction.
core0xB6
Syntax
f32.demote_f64
Stack Effect
[f64] -> [f32]Opcode
- Hex
0xB6- Decimal
182- Bytes
[0xb6]- Encoding
0xB6- Category
- numeric
Browser Support
Core WebAssembly instruction.
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
;; f32.demote_f64 example
)