Re: [PATCH] Fix neg_const_int (PR rtl-optimization/78546)

2016-11-28 Thread Jeff Law
On 11/28/2016 10:30 AM, Jakub Jelinek wrote: Hi! For TImode and wider, neg_const_int returns wrong value for (const_int 0x8000) - the argument unmodified. The function comment above the function kind of suggests that it truncates, but I fail to see which caller might benefit from suc

[PATCH] Fix neg_const_int (PR rtl-optimization/78546)

2016-11-28 Thread Jakub Jelinek
Hi! For TImode and wider, neg_const_int returns wrong value for (const_int 0x8000) - the argument unmodified. The function comment above the function kind of suggests that it truncates, but I fail to see which caller might benefit from such behavior, it would mean having to guard again