From patchwork Fri Jul 29 09:19:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 654055 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s138q1BLLz9t1M for ; Fri, 29 Jul 2016 19:19:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=u1aZ8BKd; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=I3meuTVvioMeLMlT tqwPg5j59ZeknNKPAEFQ5J6QFVMAakx7DyLSubXIVNzh/K37OmqQPj7lowlOoClY WDibXI9f8fDa7yAXopzvrbf30g7igZYdebHNPZq2aW2MhQhlsi2NPWW8ejp7he3H 0HoUUeK7/iKcdz5OeoLrTc4Hf6k= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=4UPJYZVQrWgiDp0iplN0Fg RoeHw=; b=u1aZ8BKdF6pQvWCob0uuQ3oaKi1Z8OhjAVfeIsmi6qIORXY0N59Pwb OEQyJyezKh1ZJev79UfTpADNKhlz7YHufa5OloCLqz4tDBtiLDcTR8GhhdOLQJBW PYU4iw78i9QFc2Rqsrph0rSi1leV8ZW8yAlAc6drXFoSGQA0jNK5Y= Received: (qmail 25818 invoked by alias); 29 Jul 2016 09:19:45 -0000 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 Received: (qmail 25589 invoked by uid 89); 29 Jul 2016 09:19:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*M:5517, H*MI:5517 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 29 Jul 2016 09:19:34 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPLBCxG2PwtgsgUwIw== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (ip5f581faf.dynamic.kabel-deutschland.de [95.88.31.175]) by smtp.strato.de (RZmta 38.13 DYNA|AUTH) with ESMTPSA id i03265s6T9JRrNi (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 29 Jul 2016 11:19:27 +0200 (CEST) To: gcc-patches Cc: Denis Chertykov From: Georg-Johann Lay Subject: [avr,committed]: Remove superfluous CLR of zero_reg. Message-ID: <710a9b48-2ebf-5517-28af-39a4aa59ec96@gjlay.de> Date: Fri, 29 Jul 2016 11:19:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-IsSubscribed: yes https://gcc.gnu.org/r238850 Applied this obvious change to __muldi3 which cleared zero_reg at the end of the function. This is not needed because there was a call to __umulsidi3 which already cleared zero_reg. Johann libgcc/ * config/avr/lib1funcs.S (__muldi3) [have MUL]: No need to clear zero_reg as previous call to __umulhisi3 already cleared it. Index: config/avr/lib1funcs.S =================================================================== --- config/avr/lib1funcs.S (revision 238849) +++ config/avr/lib1funcs.S (working copy) @@ -958,7 +958,6 @@ DEFUN __muldi3 wmov A4, C4 wmov A6, C6 - clr __zero_reg__ pop r16 pop r17 pop r28