diff mbox series

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

Message ID ydd7el3oq0c.fsf@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series [testsuite] Fix gcc.dg/vect/no-section-anchors-vect-69.c on SPARC etc. (PR tree-optimization/80925) | expand

Commit Message

Rainer Orth Aug. 6, 2018, 8:31 a.m. UTC
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

Comments

Jeff Law Aug. 6, 2018, 3:59 p.m. UTC | #1
On 08/06/2018 02:31 AM, Rainer Orth wrote:
> 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?
OK.
jeff
diff mbox series

Patch

# 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 } } } } } */