Files
wasmtime/winch/filetests/filetests/x64/i32_mul/max.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

15 lines
377 B
Plaintext

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