From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23316 invoked by alias); 22 May 2007 21:04:53 -0000 Received: (qmail 23124 invoked by uid 48); 22 May 2007 21:04:37 -0000 Date: Tue, 22 May 2007 21:04:00 -0000 Message-ID: <20070522210437.23123.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/32044] udivdi3 counterproductive, unwarranted use In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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: 2007-05/txt/msg01944.txt.bz2 ------- Comment #4 from pinskia at gcc dot gnu dot org 2007-05-22 22:04 ------- > (probably the condition check is too conservative > so this isn't fully cooked yet): Way too conservative because even if you don't have the opcode, sometimes code can be produced without calling the libcall. If you change the define to: #define NSEC_PER_SEC 0x10000000UL You will not get an call udividi3, though there is still a divide in unsigned long long, the division can be done exactly (via shifting). -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Component|c |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044