This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] Fix gcc.dg/vect/no-section-anchors-vect-69.c on SPARC etc. (PR tree-optimization/80925)


Since this patch

2017-07-31  Steve Ellcey  <sellcey@cavium.com>

        PR tree-optimization/80925
        * gcc.dg/vect/no-section-anchors-vect-69.c: Add
        --param vect-max-peeling-for-alignment=0 option.
        Remove unaligned access and peeling checks.
        * gcc.dg/vect/section-anchors-vect-69.c: Ditto.

gcc.dg/vect/no-section-anchors-vect-69.c FAILs on a couple of targets,
including ia64, aarch64, powerpc64lc, and sparc:

FAIL: gcc.dg/vect/no-section-anchors-vect-69.c scan-tree-dump-times vect "vectorized 4 loops" 1

Steve suggested the fix implemented below in the PR, which I've now
finally tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11, both
trunk and gcc-8 branch.

Ok for both?

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2018-08-02  Steve Ellcey  <sellcey@cavium.com>
	    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR tree-optimization/80925
	* gcc.dg/vect/no-section-anchors-vect-69.c: Expect 3 loops
	vectorized on !vect_hw_misalign targets.

# HG changeset patch
# Parent  171d5cc88d38a18885744478b2e811ef8f59ee28
Fix gcc.dg/vect/no-section-anchors-vect-69.c on SPARC etc. (PR tree-optimization/80925)

diff --git a/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c b/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
--- a/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
+++ b/gcc/testsuite/gcc.dg/vect/no-section-anchors-vect-69.c
@@ -119,5 +119,6 @@ int main (void)
   return main1 ();
 } 
 
-/* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" } } */
-/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { {! vector_alignment_reachable} && {! vect_hw_misalign} } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 4 loops" 1 "vect" { target vect_hw_misalign } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { target { ! vect_hw_misalign } } } } */
+/* { dg-final { scan-tree-dump-times "Alignment of access forced using versioning" 1 "vect" { target { { ! vector_alignment_reachable } && { ! vect_hw_misalign } } } } } */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]