rs6000/test: Add -fno-vect-cost-model to conv-vectorize-[12].c
authorKewen Lin <linkw@linux.ibm.com>
Fri, 17 Jul 2020 05:31:03 +0000 (00:31 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Fri, 17 Jul 2020 05:31:03 +0000 (00:31 -0500)
commit0757d3660c1c5a63d1e8fbc1350c3ba0bcbf9fdb
tree8cb704cde53d04cc618d2c91454c4dcc3fd0652a
parent96686b3fcd10a6ab55bf09bee324fe91b1fde076
rs6000/test: Add -fno-vect-cost-model to conv-vectorize-[12].c

In my testing with cost tweaking for vector with length, I found
two cases below didn't get the expected output.  Since the expected
instructions reply on the vectorization occurrence, we don't expect
vectorization gets disabled by cost model.

To make it not fragile, the fix is to force it without vect cost model.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/conv-vectorize-1.c: Add option
-fno-vect-cost-model.
* gcc.target/powerpc/conv-vectorize-2.c: Likewise.
gcc/testsuite/gcc.target/powerpc/conv-vectorize-1.c
gcc/testsuite/gcc.target/powerpc/conv-vectorize-2.c