From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by sourceware.org (Postfix) with ESMTPS id CE5B93858D35 for ; Mon, 27 Apr 2020 17:00:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE5B93858D35 Received: by mail-qk1-x736.google.com with SMTP id q7so6607008qkf.3 for ; Mon, 27 Apr 2020 10:00:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1rfNrJnXBTNMmWDTB2U3w3mp/lduPsKwAA5y9fai21M=; b=O4k3+LqalGynoAFSktgiCVklXotbTbuIkfx8Y8X+H7Yduyf8V+7LCUnN28RUVEcjuh mB+zFejVI+keySb8kMWDVX/YCISEheTTbyu4EB+z5+T2Wfdz80v8xA+h8fy0yTyZNLeF 5T8ksxFwO4QvfPp1EhxTcShhjz263kNOO8wmkSqXQXmOJ2fAMAdpM5/3//AEm1THSSoV X7DFGuExpyk26i1a7TX0xxJrllxrszobMBwdMaH+g/OUWUdzBdFln63LdNWpp+CLml0B qTnglR8ZGJRHj6KfakByxV5E70+h3YlzpoeMhO4PzwVlwey5hZNezMJJl92pKUhretzo gF6w== X-Gm-Message-State: AGi0PubIkdNSOnwmXKXzcQRl6v7gwlOc77Oj4Lm2A4hA51318r4LLFAE eol+Ml+mfgo3Qa05x9GPC0uRjbXsq5g5gwHcam8= X-Google-Smtp-Source: APiQypJ28X15WRDfDnB7LE+ayYYfHr1FfolM/PVSkOAb7g9bZKAkpiHOb7tKbs8izNxDZ1fW3+kK8O/hq/TlB+/ySd0= X-Received: by 2002:a05:620a:13e1:: with SMTP id h1mr22978152qkl.10.1588006818427; Mon, 27 Apr 2020 10:00:18 -0700 (PDT) MIME-Version: 1.0 References: <20200427162914.GA21677@redhat.com> In-Reply-To: <20200427162914.GA21677@redhat.com> From: Sergey Belyashov Date: Mon, 27 Apr 2020 20:00:07 +0300 Message-ID: Subject: Re: BUG: non-fixed-length ISAs are unsupported for now To: "Frank Ch. Eigler" Cc: cgen@sourceware.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cgen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cgen mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2020 17:00:20 -0000 Hi, Z80 has istructions from 1 byte (nop for example) up to 4 bytes long (eZ80 up to 6 bytes) including operands 0..2 bytes (eZ80 0..3 bytes). So base-insn-bitsize is set to 8. And it is not enought for 1-3 bytes (eZ80 1-4) insn code size (w/o immediate operands). Best regards, Sergey Belyashov =D0=BF=D0=BD, 27 =D0=B0=D0=BF=D1=80. 2020 =D0=B3., 19:29 Frank Ch. Eigler <= fche@redhat.com>: > Hi - > > > While analyzing code of CGEN I have found next code: > > [...] > > Can anybody add support for non-fixed-length ISAs? > > I am not expecting major cgen improvements. However, if your > base-insn-size is large enough to contain all the opcode-like > bits of your largest possible instruction, you may not need > those improvements. > > - FChE > >