testsuite: Add testcase for recently fixed PR [PR101159]
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Jun 2021 13:22:51 +0000 (15:22 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 22 Jun 2021 13:22:51 +0000 (15:22 +0200)
commit3adb9ac6626c15ba21e4eaf27fec95688a3ca8c2
treea4ba9a4d0446502288f835834584cf1313d3c86d
parent9b613e825d706b18f69e40edaee3eaf27d28f5cb
testsuite: Add testcase for recently fixed PR [PR101159]

On Tue, Jun 22, 2021 at 11:00:51AM +0200, Richard Biener wrote:
> 2021-06-22  Richard Biener  <rguenther@suse.de>
>
>       PR tree-optimization/101159
>       * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
>       missing NULL vectype check.

The following patch adds the testcase for it, IMHO it can't hurt and
from my experience testcases often trigger other bugs later on (rather
than the original bugs reappearing, though even that happens),
and also fixes a couple of typos in the new function.

2021-06-22  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/101159
* tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
comment typos.

* gcc.c-torture/compile/pr101159.c: New test.
gcc/testsuite/gcc.c-torture/compile/pr101159.c [new file with mode: 0644]
gcc/tree-vect-patterns.c