Path: blob/main/files/en-us/webassembly/reference/numeric/left_shift/index.md
6510 views
------{{WebAssemblySidebar}}
The shl instructions, short for shift-left, are used for performing a bitwise left-shift, similar to the << operator in other languages.
{{EmbedInteractiveExample("pages/wat/shl.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
i32.shl | 0x74 |
i64.shl | 0x86 |