------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-09 05:48 ------- For x86, 3.4.0 produces: movl 4(%esp), %edx movsbl a+1(%edx),%eax movsbl b+1(%edx),%edx addl %edx, %eax ret
While 4.0.0 produced: movl 4(%esp), %edx incl %edx movsbl a(%edx),%eax movsbl b(%edx),%edx addl %edx, %eax ret (Note this is also not really a target issue as PPC can be helped by this also by having a+1 and b+1 and no need for an extra increment of 1 to the argument). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org GCC target triplet|x86_64-*-*, i?86-*-* | Known to fail| |4.0.0 4.1.0 4.2.0 Known to work| |3.4.0 Summary|[4.1/4.2 Regression] address|[4.0/4.1/4.2 Regression] |selection does not work |address selection does not |correctly |work correctly http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28940