On 03/22/2016 11:40 AM, Richard Henderson wrote:
In PR68142 you added a check for overflow + __INT_MIN__.
I can't figure out why the check for __INT_MIN__, except
that it seems specific to the test case you examined.
And indeed, this test case shows how things go wrong
with other distributed folding leading to overflow.
I added two tests, one signed, one unsigned. The second
verifies that we do still fold for the defined-overflow case.
Ok?
Richi ack'd. I went ahead and committed this to the trunk.
jeff