From patchwork Tue Jun 2 23:58:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 187392 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp25168ilo; Tue, 2 Jun 2020 16:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQGidUY0EQX8gCX3ZxoMwaHVrzp8UFKbD2kmuJ9ior1MQh75SGOfTeyuFITdBd5J534EyE X-Received: by 2002:a25:d057:: with SMTP id h84mr29646113ybg.23.1591142350621; Tue, 02 Jun 2020 16:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591142350; cv=none; d=google.com; s=arc-20160816; b=0w1awCcHLhNb5nLtQTOmul8rXS48N27vcTC2CdpMMXCfdisHeEUgofQ2WCuOAFlwEN MDGL6k8SPeMPn2aunSb+RU7IZsHnFeYh9eClpWEpwDAKQb5/uCE/prJf29aiFnUG0iWL gaVeoOBjgX25JO2+n+iVz/Qgno8kxLCSV92FzXB3JTGj7dM5N4Ohiy7UxEqSz/ztCruv 8FBie98pNWl4Y/n7ORb63jV8AWmYlBoKA30AW/NUxwR7O1VfLqXXD4c1sJRLXdH/P6w+ 5mdn/FV0qnBKrDgr7SitQ8lGC9V+XApOqpPQhuAp4UpLq/WS39B3OPptDfY5xvodg9SM 7Daw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=FWcOqPbqeVUo1WtSodqWPo+nF/7NR0Mnyr2fqsiIjc0=; b=o2OCy2qdfmlbyGlaKpPS8tUTLsNpyNQGz2L5JyVPS1ZtjoW9TC52k1Bfj3jEkbwrsL eILxDeh+iLuZyQU6vAQwjKRhipegbrLlsiiMr31+ypo9D+StAGg+UGNz8NjW/l8FL7b8 UTOf0IXWn9sV68pBzit7ilUpiMCV7dYxxdOt1ujm3q4QPSlEiTZC8gYlHoSgv0AqJXuM l+LhK84Xs+5jOGv7CYB58VGO3FnG40Ev2ChjPkRAqb/QdThrYwUSsIV2Kgg52MN0nR0H qXLbf6egziIajlWzXIvZlxHBFAHCFTsF7DnmYKGh0oGDOQQ/82DdmPyJbEAAacj3wmR7 7thg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OJ88pG5Y; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a5si156849ybg.97.2020.06.02.16.59.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jun 2020 16:59:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OJ88pG5Y; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgGoI-0004gw-3x for patch@linaro.org; Tue, 02 Jun 2020 19:59:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgGnn-0004gh-G6 for qemu-devel@nongnu.org; Tue, 02 Jun 2020 19:58:39 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:40721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgGnm-00023p-J1 for qemu-devel@nongnu.org; Tue, 02 Jun 2020 19:58:39 -0400 Received: by mail-pf1-x430.google.com with SMTP id v2so293877pfv.7 for ; Tue, 02 Jun 2020 16:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FWcOqPbqeVUo1WtSodqWPo+nF/7NR0Mnyr2fqsiIjc0=; b=OJ88pG5Ym+xtgoYbmSGqSXey9q9zwb/norDgICgDFbCI3Ynz8Kv77NF8KOTjrs7VCg ZrE6LvDQRLlqxy3yc9GUmias7W11F08udcXN1eEMgsm1jdNZmkOnKkoIZJIUJALOlwlZ TtZf+opDGpeqVHUBJ+Z0I+OJhsmIm6Vr33Ea457mBlLkFN3GmWqIGptwsvZ5dsmomDuT Ab5XIxLw+Ears9IaA7AS3OcrQj0ZKWXp4zD8jAxMfG/Ukx5uEMy3Z5SuGertTlfZV5QM FsUv5QXvc/7kFr/TZrOki70EgZUih0fDLZaY47dPSaRtqrr5xJYfOssHjzYrhHb/ydfB FF2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FWcOqPbqeVUo1WtSodqWPo+nF/7NR0Mnyr2fqsiIjc0=; b=qE4akcXhsvqcGg0SGPgymf8+I954wTov0NpYpmkv+lZ6oRuF4ukQzZeXxyee2t43yk NklrAr57O+io65CoRb57TDOZtDTQ3q5EBt04p0G6N5DRi5nFVdj/PJUlmPmd0okT38/b ac0itQ1XB6LJflTB4nFQNNMstg1ycfyys8Y1dR3pmn1Md86dkWyOvcW505SxNMtCYiJ6 Blblw89bxBE485KwBXaQHLSGwUp8yTQuoXS051u2DkC0HBCn+VQpV0PsVsnekIzaPvjk JRNClK455HHQou1NqvBdlB8Fhan7FtcFpWJ4pdww6WA3ZmHVaYAWkJThatkQg3ycfr2T AWuA== X-Gm-Message-State: AOAM531UyEfEc7DrikraAlFWAgJYfKNBD0M3exvK+1DwLMuRcqW5A5kV YklvoeqvuMaCJrpBjMSUo64iibPYa+8= X-Received: by 2002:a17:90a:a897:: with SMTP id h23mr1985282pjq.90.1591142316362; Tue, 02 Jun 2020 16:58:36 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id k101sm182201pjb.26.2020.06.02.16.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 16:58:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 0/8] decodetree: Add non-overlapping groups Date: Tue, 2 Jun 2020 16:58:26 -0700 Message-Id: <20200602235834.470345-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, philmd@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is a feature that Peter requested for completing the neon decodetree conversion. Changes for v2: - Rebase on master, which includes some generic python cleanups. - Indentation error message restored. - 4 new testcases r~ Richard Henderson (8): decodetree: Tidy error_with_file decodetree: Rename MultiPattern to IncMultiPattern decodetree: Split out MultiPattern from IncMultiPattern decodetree: Allow group covering the entire insn space decodetree: Move semantic propagation into classes decodetree: Implement non-overlapping groups tests/decode: Test non-overlapping groups target/arm: Use a non-overlapping group for misc control target/arm/t32.decode | 4 +- tests/decode/err_pattern_group_nest1.decode | 11 +- tests/decode/err_pattern_group_nest2.decode | 6 + tests/decode/err_pattern_group_nest3.decode | 14 + tests/decode/succ_pattern_group_nest2.decode | 13 + tests/decode/succ_pattern_group_nest3.decode | 11 + scripts/decodetree.py | 515 +++++++++++-------- 7 files changed, 349 insertions(+), 225 deletions(-) create mode 100644 tests/decode/err_pattern_group_nest2.decode create mode 100644 tests/decode/err_pattern_group_nest3.decode create mode 100644 tests/decode/succ_pattern_group_nest2.decode create mode 100644 tests/decode/succ_pattern_group_nest3.decode -- 2.25.1