From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2838 invoked by alias); 23 Jun 2010 19:16:23 -0000 Received: (qmail 2819 invoked by uid 22791); 23 Jun 2010 19:16:19 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jun 2010 19:16:12 +0000 Received: by fg-out-1718.google.com with SMTP id e12so1453947fga.8 for ; Wed, 23 Jun 2010 12:16:09 -0700 (PDT) Received: by 10.87.67.13 with SMTP id u13mr13679535fgk.66.1277320569167; Wed, 23 Jun 2010 12:16:09 -0700 (PDT) Received: from yakj.usersys.redhat.com (s209p8.home.99maxprogres.cz [85.93.118.17]) by mx.google.com with ESMTPS id 26sm13897006fks.22.2010.06.23.12.16.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Jun 2010 12:16:07 -0700 (PDT) Message-ID: <4C225D75.2070106@gnu.org> Date: Wed, 23 Jun 2010 19:53:00 -0000 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5 MIME-Version: 1.0 To: "H.J. Lu" CC: Uros Bizjak , gcc-patches@gcc.gnu.org Subject: Re: PATCH: PR target/44588: Very inefficient 8bit mod/div References: <20100621193321.GA13780@intel.com> <1277229955.2613.1.camel@localhost> <1277232299.2613.13.camel@localhost> <4C224592.5090100@gnu.org> <4C224EB7.8090900@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg02371.txt.bz2 On 06/23/2010 08:24 PM, H.J. Lu wrote: > [(set (match_operand:HI 0 "register_operand" "=a") > (div:HI > (match_operand:HI 1 "register_operand" "0") > (match_operand:QI 2 "nonimmediate_operand" "qm"))) > (clobber (reg:CC FLAGS_REG))] Maybe this: [(set (match_operand:QI 0 "register_operand" "=a") (subreg:QI (div:HI (match_operand:HI 1 "register_operand" "0") (match_operand:QI 2 "nonimmediate_operand" "qm")) 0)) (clobber (reg:CC FLAGS_REG))] Paolo