Branch prediction depends upon which processor family and which exact processor. Branch prediction has changed over time!
For example on older 80x86 processors, "if a branch to an earlier address, then it is predicted that the branch will be taken! As it is a loop!" On newer processors last branch will be remembered and used as a hint. There are also hint pre-processor instructions as to what the branch condition will do!