From patchwork Mon Jun 4 01:54:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 162613 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]) by ozlabs.org (Postfix) with SMTP id 98360B6F6E for ; Mon, 4 Jun 2012 11:55:25 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1339379726; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: Message-Id:To:Subject:From:Mime-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=mSZCdoeFRwGgSJVqxTTIoAGKxNA=; b=Xqk3TljoUKGHzDD pI59QMxwtpeXFcst9u3K4ROFz3rc68gdpYh0MDgeIbtoRbjr4GutTr+ND1r1GJN8 /Qi/4TL+4Fx2UDtcJiSH7iXvvxMQedpTpoK8X4aPaujcoO6DSJ7bNwru+OZQ6zLI S2DeM4Dg8VjwSOrHEoCjN/OZzziU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:Message-Id:To:Subject:From:Mime-Version:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=RwM+NItRl6q1MYvCqeFgaJrx4VsWcM28qPPHdWP6qlEMjM1t0ga8/GcmEJRP4F hEpqoquQRlNgRuJtUyOxh0+HdapDGIJiSmQ/RgT8OvLt3PGPMggOpvc9FS7eTORb 1yJ7NcSJRKMC5TvUB3jpn5oTbhpSsXAfLhAIyG96kVVHs=; Received: (qmail 1366 invoked by alias); 4 Jun 2012 01:55:21 -0000 Received: (qmail 1357 invoked by uid 22791); 4 Jun 2012 01:55:20 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from shards.monkeyblade.net (HELO shards.monkeyblade.net) (149.20.54.216) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jun 2012 01:55:07 +0000 Received: from localhost (cpe-66-108-119-99.nyc.res.rr.com [66.108.119.99]) by shards.monkeyblade.net (Postfix) with ESMTPSA id A35F6583527 for ; Sun, 3 Jun 2012 18:55:05 -0700 (PDT) Date: Sun, 03 Jun 2012 21:54:48 -0400 (EDT) Message-Id: <20120603.215448.448452917473689283.davem@davemloft.net> To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix bug added to sparc 64-bit sub_ddmmss() implementation. From: David Miller Mime-Version: 1.0 X-IsSubscribed: yes 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 Testing in glibc found a bug in one of my longlong.h sparc changes, fixed thusly and committed to master. libgcc/ * longlong.h [SPARC] (sub_ddmmss): Fix thinko in previous 64-bit change. --- libgcc/ChangeLog | 5 +++++ libgcc/longlong.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 9b4491c..bad8ec0 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2012-06-03 David S. Miller + + * longlong.h [SPARC] (sub_ddmmss): Fix thinko in previous 64-bit + change. + 2012-05-31 David S. Miller * longlong.h [SPARC] (umul_ppmm, udiv_qrnnd): Use hardware integer diff --git a/libgcc/longlong.h b/libgcc/longlong.h index ad42907..0427718 100644 --- a/libgcc/longlong.h +++ b/libgcc/longlong.h @@ -1343,7 +1343,7 @@ UDItype __umulsidi3 (USItype, USItype); __asm__ ("subcc\t%r5,%6,%1\n\t" \ "sub\t%r3,%4,%0\n\t" \ "movcs\t%%xcc, 1, %2\n\t" \ - "add\t%0, %2, %0" \ + "sub\t%0, %2, %0" \ : "=r" ((UDItype)(sh)), \ "=&r" ((UDItype)(sl)), \ "+r" (__carry) \