From: belagod Date: Thu, 7 Oct 2010 16:07:21 +0000 (+0000) Subject: gcc/ X-Git-Tag: upstream/4.9.2~26025 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1548bce8428336b79d1dd3bd797c9ba5e575d1f0;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ 2010-10-07 Tejas Belagod * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL check for vectype_out returned by get_vectype_for_scalar_type(). testsuite/ 2010-10-07 Tejas Belagod * gcc.dg/vect/pr45847.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165123 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d088f60..017b196 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-10-07 Tejas Belagod + * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL + check for vectype_out returned by get_vectype_for_scalar_type(). + +2010-10-07 Tejas Belagod + * config/arm/neon.md (neon_unpack_): Add 'w' to constraint, add register specifier in instruction template. (neon_vec_pack_trunc_): Likewise. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c78a2f3..1a3380e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-10-07 Tejas Belagod + + * gcc.dg/vect/pr45847.c: New test. + 2010-10-07 Iain Sandoe Kai Tietz diff --git a/gcc/testsuite/gcc.dg/vect/pr45847.c b/gcc/testsuite/gcc.dg/vect/pr45847.c new file mode 100644 index 0000000..f34caa1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr45847.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ + + +long long foo (long long *__restrict a, int *__restrict b, int *__restrict c ) +{ + int i; + long long sum=0; + for (i=0;i<256;i++) + sum += (long long)b[i] * c[i]; + + return sum; +} + +/* { dg-final { cleanup-tree-dump "vect" } } */ + diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index 0d5824c..ebe00d6 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -413,6 +413,7 @@ vect_recog_widen_mult_pattern (gimple last_stmt, vectype = get_vectype_for_scalar_type (half_type0); vectype_out = get_vectype_for_scalar_type (type); if (!vectype + || !vectype_out || !supportable_widening_operation (WIDEN_MULT_EXPR, last_stmt, vectype_out, vectype, &dummy, &dummy, &dummy_code,