From patchwork Fri Jan 20 13:25:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 6316 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 725DD23E81 for ; Fri, 20 Jan 2012 13:25:46 +0000 (UTC) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 5A24CA181B8 for ; Fri, 20 Jan 2012 13:25:46 +0000 (UTC) Received: by bkar19 with SMTP id r19so433653bka.11 for ; Fri, 20 Jan 2012 05:25:46 -0800 (PST) Received: by 10.205.26.67 with SMTP id rl3mr11976011bkb.45.1327065946044; Fri, 20 Jan 2012 05:25:46 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs6067bkc; Fri, 20 Jan 2012 05:25:45 -0800 (PST) Received: by 10.224.111.77 with SMTP id r13mr6594664qap.71.1327065944027; Fri, 20 Jan 2012 05:25:44 -0800 (PST) Received: from mail-tul01m020-f178.google.com (mail-tul01m020-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id a8si1380001ank.69.2012.01.20.05.25.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Jan 2012 05:25:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of ramana.radhakrishnan@linaro.org) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of ramana.radhakrishnan@linaro.org) smtp.mail=ramana.radhakrishnan@linaro.org Received: by obbwc7 with SMTP id wc7so963976obb.37 for ; Fri, 20 Jan 2012 05:25:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.117.8 with SMTP id ka8mr26599330obb.73.1327065943175; Fri, 20 Jan 2012 05:25:43 -0800 (PST) Received: by 10.182.88.7 with HTTP; Fri, 20 Jan 2012 05:25:43 -0800 (PST) Date: Fri, 20 Jan 2012 13:25:43 +0000 Message-ID: Subject: [Patch ARM] Fix PR51819. From: Ramana Radhakrishnan To: gcc-patches Cc: Patch Tracking Hi, PR51819 is a case where we were actually putting out alignment hints for the wrong memory size. The attached patch corrects this and another latent issue that I spotted. Committed after testing on arm-linux-gnueabi with Neon configurations. cheers Ramana 2012-01-20 Ramana Radhakrishnan PR target/51819 * config/arm/arm.c (arm_print_operand): Correct output of alignment hints for neon loads and stores. Index: gcc/config/arm/arm.c =================================================================== --- gcc/config/arm/arm.c (revision 183333) +++ gcc/config/arm/arm.c (working copy) @@ -17711,9 +17711,9 @@ /* Only certain alignment specifiers are supported by the hardware. */ if (memsize == 16 && (align % 32) == 0) align_bits = 256; - else if ((memsize == 8 || memsize == 16) && (align % 16) == 0) + else if (memsize == 16 && (align % 16) == 0) align_bits = 128; - else if ((align % 8) == 0) + else if (memsize >= 8 && (align % 8) == 0) align_bits = 64; else align_bits = 0;