From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66454 invoked by alias); 21 Jul 2015 10:54:20 -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 66401 invoked by uid 48); 21 Jul 2015 10:54:16 -0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66956] [avr] Using 32*32=64 multiplicatiion (umulsidi3) for 32=32*32 without MUL. Date: Tue, 21 Jul 2015 10:54: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-Version: 5.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: gjl at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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/msg01798.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66956 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Georg-Johann Lay --- Compile that test case with $ avr-gcc -Os mul32.c -S Result is something like: mul_u32: rcall __umulsidi3 mov r22,r18 mov r23,r19 mov r24,r20 mov r25,r21 ret mul_s32: rcall __mulsidi3 mov r22,r18 mov r23,r19 mov r24,r20 mov r25,r21 ret