]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
test: Fix FAIL of vect-sdiv-pow2-1.c for RVV test: Fix FAIL of vect-sdiv-pow2-1.c...
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 7 Nov 2023 03:50:14 +0000 (11:50 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 7 Nov 2023 07:27:08 +0000 (15:27 +0800)
RVV didn't explictly enable DIV_POW2 optab but we cen vectorize it.
We should check pattern recognition instead of explicit pattern check.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/vect-sdiv-pow2-1.c: Fix dump check.

gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c

index 49ecbe216f2740329d5cd2169527a9aeb7ab844c..8056c2a6748fe2337d480c0e2185de728926cdb4 100644 (file)
@@ -79,5 +79,5 @@ main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump {\.DIV_POW2} "vect" { target vect_sdiv_pow2_si } } } */
+/* { dg-final { scan-tree-dump "vect_recog_divmod_pattern: detected" "vect" } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loop" 18 "vect" { target vect_sdiv_pow2_si } } } */