26 lines
795 B
Plaintext
26 lines
795 B
Plaintext
;;! target = "x86_64"
|
|
|
|
(module
|
|
(func (result i32)
|
|
(i32.const 0x80000000)
|
|
(i32.const -1)
|
|
(i32.rem_s)
|
|
)
|
|
)
|
|
;; 0: 55 push rbp
|
|
;; 1: 4889e5 mov rbp, rsp
|
|
;; 4: b9ffffffff mov ecx, 0xffffffff
|
|
;; 9: b800000080 mov eax, 0x80000000
|
|
;; e: 83f900 cmp ecx, 0
|
|
;; 11: 0f8502000000 jne 0x19
|
|
;; 17: 0f0b ud2
|
|
;; 19: 83f9ff cmp ecx, -1
|
|
;; 1c: 0f850a000000 jne 0x2c
|
|
;; 22: b800000000 mov eax, 0
|
|
;; 27: e903000000 jmp 0x2f
|
|
;; 2c: 99 cdq
|
|
;; 2d: f7f9 idiv ecx
|
|
;; 2f: 4889d0 mov rax, rdx
|
|
;; 32: 5d pop rbp
|
|
;; 33: c3 ret
|