(i386-linux x sh-elf) dead postinc generated

Toshiyasu Morita tm@netcom.com
Fri Jun 16 19:08:00 GMT 2000


version: CVS today
   host: i386-linux
 target: sh-elf

With the file "layer3.i" from stress-1.14.tar.gz using the options:

-O2 -m4-single-only -ml -S 

I see the following dead postincrement generated:

3400:./layer3.i    ****           v = gr_info->pow2gain[((*scf++) + 
(*pretab++)) << shift];
 8868                   .LM925:
 8869 1788 E857                 mov.l   @(32,r14),r7
 8870 178a 40E1                 mov     #64,r1
 8871 178c EC31                 add     r14,r1
 8872 178e 7660                 mov.l   @r7+,r0
 8873 1790 781E                 mov.l   r7,@(32,r14)
 8874 1792 1752                 mov.l   @(28,r1),r2
 8875 1794 0472                 add     #4,r2
 8876 1796 2711                 mov.l   r2,@(28,r1)
 8877 1798 FC72                 add     #-4,r2
 8878 179a EB57                 mov.l   @(44,r14),r7
 8879 179c 2661                 mov.l   @r2+,r1         <- dead postinc
 8880 179e EC52                 mov.l   @(48,r14),r2


Toshi



More information about the Gcc-bugs mailing list