]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/56918 (incorrect auto-vectorization of array initialization)
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Apr 2013 08:18:59 +0000 (10:18 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Apr 2013 08:18:59 +0000 (10:18 +0200)
commit06f9b387e517d6f54b6c9b35d4f972bc1542855c
treea5b70e4d1a91908233d26fcca4ff9a8cf10fcd82
parent953094d2f8d7963f52c26d177c62db7220efb1b3
re PR tree-optimization/56918 (incorrect auto-vectorization of array initialization)

PR tree-optimization/56918
PR tree-optimization/56920
* fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
use wide_mul_with_sign method.

* gcc.dg/vect/pr56918.c: New test.
* gcc.dg/vect/pr56920.c: New test.

From-SVN: r197846
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr56918.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr56920.c [new file with mode: 0644]