re PR tree-optimization/93098 (ICE with negative shifter)
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Jan 2020 00:20:39 +0000 (01:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Jan 2020 00:20:39 +0000 (01:20 +0100)
commit2efa10d528bb20bff299a899b1f226b6174b50da
treea7f908cf8e704324b930e7585e10d53058793740
parentb3b13bf18692701d54d6754ba7e9f155906c8d17
re PR tree-optimization/93098 (ICE with negative shifter)

PR tree-optimization/93098
* match.pd (popcount): For shift amounts, use integer_onep
or wi::to_widest () == cst instead of tree_to_uhwi () == cst
tests.  Make sure that precision is power of two larger than or equal
to 16.  Ensure shift is never negative.  Use HOST_WIDE_INT_UC macro
instead of ULL suffixed constants.  Formatting fixes.

* gcc.c-torture/compile/pr93098.c: New test.

From-SVN: r279809
gcc/ChangeLog
gcc/ChangeLog-2019 [new file with mode: 0644]
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/ChangeLog-2019 [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr93098.c [new file with mode: 0644]