From patchwork Sat Jul 21 20:51:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 172456 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 D4C932C0327 for ; Sun, 22 Jul 2012 06:52:06 +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=1343508727; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Subject:From:To:Date:Content-Type:Mime-Version: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=onwesr6Cnnpke75aNREI ySicepk=; b=gV26Qz3k+2hPPMVTo21kPZMeKt+fENHpGh9+AxZC8J4qIqZP3+H2 LSpYoZCpWzrTf+VZVRQndRV/fflokFZjez4DohD9m08jYrgFFCax//v02uJjCNLE oha+eri068xie6a+k2uHGrR707Aa95TLejl83R+W8A+uhVgtws6ctE4= 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:Received:Message-ID:Subject:From:To:Date:Content-Type:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=TXMhtA8MK3R/bIQXJiT3f+bp2AOzGulGiwvj22tlq7yDlUeJ3JB4uC6Q2S3eSV ENUPniCq6wJzDsOfDVGNszemyILtyuSENfNuX0RrBXmH94K8htvl2Hhh9xXxrOPk WR/tZFpvN26B9e3PCYjBpLqv6uWF+2+6hdws1Dx0QRlIo=; Received: (qmail 19583 invoked by alias); 21 Jul 2012 20:52:02 -0000 Received: (qmail 19571 invoked by uid 22791); 21 Jul 2012 20:52:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, TW_EG, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout02.t-online.de (HELO mailout02.t-online.de) (194.25.134.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Jul 2012 20:51:44 +0000 Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de ) by mailout02.t-online.de with smtp id 1SsgeL-0004ka-Tm; Sat, 21 Jul 2012 22:51:41 +0200 Received: from [192.168.0.100] (XLzu2oZEohkHsZ4LDI8p69BnWFBXedG0tofSVYzpo12MCmFh+FIYzmt8G2Dhkfdwm3@[93.218.186.106]) by fwd16.t-online.de with esmtp id 1SsgeG-1MmYue0; Sat, 21 Jul 2012 22:51:36 +0200 Message-ID: <1342903893.2143.105.camel@yam-132-YW-E178-FTW> Subject: [SH] Fold negc expander and insn From: Oleg Endo To: gcc-patches Date: Sat, 21 Jul 2012 22:51:33 +0200 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 Hello, The attached patch folds the negc expander and *negc insn. Tested with 'make all'. CSiBE result-size (-m4-single -ml -mpretend-cmove) also doesn't show any change. OK? Cheers, Oleg ChangeLog: * config/sh/sh.md (negc): Delete expander. (*negc): Rename insn to negc. Index: gcc/config/sh/sh.md =================================================================== --- gcc/config/sh/sh.md (revision 189747) +++ gcc/config/sh/sh.md (working copy) @@ -4256,17 +4256,7 @@ ;; Unary arithmetic ;; ------------------------------------------------------------------------- -(define_expand "negc" - [(parallel [(set (match_operand:SI 0 "arith_reg_dest" "") - (neg:SI (plus:SI (reg:SI T_REG) - (match_operand:SI 1 "arith_reg_operand" "")))) - (set (reg:SI T_REG) - (ne:SI (ior:SI (reg:SI T_REG) (match_dup 1)) - (const_int 0)))])] - "" - "") - -(define_insn "*negc" +(define_insn "negc" [(set (match_operand:SI 0 "arith_reg_dest" "=r") (neg:SI (plus:SI (reg:SI T_REG) (match_operand:SI 1 "arith_reg_operand" "r"))))