[PATCH] Fix *ivdep* tests on SPARC etc. (PR testsuite/88369, take 2)
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Dec 10 12:15:00 GMT 2018
Hi Jakub,
> As mentioned in the PR, another testcase was missed, this patch modifies
> that one too. Ok for trunk?
>
> 2018-12-10 Jakub Jelinek <jakub@redhat.com>
>
> PR testsuite/88369
> * gcc.dg/vect/vect-ivdep-1.c: Prune versioning for alignment messages.
> * gcc.dg/vect/vect-ivdep-2.c: Likewise.
> * gcc.dg/vect/nodump-vect-opt-info-1.c: Likewise.
> * g++.dg/vect/pr33426-ivdep.cc: Likewise.
> * g++.dg/vect/pr33426-ivdep-2.cc: Likewise.
> * g++.dg/vect/pr33426-ivdep-3.cc: Likewise.
> * g++.dg/vect/pr33426-ivdep-4.cc: Likewise.
> --- gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c.jj 2018-09-29 18:03:11.562727541 +0200
> +++ gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c 2018-12-10 12:57:56.714484728 +0100
> @@ -6,6 +6,7 @@ vadd (int *dst, int *op1, int *op2, int
> {
> /* { dg-optimized "loop vectorized" "" { target *-*-* } .+2 } */
> /* { dg-optimized "loop versioned for vectorization because of possible aliasing" "" { target *-*-* } .+1 } */
> +/* { dg-prune-output " version\[^\n\r]* alignment" } */
> for (int i = 0; i < count; ++i)
> dst[i] = op1[i] + op2[i];
> }
this is wrong: either move the dg-prune-output before the first
dg-optimized (preferably) or adjust the line number distances to account
for the additional line.
Ok with that fixed.
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list