This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/28395] Improved division-by-constant code



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-07-16 15:50 -------
GCC already does something like this.
For /10, GCC produces:
f:
        movl    $-858993459, %eax
        mull    4(%esp)
        shrl    $3, %edx
        movl    %edx, %eax
        ret

Maybe I don't understand what you are requesting.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28395


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]