Path: blob/main/files/en-us/webassembly/reference/numeric/extend/index.md
6510 views
------{{WebAssemblySidebar}}
The extend instructions, are used to convert (extend) numbers of type i32 to type i64. There are signed and unsigned versions of this instruction.
{{EmbedInteractiveExample("pages/wat/extend.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
i64.extend_i32_s | 0xac |
i64.extend_i32_u | 0xad |