ARM: optimised mid_pred()