From patchwork Mon Jan 19 23:29:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 430740 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 49F21140161 for ; Tue, 20 Jan 2015 10:29:39 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; q=dns; s=default; b=fkHMq6lik/NpBQMn FGN37mMialMekreuuYT1u4IEx8rkYoCfySpz635DI7ZsxuAF+5btvT4an1artpn4 BbFDwKQo4i8UoOmW+5WScP4KjC7w/f+42vfav8e4+cGsR2bLgJrMfdcjZDElnQlS +OJind+Dol8K14A7exZpOViABS4= 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 :message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; s=default; bh=jRwR+0Gjzy14CTniGkmczu muOps=; b=Lwcxy4mvahSUjh4THt+RsNHQVldvcX3Eeoqsnh5IcPy3EbZ+7pmezx l0j7LuiNvN+JSRHhT6UosxxzjrQ0YfSJfNMsB9AGACH/Tge44Q1JRfy18kM3QgX5 eKaGtF7c5vE8XlLqxgvOoBO5Z3OzfYebxpunbdyXfK94ud7pag3KY= Received: (qmail 20809 invoked by alias); 19 Jan 2015 23:29:32 -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 20791 invoked by uid 89); 19 Jan 2015 23:29:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout01.t-online.de Received: from mailout01.t-online.de (HELO mailout01.t-online.de) (194.25.134.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 19 Jan 2015 23:29:30 +0000 Received: from fwd12.aul.t-online.de (fwd12.aul.t-online.de [172.20.26.241]) by mailout01.t-online.de (Postfix) with SMTP id 12FA34942EA for ; Tue, 20 Jan 2015 00:29:26 +0100 (CET) Received: from [192.168.0.105] (rIrPlkZ6ZhqKVy6ya6j49vsri417Sy59HWP7jTr0+04ukilsYRR2LEatAPoHBvNguX@[84.180.120.77]) by fwd12.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YDLl3-0DIOci0; Tue, 20 Jan 2015 00:29:21 +0100 Message-ID: <1421710153.2376.29.camel@yam-132-YW-E178-FTW> Subject: Re: [SH][committed] Fix PR 64652 From: Oleg Endo To: gcc-patches Date: Tue, 20 Jan 2015 00:29:13 +0100 In-Reply-To: <1421604887.2376.21.camel@yam-132-YW-E178-FTW> References: <1421604887.2376.21.camel@yam-132-YW-E178-FTW> Mime-Version: 1.0 X-IsSubscribed: yes On Sun, 2015-01-18 at 19:14 +0100, Oleg Endo wrote: > Hi, > > The attached patch fixes PR 64652. Tested with > make -k check-gcc RUNTESTFLAGS="sh-torture.exp --target_board=sh-sim > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" > Committed as r219824. > > Cheers, > Oleg > > gcc/ChangeLog: > PR target/64652 > * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address > reg appear first in the parallel. > > gcc/testsuite/ChangeLog: > PR target/64652 > * gcc.target/sh/torture/pr64652.c: New. I forgot to add the unsigned div test case that checks the udivsi3_i4 insn. Committed as r219870. Cheers, Oleg gcc/testsuite/ChangeLog: PR target/64652 * gcc.target/sh/torture/pr64652.c (test): Rename to test_0. (test_1): New. Index: gcc/testsuite/gcc.target/sh/torture/pr64652.c =================================================================== --- gcc/testsuite/gcc.target/sh/torture/pr64652.c (revision 219869) +++ gcc/testsuite/gcc.target/sh/torture/pr64652.c (working copy) @@ -4,7 +4,13 @@ /* { dg-skip-if "" { "sh*-*-*" } { "-m5*" } { "" } } */ int -test (int a, int b, int c, int d) +test_0 (int a, int b, int c, int d) { return (a / b) + c + d; } + +unsigned int +test_1 (unsigned int a, unsigned int b, unsigned int c, unsigned int d) +{ + return (a / b) + c + d; +}