testsuite: Adjust possibly fragile slp-perm-9.c [PR104015]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 19 Jan 2022 02:31:46 +0000 (20:31 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 19 Jan 2022 06:04:02 +0000 (00:04 -0600)
commitfc6cd798c07a94d6b0bcc16b175e6e5d6e594c7e
tree7e39d8494545bdb8e94f34f65b243bc32fbe1772
parentbd0ef3534816a1b8ffad544d9ed720690a97d7cc
testsuite: Adjust possibly fragile slp-perm-9.c [PR104015]

As Richard pointed out in PR104015, the test case slp-perm-9.c
can be fragile when vectorizer tries to use different
vectorisation strategies.

As suggested, this patch tries to make the check not sensitive
on the re-trying times by removing the times checking.  To still
retain the test coverage on unnecessary re-trying, for example
it exposes this PR104015 on Power9, I added two test cases to
powerpc testsuite.

gcc/testsuite/ChangeLog:

PR tree-optimization/104015
* gcc.dg/vect/slp-perm-9.c: Adjust.
* gcc.target/powerpc/pr104015-1.c: New test.
* gcc.target/powerpc/pr104015-2.c: New test.
gcc/testsuite/gcc.dg/vect/slp-perm-9.c
gcc/testsuite/gcc.target/powerpc/pr104015-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr104015-2.c [new file with mode: 0644]