f32.neg
f32 unary neg operation.
core0x8C
Syntax
f32.neg
Stack Effect
[f32] -> [f32]Opcode
- Hex
0x8C- Decimal
140- Bytes
[0x8c]- Encoding
0x8C- 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.neg example
)