From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24822 invoked by alias); 17 Feb 2014 20:26:47 -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 24763 invoked by uid 48); 17 Feb 2014 20:26:42 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/60236] gfortran.dg/vect/pr32380.f fails on ARM Date: Mon, 17 Feb 2014 20:26: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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-02/txt/msg01733.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60236 --- Comment #4 from Bernd Edlinger --- hmm... I just looked at PR#52229. At least on PowerPC many more loops are not vectorizable. because of unaligned access. Jakub's last comment there is that the xfail should be based on the vect_hw_misaling attribute. Well, but the problem on ARMv7 was not about misalignment instead it was about we can not vectorize the SQRT on Arm, and certainly not on IA64, because they have no builtin-vectorized-function hook at all: set et_vect_hw_misalign_saved 0 if { ([istarget x86_64-*-*] || [istarget aarch64*-*-*] || [istarget i?86-*-*]) } { set et_vect_hw_misalign_saved 1 } is this correct for ARM? Or can the ARM CPU vectorize unaligned data, I think they just have to know if the data is aligned or not, and choose different opcodes?