fix PR6533 by updating the br(xor) code to remember the case