If you have this code:
if x>=y
// do something
else
// do otherthing
endif
you may write it as:
bge $t0, $t1, taken # branch to taken if x>=y
# do otherthing
b endif
taken:
# do something
endif:
or you may rewrite it to keep the ordering of your high-level statement, jumping with the negated condition:
blt $t0, $t1, else # branch to else if x<y
# do something
b endif
else:
# do otherthing
endif:
If you don't have an "else" part then the second approach leads to less code.
So
if x>=y
// do something
endif
can be translated to this:
blt $t0, $t1, endif # branch to endif if x<y
# do something
endif: