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 #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


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