test: Fix FAIL of SAD tests for RVV
commit7ba2d2344c508c825db800f0218f8121887c6852
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 7 Nov 2023 03:36:44 +0000 (7 11:36 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Nov 2023 07:26:17 +0000 (7 15:26 +0800)
treedbb346035d416a6d594465c66651c684d3c9c515
parentd060f8a4fff81a117923adac1e02edb64160b31b
test: Fix FAIL of SAD tests for RVV

RVV didn't explicitly enable SAD optab but we can vectorize it
since loop vectorizer is able to recognize SAD pattern for RVV during analysis.

Current scan check of explicit SAD pattern looks odd,
it should be more reasonable to check recognition of SAD pattern during Loop vectorize analysis.

Other SAD tests like slp-reduc-sad-2.c are checking pattern recognition instead of explicit pattern enable.
Fix SAD dump check to fix the FAILS for RVV.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/slp-reduc-sad.c: Fix check.
* gcc.dg/vect/vect-reduc-sad.c: Ditto.
gcc/testsuite/gcc.dg/vect/slp-reduc-sad.c
gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c