vect/testsuite: Adjust dumping for fully masking decision
authorKewen Lin <linkw@linux.ibm.com>
Thu, 9 Jul 2020 03:18:54 +0000 (22:18 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 9 Jul 2020 07:21:48 +0000 (02:21 -0500)
As Richard S. suggested in the review of vector with length patch
series, we can use one message on "partial vectors" instead of
"fully with masking".  This patch is to update the dumping string
and related test cases.

Bootstrapped/regtested on aarch64-linux-gnu.

gcc/ChangeLog:

* tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
for fully masking to be more common.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/sve/clastb_1.c: Update dumping string.
* gcc.target/aarch64/sve/clastb_2.c: Likewise.
* gcc.target/aarch64/sve/clastb_3.c: Likewise.
* gcc.target/aarch64/sve/clastb_4.c: Likewise.
* gcc.target/aarch64/sve/clastb_5.c: Likewise.
* gcc.target/aarch64/sve/clastb_6.c: Likewise.
* gcc.target/aarch64/sve/clastb_7.c: Likewise.

gcc/testsuite/gcc.target/aarch64/sve/clastb_1.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_2.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_3.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_4.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_5.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_6.c
gcc/testsuite/gcc.target/aarch64/sve/clastb_7.c
gcc/tree-vect-loop.c

index d3ea52dea475edf67d3a9fd709a9278873f56102..f4445d443ac10202a926a056c10d4fdd4a0af8ab 100644 (file)
@@ -17,5 +17,5 @@ condition_reduction (int *a, int min_v)
   return last;
 }
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\ts[0-9]+, p[0-7], s[0-9]+, z[0-9]+\.s} } } */
index c222b70791258042d79ca9b25fe463775dff5f18..27d4cd94a3cf059626b66db31f081e2aea5cbbc5 100644 (file)
@@ -23,5 +23,5 @@ condition_reduction (TYPE *a, TYPE min_v)
   return last;
 }
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\ts[0-9]+, p[0-7], s[0-9]+, z[0-9]+\.s} } } */
index 5aaa71f948dfe657bb2bbefce0d48639beae2bcf..597f8268413c981f06de596a24ec35ee7743876c 100644 (file)
@@ -5,5 +5,5 @@
 
 #include "clastb_2.c"
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\tb[0-9]+, p[0-7], b[0-9]+, z[0-9]+\.b} } } */
index b4db170ea06b6f6e45547c618d263c9b19f31213..788e29fe982f736f65d7c93c76fce52a21727448 100644 (file)
@@ -5,5 +5,5 @@
 
 #include "clastb_2.c"
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\tw[0-9]+, p[0-7], w[0-9]+, z[0-9]+\.h} } } */
index 28d40a01f93ebeedf86a0ef895d2da20ce1dcc6c..0e7e20b69ec99226539c7b682865ab3cd74d8759 100644 (file)
@@ -5,5 +5,5 @@
 
 #include "clastb_2.c"
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\td[0-9]+, p[0-7], d[0-9]+, z[0-9]+\.d} } } */
index 38632a21be14531e49fb9c43e21746fa0b1958d0..b9d687e059787e15275e488a0a447de06f19e4c4 100644 (file)
@@ -21,5 +21,5 @@ condition_reduction (TYPE *a, TYPE min_v)
   return last;
 }
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\ts[0-9]+, p[0-7], s[0-9]+, z[0-9]+\.s} } } */
index e5307d2edc848f87633a57d2a7f728673fd76841..a9f1a6aea9892947dc4d521942b366ae9c65b2c9 100644 (file)
@@ -4,5 +4,5 @@
 #define TYPE double
 #include "clastb_6.c"
 
-/* { dg-final { scan-tree-dump "using a fully-masked loop." "vect" } } */
+/* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\td[0-9]+, p[0-7], d[0-9]+, z[0-9]+\.d} } } */
index bc913eeeb3628e2b9b29e2cbc0d573db7aac273b..fb56ca48b68c0b83a8e45c7b5e7692b7547bd4bc 100644 (file)
@@ -2177,12 +2177,12 @@ start_over:
        && vect_verify_full_masking (loop_vinfo));
   if (dump_enabled_p ())
     {
-      if (LOOP_VINFO_FULLY_MASKED_P (loop_vinfo))
+      if (LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo))
        dump_printf_loc (MSG_NOTE, vect_location,
-                        "using a fully-masked loop.\n");
+                        "operating on partial vectors.\n");
       else
        dump_printf_loc (MSG_NOTE, vect_location,
-                        "not using a fully-masked loop.\n");
+                        "operating only on full vectors.\n");
     }
 
   /* If epilog loop is required because of data accesses with gaps,