From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3504 invoked by alias); 7 Oct 2009 17:02:26 -0000 Received: (qmail 3350 invoked by uid 22791); 7 Oct 2009 17:02:25 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f186.google.com (HELO mail-yx0-f186.google.com) (209.85.210.186) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 17:02:18 +0000 Received: by yxe16 with SMTP id 16so5712652yxe.27 for ; Wed, 07 Oct 2009 10:02:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.246.1 with SMTP id t1mr119224agh.96.1254934936941; Wed, 07 Oct 2009 10:02:16 -0700 (PDT) Date: Wed, 07 Oct 2009 17:02:00 -0000 Message-ID: Subject: Instruction w/ prefix From: Dmitry Eremin-Solenikov To: cgen@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00010.txt.bz2 Hello, I'm using cgen to create binutils port for the CISC architecture (M68HC(S)08 if somebody cares). I've stumbled upon one problem: the is an instruction prefix which can change meaning of the next instruction (basically it then uses SP register instead of IX one). What is the most clean way to do this w/ cgen? I can of course duplicate instruction fields, counting another byte in the beginning, instructions, etc.. This will permit me to catch illegal combinations. OTOH it doesn' look like completely clean idea. What would you suggest? -- With best wishes Dmitry