Switch A and B inputs: do not take mask input account if the inputs has
2 inputs (or more) + mask.