]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] Fix PR94079 by respecting vect_hw_misalign [PR94079]
authorKewen Lin <linkw@linux.ibm.com>
Thu, 9 Apr 2020 02:52:00 +0000 (21:52 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 9 Apr 2020 02:52:00 +0000 (21:52 -0500)
This is another vect case which requires special handling with
vect_hw_misalign.  The alignment of the second part requires
misaligned vector access supports.  This patch is to adjust
the related guard condition and comments.

Verified it on ppc64-redhat-linux (Power7 BE).

2020-04-09  Kewen Lin  <linkw@gcc.gnu.org>

gcc/testsuite/ChangeLog

    PR testsuite/94023
    * gfortran.dg/vect/pr83232.f90: Expect 2 rather than 3 times SLP on
    non-vect_hw_misalign targets.

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/vect/pr83232.f90

index 6f26fc6cdc275b162c826d54a084aef028000ca4..b0ebeb487926256aff45ee85b887f74d4263dc9b 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-09  Kewen Lin  <linkw@gcc.gnu.org>
+
+       PR testsuite/94023
+       * gfortran.dg/vect/pr83232.f90: Expect 2 rather than 3 times SLP on
+       non-vect_hw_misalign targets.
+
 2020-04-08  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/94526
index a35357839fedc3695aa753090a459e07dc7dd5c5..af883421be1a57dd822bd7e036382918dae1281a 100644 (file)
@@ -27,5 +27,7 @@
       call foo (Einc)
       END SUBROUTINE
 
-! We should vectorize (1), (2) and (3)
-! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp1" } }
+! We should vectorize (1), (2) and (3) under vect_hw_misalign.
+! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp1" { target vect_hw_misalign } } }
+! But only (1) and (3) under !vect_hw_misalign due to the alignment of (2).
+! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "slp1" { target { ! vect_hw_misalign } } } }