From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9961 invoked by alias); 2 Jun 2013 09:02:52 -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 9939 invoked by uid 48); 2 Jun 2013 09:02:48 -0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57503] [4.7/4.8 Regression] Expand uses wrong multiply routine Date: Sun, 02 Jun 2013 09:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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-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: 2013-06/txt/msg00046.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57503 --- Comment #2 from Georg-Johann Lay --- (In reply to Georg-Johann Lay from comment #1) > Created attachment 30242 [details] > .expand dump > > Notice that in rot(), long D.1484_5 is unused and instead the 32-bit value > D.1482_3 is used. 16-bit, of course. In the s-file you can see that __usmulhisi3 is used. This is a widening 16-bit unsigned * 16-bit signed multiplication and not correct here.