From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46116 invoked by alias); 11 Mar 2015 08:40:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 46068 invoked by uid 55); 11 Mar 2015 08:40:47 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65310] vectorizer uses wrong alignment Date: Wed, 11 Mar 2015 08:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg01199.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65310 --- Comment #7 from rguenther at suse dot de --- On Tue, 10 Mar 2015, pthaugen at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65310 > > --- Comment #6 from Pat Haugen --- > > Can you be more specific as with what options it fails? > > I just tried current trunk (r221324) and the testcase still fails. Only one > "basic block vectorized" string is generated, where the testcase expects two > occurrences. > > [pthaugen@igoo testsuite]$ ~/install/gcc/trunk/bin/gcc -v > Using built-in specs. > COLLECT_GCC=/home/pthaugen/install/gcc/trunk/bin/gcc > COLLECT_LTO_WRAPPER=/home/pthaugen/install/gcc/trunk/libexec/gcc/powerpc64-unknown-linux-gnu/5.0.0/lto-wrapper > Target: powerpc64-unknown-linux-gnu > Configured with: /home/pthaugen/src/gcc/trunk/gcc/configure > --prefix=/home/pthaugen/install/gcc/trunk --enable-decimal-float --enable-lto > --with-as=/home/pthaugen/install/binutils/binutils-2.25/bin/as > --with-ld=/home/pthaugen/install/binutils/binutils-2.25/bin/ld > --with-gmp=/home/pthaugen/install/gcc-host-libs --without-ppl --without-cloog > --enable-languages=c,fortran,c++ --disable-bootstrap > Thread model: posix > gcc version 5.0.0 20150310 (experimental) [trunk revision 221324] (GCC) > > [pthaugen@igoo testsuite]$ ~/install/gcc/trunk/bin/g++ -std=c++98 -O2 > -ftree-vectorize -fno-vect-cost-model -maltivec -mvsx -mno-allow-movmisalign > -fdump-tree-slp-details -S -m64 slp-pr50819.cc > [pthaugen@igoo testsuite]$ grep "basic block vectorized" > slp-pr50819.cc.136t.slp2 > slp-pr50819.cc:28:17: note: basic block vectorized > [pthaugen@igoo testsuite]$ Still can't reproduce it. Cross configured with $ /space/rguenther/tramp3d/trunk/configure --target=powerpc64-suse-linux --with-cpu-64=power4 --enable-secureplt --with-long-double-128 target_alias=powerpc64-suse-linux CFLAGS=-g CXXFLAGS=-g --enable-languages=c,c++,lto --no-create --no-recursion gcc> ./cc1plus -quiet -std=c++98 -O2 -ftree-vectorize -fno-vect-cost-model -maltivec -mvsx -mno-allow-movmisalign -fdump-tree-slp-details -m64 slp-pr50819.cc -I include gcc> grep 'basic block vectorized' slp-pr50819.cc.135t.slp2 slp-pr50819.cc:28:70: note: basic block vectorized slp-pr50819.cc:28:70: note: basic block vectorized