From patchwork Wed Oct 30 20:31:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= X-Patchwork-Id: 287345 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C73B22C03A8 for ; Thu, 31 Oct 2013 07:34:26 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; q=dns; s=default; b=gRXvnAXBHf+dH+/ q2x/CErLg0QIUx5h8VO0nBByf+CY7qWYygDc+fzCQa1ulM/LjK8hPfWtSvKJciwP alTNs/u4Jfh/gy9VahsjbePRNyFkX8xgQpBveQU7LH1ohmWapHy5AWJf3wB0HI/2 elYTETz+XuE5YarpETRiwn+nrvoI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; s=default; bh=RkJBS35jmVtxWyzmbPvNz ZzAPrg=; b=BFuMFQqh2ukc1ObJXKuvAdpDevE8X/ztFg1q7dze+T3HTqVbOdutQ waBybE+tPHczA/kT8Q43zBtvVwlmYc/MMFbQji9h/3zwTfUgGkuTK9V3JllLtLZR 9wqqEyQCJurx4hL6iApPo5TAurGXl6Jo1c1B3jMdx3XH/o4UQ+5FEo= Received: (qmail 17475 invoked by alias); 30 Oct 2013 20:34:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 17462 invoked by uid 89); 30 Oct 2013 20:34:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: unicorn.mansr.com Received: from unicorn.mansr.com (HELO unicorn.mansr.com) (81.2.72.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Oct 2013 20:34:19 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id B3F5D15393; Wed, 30 Oct 2013 20:34:15 +0000 (GMT) From: Mans Rullgard To: gcc-patches@gcc.gnu.org Subject: [PATCH] arm: emit neon alignment hints for 32/16-bit loads/stores Date: Wed, 30 Oct 2013 20:31:01 +0000 Message-Id: <1383165061-32108-1-git-send-email-mans@mansr.com> --- gcc/config/arm/arm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 8c9897e..8183a8e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -21247,6 +21247,10 @@ arm_print_operand (FILE *stream, rtx x, int code) align_bits = 128; else if (memsize >= 8 && (align % 8) == 0) align_bits = 64; + else if (memsize == 4 && (align % 4) == 0) + align_bits = 32; + else if (memsize == 2 && (align % 2) == 0) + align_bits = 16; else align_bits = 0;