Displaying 1 result from an estimated 1 matches for "00000012h".
Did you mean:
00000012
2012 Mar 27
1
[LLVMdev] Compiling integer mod
...x
movl %ecx, %eax
ret
The visual studio compiler (/O2) instead issues the idiv instruction:
PUBLIC _f
; Function compile flags: /Ogtpy
; COMDAT _f
_TEXT SEGMENT
_n$ = 8 ; size = 4
_f PROC ; COMDAT
; File c:\a.c
; Line 6
mov eax, DWORD PTR _n$[esp-4]
inc eax
cdq
mov ecx, 18 ; 00000012H
idiv ecx
mov eax, edx
; Line 7
ret 0
_f ENDP
_TEXT ENDS
END