Implement branchTestFoo(Register tag).