$\require{cancel}$
top: beq r1, r2, OutOfLoop calculations b top OutOfLoop:
top: calculations beq r1, r2 top
beq r1, r2, else then code b done else: else code done:
top: bne r1, r2, endOfLoop code b top endOfLoop:
beq r1 r2, else then code b doneIf else: else code doneIf:
for(i = 0; i < 10; ++i) { if (i %2) { } else { } }