]> git.ipfire.org Git - thirdparty/gcc.git/commit
test: Fix FAIL of bb-slp-cond-1.c for RVV
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 6 Nov 2023 23:03:43 +0000 (07:03 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Nov 2023 03:32:18 +0000 (11:32 +0800)
commitee7ba242cf43884477f09e59d9b80af4bf91d143
treeef32381b67564c3e95c821301eddd746058a7122
parent942ff588ba257d530b671019716275f9ef04041d
test: Fix FAIL of bb-slp-cond-1.c for RVV

This patch fixes:
FAIL: gcc.dg/vect/bb-slp-cond-1.c -flto -ffat-lto-objects  scan-tree-dump-times vect "loop vectorized" 1
FAIL: gcc.dg/vect/bb-slp-cond-1.c scan-tree-dump-times vect "loop vectorized" 1

For RVV, "loop vectorized" appears 2 times instead of 1. Because:
optimized: loop vectorized using 16 byte vectors
optimized: loop vectorized using 8 byte vectors

As long as targets have both 64bit and 128bit vectors, it will occur 2 times.
2 targets are same situation, one is AMDGCN, the other is RVV.

Replace it target amdgcn with vect64 && vect128 to make test more general and easy maintain.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/bb-slp-cond-1.c: Fix FAIL.
gcc/testsuite/gcc.dg/vect/bb-slp-cond-1.c