re PR tree-optimization/81503 (Wrong code at -O2)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 29 Aug 2017 14:41:53 +0000 (14:41 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Tue, 29 Aug 2017 14:41:53 +0000 (14:41 +0000)
commit8eb91869020f454f3af6ffa7dd4f401f9f5dc680
tree19ab13514dabe8402f00630db523b30c00b46403
parent9dc3d6a96167b4c84824be5e472fba4956297033
re PR tree-optimization/81503 (Wrong code at -O2)

[gcc]

2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81503
* gcc.c-torture/execute/pr81503.c: New file.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r251414
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr81503.c [new file with mode: 0644]