From patchwork Thu Oct 1 12:39:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 524967 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 5C4E5140D69 for ; Thu, 1 Oct 2015 22:39:32 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=kL2ydgD4; 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 :message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; q=dns; s=default; b=PNvQzczS9fr9rKj0 rrvGA7hwoAL0B6LCwnAX1lsSgIFJqjfV85fuyAa6KVU8477gF53f48ImKVg8gamt AeYdx93utE74CPGHr2/6CGgXWchCMTfjkwIutLwAneMOYIjYc/rBUsVzdv1dLuXg vpPGUUdpKwuQFlRVtH6X3eQWnlk= 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=qgsq5mWSvYN5JiB80AGSdy dgtZg=; b=kL2ydgD4ReqjQtPR+WeTnLzNnsZppxK2N5KnegI6s2fOEpxW3cqbIq aBshrLT8apGVI6DpqaiaIizuYxiaUOZAnW4uqKUrv5QR2gfxRuxilBWBh5WLAWm/ JgAgH1CnWid35CLjJtHisIc90O8grZjxFftyXXkqtU5t+i08whSV0= Received: (qmail 123018 invoked by alias); 1 Oct 2015 12:39:25 -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 122992 invoked by uid 89); 1 Oct 2015 12:39:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=no 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; Thu, 01 Oct 2015 12:39:23 +0000 Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout01.t-online.de (Postfix) with SMTP id 00FC42795 for ; Thu, 1 Oct 2015 14:39:17 +0200 (CEST) Received: from [192.168.0.16] (SmBTFZZXghfsXR-rqUj+IMPIwXKD2bGFWja1NhEeMjuq4qnzTmCWZT024CM2vBVwGS@[115.165.93.200]) by fwd16.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1Zhd8j-1bIIwC0; Thu, 1 Oct 2015 14:39:13 +0200 Message-ID: <1443703149.2509.197.camel@t-online.de> Subject: Re: [SH][committed] Improve treg_set_expr matching From: Oleg Endo To: gcc-patches Date: Thu, 01 Oct 2015 21:39:09 +0900 In-Reply-To: <1443448996.2509.133.camel@t-online.de> References: <1443448996.2509.133.camel@t-online.de> Mime-Version: 1.0 X-IsSubscribed: yes On Mon, 2015-09-28 at 23:03 +0900, Oleg Endo wrote: > Hi, > > This patch has been hanging around in my queue for a while. Basically, > it uses reverse_condition to get better matching for treg_set_expr. > Tested on sh-elf with > make -k check RUNTESTFLAGS="--target_board=sh-sim > \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" > and no new failures. > Committed as r228202. Attached is a small follow up patch that fixes a typo in one of the tests. Committed as r228332. Cheers, Oleg gcc/testsuite/ChangeLog: PR target/54236 * gcc.target/sh/pr54236-6.c: Fix assembler-not string. Index: gcc/testsuite/gcc.target/sh/pr54236-6.c =================================================================== --- gcc/testsuite/gcc.target/sh/pr54236-6.c (revision 228244) +++ gcc/testsuite/gcc.target/sh/pr54236-6.c (working copy) @@ -14,7 +14,7 @@ /* { dg-final { scan-assembler-times {tst #1,r0} 1 } } */ /* { dg-final { scan-assembler-times {subc r} 1 } } */ -/* { dg-final { scan-assembler-not "movt|not|neg\movrt" } } */ +/* { dg-final { scan-assembler-not "movt|not\t|neg\t|movrt" } } */ struct inode