This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/28395] Improved division-by-constant code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2006 15:50:22 -0000
- Subject: [Bug middle-end/28395] Improved division-by-constant code
- References: <bug-28395-12956@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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