Files
wasmtime/winch/filetests/filetests/x64/i64_mul/const.wat
Saúl Cabrera 91c8114f00 winch: Add support for integer multiplication in x64. (#5769)
This commit adds support for the `<i32|i64>.mul` WebAssembly instructions in x64.
2023-02-13 21:20:36 +00:00

16 lines
365 B
Plaintext

;;! target = "x86_64"
(module
(func (result i64)
(i64.const 10)
(i64.const 20)
(i64.mul)
)
)
;; 0: 55 push rbp
;; 1: 4889e5 mov rbp, rsp
;; 4: 48c7c00a000000 mov rax, 0xa
;; b: 486bc014 imul rax, rax, 0x14
;; f: 5d pop rbp
;; 10: c3 ret