[Bug middle-end/17958] expand_divmod fails to optimize division of 64-bit quantity by small constant when BITS_PER_WORD is 32

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 12 22:55:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-12 22:55 -------
not all constants though (power of 2 are fine) for an example 16:
        mr r12,r3
        srawi r11,r3,31
        srawi r9,r11,31
        srawi r10,r11,31
        srwi r10,r9,28
        li r9,0
        addc r12,r10,r4
        adde r11,r9,r3
        srwi r4,r12,4
        insrwi r4,r11,4,0
        srawi r3,r11,4


Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|rtl-optimization            |middle-end
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-12 22:55:35
               date|                            |


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



More information about the Gcc-bugs mailing list