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]

Re: Patch for gcc.dg/vect/slp-7.c on IA64



<sje@cup.hp.com> wrote on 24/09/2008 19:34:47:

> Here is a new version of the gcc.dg/vect/slp-7.c patch.  I removed the
> vect_unpack check completely and changed vect_int_mult to
vect_short_mult.
> I kept the alignment changes.
>
> Retested on IA64 Linux.
>
> OK for checkin?

O.K. with me.

Thanks,
Ira

>
> Steve Ellcey
> sje@cup.hp.com
>
>
> 2008-09-24  Steve Ellcey  <sje@cup.hp.com>
>
>    * gcc.dg/vect/slp-7.c: Add alignment attribute, change target tests.
>
>
> Index: gcc.dg/vect/slp-7.c
> ===================================================================
> --- gcc.dg/vect/slp-7.c   (revision 140623)
> +++ gcc.dg/vect/slp-7.c   (working copy)
> @@ -6,8 +6,8 @@
>
>  #define N 8
>
> -unsigned int in[N*8] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
> 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,
>
39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63};

> -unsigned short in2[N*16] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
> 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,
> 38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,
> 60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,
> 22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,
> 44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63};
> +unsigned int in[N*8]  __attribute__ ((__aligned__(16))) = {0,1,2,3,
> 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,
> 28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,
> 50,51,52,53,54,55,56,57,58,59,60,61,62,63};
> +unsigned short in2[N*16]  __attribute__ ((__aligned__(16))) = {0,1,
> 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,
> 27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
> 49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,
> 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
> 33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,
> 55,56,57,58,59,60,61,62,63};
>
>  int
>  main1 ()
> @@ -121,9 +121,9 @@ int main (void)
>    return 0;
>  }
>
> -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect"
> { target { vect_unpack && vect_int_mult } } } }*/
> -/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect"
> { target { ! { vect_unpack && vect_int_mult } } } } }*/
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP"
> 3 "vect"  { target { vect_unpack && vect_int_mult } } } } */
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP"
> 2 "vect"  { target { ! { vect_unpack && vect_int_mult } } } } } */
> +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect"
> { target vect_short_mult } } }*/
> +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect"
> { target { ! { vect_short_mult } } } } }*/
> +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP"
> 3 "vect"  { target vect_short_mult } } } */
> +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP"
> 2 "vect"  { target { ! { vect_short_mult } } } } } */
>  /* { dg-final { cleanup-tree-dump "vect" } } */
>


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