re PR middle-end/77436 (Incorrect constant result for summing loop inserted)
authorRichard Biener <rguenther@suse.de>
Thu, 1 Sep 2016 13:38:25 +0000 (13:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 1 Sep 2016 13:38:25 +0000 (13:38 +0000)
commit2a99de7b1ebe7b38e756dc736b59a684a8d87e1d
tree2c5540b959e469b5363ccd20b388751a071d7d79
parentbc4ec5430bf8225f515242fc7c030eb891c32301
re PR middle-end/77436 (Incorrect constant result for summing loop inserted)

2016-09-01  Richard Biener  <rguenther@suse.de>

PR middle-end/77436
* tree-chrec.c (tree_fold_binomial): Use widest_int, properly
check whether the result fits the desired result type.

* gcc.dg/torture/pr77436.c: New testcase.

From-SVN: r239937
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77436.c [new file with mode: 0644]
gcc/tree-chrec.c