Roman Kononov <kononov(at)dls(dot)net> writes:
> The below test cases show the obvious inconsistency between different
> integer types.
[ shrug... ] The << and >> operators just expose the behavior of the
local C compiler's shift operators, and it's clearly stated in the C
spec that shifting by more than the word width produces unspecified
results. I don't see a bug here, any more than it's a bug that the
floating point operators expose machine-specific behavior.
regards, tom lane