From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127407 invoked by alias); 30 Jul 2015 14:39:15 -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 126967 invoked by uid 55); 30 Jul 2015 14:39:12 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66917] [4.9/5/6 regression] ARM: NEON: memcpy compiles to vst1 with incorrect alignment due to SRA Date: Thu, 30 Jul 2015 14:39: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: 4.9.3 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: major X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.4 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-07/txt/msg02645.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917 --- Comment #14 from rguenther at suse dot de --- On Thu, 30 Jul 2015, rearnsha at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917 > > Richard Earnshaw changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Component|target |tree-optimization > > --- Comment #12 from Richard Earnshaw --- > > but the arm hook seems to say "yes, I can vectorize with V2DImode > > for a vector with element type unsigned long long __attribute__((aligned(1)))" > > which it obviously cannot. > > It can vectorize for this case, but the loads must not be marked as aligned > loads. That is, the mid-end must use the misaligned code hooks. > > So I don't think this is a target bug. Hmm, indeed. It's a vectorizer bug that always communicates at least element alignment (thus doesn't properly code-gen for the packed_p case)