Fix Issue 11565 - [Optimizer] Zeroes out the higher 32bits of register in ?: expression