[Bug middle-end/19597] [4.0 Regression] avr-gcc 4.0, multiplication by constant, very long code

bernie at develer dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 24 00:49:00 GMT 2005


------- Additional Comments From bernie at develer dot com  2005-01-24 00:49 -------
Confirmed:

--- 3.4 output ---
        ldi r18,lo8(24011)
        ldi r19,hi8(24011)
        mul r24,r18
        movw r20,r0
        mul r24,r19
        add r21,r0
        mul r25,r18
        add r21,r0
        clr r1
        movw r24,r20
------------------

--- 4.0 output ---
        movw r22,r24
        movw r18,r24
        add r18,r24
        adc r19,r25
        add r18,r18
        adc r19,r19
        add r18,r24
        adc r19,r25
        movw r24,r18
        add r24,r18
        adc r25,r19
        add r24,r24
        adc r25,r25
        add r24,r24
        adc r25,r25
        sub r24,r18
        sbc r25,r19
        movw r18,r24
        add r18,r24
        adc r19,r25
        add r18,r18
        adc r19,r19
        add r18,r18
        adc r19,r19
        sub r18,r24
        sbc r19,r25
        movw r20,r18
        add r20,r18
        adc r21,r19
        add r20,r20
        adc r21,r21
        add r20,r20
        adc r21,r21
        sub r20,r18
        sbc r21,r19
        movw r24,r20
        add r24,r20
        adc r25,r21
        add r24,r24
        adc r25,r25
        add r24,r24
        adc r25,r25
        sub r24,r20
        sbc r25,r21
        add r24,r24
        adc r25,r25
        add r24,r22
        adc r25,r23
------------------


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-24 00:49:29
               date|                            |


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



More information about the Gcc-bugs mailing list