MSP430: Fix bugs in constant optimization for ALU instructions.