Path: blob/main/files/en-us/webassembly/reference/numeric/right_shift/index.md
6514 views
------{{WebAssemblySidebar}}
The shr instructions, short for shift-right, are used for performing a bitwise right-shift, similar to the >>> operator in other languages.
{{EmbedInteractiveExample("pages/wat/shr.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
i32.shr_s | 0x75 |
i32.shr_u | 0x76 |
i64.shr_s | 0x87 |
i64.shr_u | 0x88 |