This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Update gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c
- From: Dorit Nuzman <DORIT at il dot ibm dot com>
- To: "H.J. Lu" <hjl at lucon dot org>
- Cc: gcc-patches at gcc dot gnu dot org, harsha dot jagasia at amd dot com
- Date: Tue, 24 Jul 2007 11:17:41 +0300
- Subject: Re: PATCH: Update gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c
> This patch:
>
> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00496.html
>
> causes
>
> gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c to fail
> since gcc now can vectorize 3 loops intead of 1. How should we
> update gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c?
>
I guess we can just apply the same change I applied to
gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c (from the link
above):
Index: testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c
===================================================================
*** testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c
(revision 126381)
--- testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c
(working copy)
*************** int main (void)
*** 46,51 ****
return 0;
}
! /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {
xfail vect_no_int_max } } } */
! /* { dg-final { scan-tree-dump-times "vectorization not profitable" 2
"vect" { xfail vect_no_int_max } } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
--- 46,51 ----
return 0;
}
! /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" {
xfail vect_no_int_max } } } */
! /* { dg-final { scan-tree-dump-times "vectorization not profitable" 0
"vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
dorit
>
> H.J.
> ----
> 2007-07-21 H.J. Lu <hongjiu.lu@intel.com>
>
> * gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c: Updated.
>
> --- gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-
> reduc-1char.c.x86 2007-06-08 13:49:10.000000000 -0700
> +++ gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-
> reduc-1char.c 2007-07-21 16:29:53.000000000 -0700
> @@ -46,6 +46,5 @@ int main (void)
> return 0;
> }
>
> -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"
> { xfail vect_no_int_max } } } */
> -/* { dg-final { scan-tree-dump-times "vectorization not profitable"
> 2 "vect" { xfail vect_no_int_max } } } */
> +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect"
> { xfail vect_no_int_max } } } */
> /* { dg-final { cleanup-tree-dump "vect" } } */