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:52:46 -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 #5 from pinskia at gcc dot gnu dot org 2006-07-16 15:52 -------
In fact we do it also for signed integers (PPC asm this time):
_f:
lis r0,0x6666
srawi r2,r3,31
ori r0,r0,26215
mulhw r3,r3,r0
srawi r3,r3,2
subf r3,r2,r3
blr
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28395