glsl/lower_instruction: handle denorms and overflow in ldexp correctly