From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25657 invoked by alias); 1 Jul 2012 15:15:11 -0000 Received: (qmail 25637 invoked by uid 22791); 1 Jul 2012 15:15:10 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 01 Jul 2012 15:14:58 +0000 From: "carrot at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/53447] missed optimization of 64bit ALU operation with small constant Date: Sun, 01 Jul 2012 15:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carrot at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-07/txt/msg00008.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53447 --- Comment #3 from carrot at gcc dot gnu.org 2012-07-01 15:14:56 UTC --- Author: carrot Date: Sun Jul 1 15:14:52 2012 New Revision: 189102 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189102 Log: PR target/53447 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype. * config/arm/arm.c (const_ok_for_dimode_op): New function. * config/arm/constraints.md (Dd): New constraint. * config/arm/predicates.md (arm_adddi_operand): New predicate. * config/arm/arm.md (adddi3): Extend it to handle constants. (arm_adddi3): Likewise. (addsi3_carryin_): Extend it to handle sbc case. (addsi3_carryin_alt2_): Likewise. * config/arm/neon.md (adddi3_neon): Extend it to handle constants. * gcc.target/arm/pr53447-1.c: New testcase. * gcc.target/arm/pr53447-2.c: New testcase. * gcc.target/arm/pr53447-3.c: New testcase. * gcc.target/arm/pr53447-4.c: New testcase. Added: trunk/gcc/testsuite/gcc.target/arm/pr53447-1.c trunk/gcc/testsuite/gcc.target/arm/pr53447-2.c trunk/gcc/testsuite/gcc.target/arm/pr53447-3.c trunk/gcc/testsuite/gcc.target/arm/pr53447-4.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm-protos.h trunk/gcc/config/arm/arm.c trunk/gcc/config/arm/arm.md trunk/gcc/config/arm/constraints.md trunk/gcc/config/arm/neon.md trunk/gcc/config/arm/predicates.md trunk/gcc/testsuite/ChangeLog