Kazu Hirata - 2003-10-05

Logged In: YES
user_id=189502

gcc-3.4 will optmize like so

_main:
mov.l #1000,er2
.L2:
add.l #-50,er2
bne .L2
sub.w r0,r0
rts

If you need a loop with the exact number of iterations, you
need to write the entire loop in assembly.