From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31369 invoked by alias); 2 Sep 2014 12:11:00 -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 31163 invoked by uid 48); 2 Sep 2014 12:10:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62283] basic-block vectorization fails Date: Tue, 02 Sep 2014 12:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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: 2014-09/txt/msg00834.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62283 --- Comment #19 from Richard Biener --- (In reply to Rainer Orth from comment #16) > Created attachment 33433 [details] > bb-slp-11.c.126t.slp2 dump /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/bb-slp-11.c:19:8: note: not vectorized: relevant stmt not supported: _4 = (unsigned short) _3; seems SPARC VIS doesn't support int -> ushort conversion? The idea is that we need v4hi vectors for the conversion result and use two v2si vectors for the input. _3 = MEM[(unsigned int *)&in]; _4 = (unsigned short) _3; _5 = _4 + 23; a0_6 = (short int) _5; ... _19 = (unsigned int) a0_6; _21 = _19 * x_20(D); Thus the testcase misses dg-require-effective-target vect_unpack and vect_pack_trunc which both SPARC doesn't support. Thus a testcase bug.