------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-13 14:01 ------- On PPC, we get optimal and almost unswitched loop: L4: ble- cr4,L7 li r31,0 L6: addi r31,r31,1 bl _bar cmpw cr7,r30,r31 bne+ cr7,L6 L7: addi r29,r29,1 cmpw cr7,r28,r29 bne+ cr7,L4
cr4 is a callee save register. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23855