From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31457 invoked by alias); 8 Sep 2005 20:28:21 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 31363 invoked by uid 22791); 8 Sep 2005 20:28:16 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 08 Sep 2005 20:28:16 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j88KSF13015248 for ; Thu, 8 Sep 2005 16:28:15 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j88KSAV05677; Thu, 8 Sep 2005 16:28:10 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j88KSANB017476; Thu, 8 Sep 2005 16:28:10 -0400 Received: from tooth.toronto.redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id E1207800102; Thu, 8 Sep 2005 16:28:09 -0400 (EDT) Received: from tooth.toronto.redhat.com (IDENT:GwLxaynhWqSf+S7AIpm2/x45fW7QKdl7@localhost [127.0.0.1]) by tooth.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j88KS9el029332; Thu, 8 Sep 2005 16:28:09 -0400 Received: (from fche@localhost) by tooth.toronto.redhat.com (8.12.8/8.12.8/Submit) id j88KS9xY029330; Thu, 8 Sep 2005 16:28:09 -0400 Date: Thu, 08 Sep 2005 20:28:00 -0000 From: "Frank Ch. Eigler" To: Will Newton Cc: cgen@sources.redhat.com Subject: Re: Constraints between operands Message-ID: <20050908202809.GA28732@redhat.com> References: <0D107966AF6D79418315B7C5549F4B5104DFDC@lemail1.le.imgtec.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0D107966AF6D79418315B7C5549F4B5104DFDC@lemail1.le.imgtec.org> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-q3/txt/msg00020.txt.bz2 Hi - On Thu, Sep 08, 2005 at 02:55:16PM +0100, Will Newton wrote: > [...] > I'm using cgen to write a binutils port for a processor. I've come > across a problem I haven't been able to solve yet with expressing a > constraint between a number of fields in an instruction. > [...] > ADD D0.1,D0.2 ; Data unit 0 for both regs, OK > ADD D0.1,D1.2 ; Data unit mismatch, error! > [...] One way may be to write a custom operand parser for the second D slot, which would enforce this constraint. It would signal a parse error. - FChE