From patchwork Wed Mar 19 22:52:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 331910 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 723112C00A1 for ; Thu, 20 Mar 2014 09:53:17 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:to:subject:from:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=wSwqGXSPY796ANGb SrMfOxJ7u1SD0V1WV7HBB+zkBcOcBaniYBvAfW6xa3UX6f/4/N25a0tv4cTmf4mG LCqe09Jl3xveZyaGb/q+2NNFAt5O8huUu74YgoG2v5SDbyiCzVkfu9uoSXmQLHaX 6BHtwm1Z/BRRhbv1yGqDdnlgYcA= 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:date :message-id:to:subject:from:mime-version:content-type :content-transfer-encoding; s=default; bh=M1dfHE0UZV5TM2thW7fQyb tQOwU=; b=UKEm9KGYGXH0CiL/XEUALCHM++1Zw8MPRGcR/TJjZN7HWutuL8qQHz gjSrd2S+ubCf2/Z7bKtXwtc6sCYGh96eZEBC9asyqm+kPHhCgnFjOPtZamv5p8xk ICR/vQisTLYeCjWdTEgkLRbLBxlO1M9Y704m+OmPf7ZFGykpOX2W4= Received: (qmail 6020 invoked by alias); 19 Mar 2014 22:53:10 -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 6007 invoked by uid 89); 19 Mar 2014 22:53:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mo.iij4u.or.jp Received: from mo10.iij4u.or.jp (HELO mo.iij4u.or.jp) (210.138.174.78) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Mar 2014 22:52:58 +0000 Received: by mo.iij4u.or.jp (mo10) id s2JMqtoD002916; Thu, 20 Mar 2014 07:52:55 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (mbox11) id s2JMqsxE015588; Thu, 20 Mar 2014 07:52:55 +0900 Date: Thu, 20 Mar 2014 07:52:54 +0900 (JST) Message-Id: <20140320.075254.138623683.kkojima@rr.iij4u.or.jp> To: gcc-patches@gcc.gnu.org Subject: [patch committed SH] Fix target/60039 From: Kaz Kojima Mime-Version: 1.0 X-IsSubscribed: yes I've committed the attached patch to fix PR target/60039 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60039 which is a regression from 4.5 for some sh3 users. Tested on sh4-unknown-linux-gnu with -mdiv=call-div1. I'd like to backport it to 4.8 in a week or two as usual. Regards, kaz --- 2014-03-19 Kaz Kojima PR target/60039 * config/sh/sh.md (udivsi3_i1): Clobber R1 register. --- ORIG/trunk/gcc/config/sh/sh.md 2014-03-02 09:49:58.000000000 +0900 +++ trunk/gcc/config/sh/sh.md 2014-03-18 14:43:26.515319735 +0900 @@ -2314,6 +2314,7 @@ (udiv:SI (reg:SI R4_REG) (reg:SI R5_REG))) (clobber (reg:SI T_REG)) (clobber (reg:SI PR_REG)) + (clobber (reg:SI R1_REG)) (clobber (reg:SI R4_REG)) (use (match_operand:SI 1 "arith_reg_operand" "r"))] "TARGET_SH1 && TARGET_DIVIDE_CALL_DIV1"