From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12724 invoked by alias); 12 May 2010 17:47:38 -0000 Received: (qmail 12714 invoked by uid 22791); 12 May 2010 17:47:36 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 12 May 2010 17:47:30 +0000 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id o4CHlR1V000502 for ; Wed, 12 May 2010 10:47:27 -0700 Received: from wyb32 (wyb32.prod.google.com [10.241.225.96]) by hpaq12.eem.corp.google.com with ESMTP id o4CHlQ8M002340 for ; Wed, 12 May 2010 10:47:26 -0700 Received: by wyb32 with SMTP id 32so236769wyb.39 for ; Wed, 12 May 2010 10:47:26 -0700 (PDT) Received: by 10.227.154.4 with SMTP id m4mr7283148wbw.153.1273686220562; Wed, 12 May 2010 10:43:40 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-126-240.mtv.corp.google.com [172.22.126.240]) by mx.google.com with ESMTPS id z33sm2415497wbd.19.2010.05.12.10.43.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 May 2010 10:43:39 -0700 (PDT) To: "Paulo J. Matos" Cc: gcc@gcc.gnu.org Subject: Re: Clobbering two registers References: From: Ian Lance Taylor Date: Wed, 12 May 2010 17:47:00 -0000 In-Reply-To: (Paulo J. Matos's message of "Wed\, 12 May 2010 17\:17\:23 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg00225.txt.bz2 "Paulo J. Matos" writes: > How can I say in the machine architecture that to generate code for a > particular insn I need any two registers for intermediate operations? > To get one I think that (clobber (match_operand ...)) will work but > what if I want two? Can I add two clobbers on the same define_insn > rule? Yes. Also look at match_scratch. Ian