Fix off-by-one bug in CPU split mask handling