From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27482 invoked by alias); 6 Aug 2014 05:51:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27471 invoked by uid 89); 6 Aug 2014 05:51:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail2-relais-roc.national.inria.fr Received: from mail2-relais-roc.national.inria.fr (HELO mail2-relais-roc.national.inria.fr) (192.134.164.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 06 Aug 2014 05:51:23 +0000 Received: from ip-205.net-81-220-140.rev.numericable.fr (HELO laptop-mg.local) ([81.220.140.205]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Aug 2014 07:51:19 +0200 Date: Wed, 06 Aug 2014 05:51:00 -0000 From: Marc Glisse Reply-To: gcc-help@gcc.gnu.org To: Cherry Vanc cc: Jeff Law , gcc-help@gcc.gnu.org Subject: Re: fuse multiple ops into one new op In-Reply-To: Message-ID: References: <53DCB4BF.80701@redhat.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2014-08/txt/msg00037.txt.bz2 On Tue, 5 Aug 2014, Cherry Vanc wrote: > Thanks. I am now using a define_insn based on your inputs : > > (define_insn "testnew36" > [(set (match_operand:DI 0 "register_operand" "") > (op1:DI (match_operand:DI 1 "register_operand" "") > (match_operand:SI 2 "immediate_operand" "") )) > (set (match_operand:DI 3 "register_operand" "") > (op2:DI (match_operand:DI 4 "register_operand" "") (match_dup 0))) > (set (match_operand:DI 5 "register_operand" "") > (sign_extend:DI (op3:SI (match_dup 3))))] > "TARGET_MYCORE" > "testnew 36" > [(set_attr "mode" "DI")]) Er, no, that's not what was recommended. Your *testnew in the previous email was much better. > Why doesnt -fdump-rtl-all-all / -fdump-rtl-all generate those .life > and .combine files so that I can take a look at the combine pass is > doing ? dump-rtl-combine doesnt spit anything either. MYCORE is a mips > adaptation using GCC 4.9.0. Are you sure compiling file.c with options -O -da (or any of the options you tried) doesn't create file.c.201r.combine (number can vary)? You'll need to debug that first then. -- Marc Glisse