Files
wasmtime/winch/filetests/filetests/x64/i32_mul/mixed.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
376 B
Plaintext

;;! target = "x86_64"
(module
(func (result i32)
(i32.const -1)
(i32.const 1)
(i32.mul)
)
)
;; 0: 55 push rbp
;; 1: 4889e5 mov rbp, rsp
;; 4: b8ffffffff mov eax, 0xffffffff
;; 9: 6bc001 imul eax, eax, 1
;; c: 5d pop rbp
;; d: c3 ret