http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36758
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.7.0 Summary|[4.4/4.5/4.6/4.7 |[4.4/4.5/4.6 Regression] |Regression] addition moved |addition moved out of the |out of the loop when used |loop when used with an |with an argument |argument Known to fail| | --- Comment #25 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-13 10:56:46 UTC --- I get, on trunk, .L2: addi 3,1,8 bl f0 cmpwi 7,3,0 bne+ 7,.L2 for ppc and .L2: leaq 12(%rsp), %rdi call f0 testl %eax, %eax jne .L2 on x86_64. Thus, fixed on trunk (at least).