I wrote:
> Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
>> if (num < (float4)INT_MIN || num >= -(float4)INT_MIN || ...
> Meh. Seems to me that's relying on pretty much the same assumptions
> and throwing in an extra dollop of obscurantism on top.
mmm ... but on the other hand, it means we don't need to write the
test differently depending on whether we think INTxx_MAX will get
rounded. So that's worth something.
regards, tom lane