Add or and xor replacement