From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 149917983547464.4160607335449; Tue, 4 Jul 2017 07:50:35 -0700 (PDT) Received: from localhost ([::1]:41769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP9u-0001hm-7C for importer@patchew.org; Tue, 04 Jul 2017 10:50:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008DZ-Po for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7e-00014l-HK for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:36315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7e-00012v-AG for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:14 -0400 Received: by mail-wr0-x22d.google.com with SMTP id c11so250372563wrc.3 for ; Tue, 04 Jul 2017 07:48:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 5sm14935900wrq.60.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id CBAD03E19E2; Tue, 4 Jul 2017 15:49:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FTSGn67ihuLGFvAiU99kcOhzzHe0hsPn7oZPuJFLeYE=; b=MygsX119yewpAaBPxbkqQOrRwRrgo2D/aIyimCB8uhjbMMKZZe/ErUamoAwPg2/f6Y jk7wgWE2vA9mXerlQAU/slNGf0GCpwduZMl8a4ymbxMTYjwfyBSAk6xyVc9r3veltX/z aM3WUCoMv03mye5M40rkhUPxd5zMWXWc2VIGc= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=FTSGn67ihuLGFvAiU99kcOhzzHe0hsPn7oZPuJFLeYE=; b=lr15kYK4Qu07ZZF8g58SpsUD/en7lD80a3j2TOehneqbx6i5giBV30Gsr5uMggnLGF ktA7JLQwUL4hxZB2AJWY2PcY3U2j+SyRaYjQ0UMop8KM1B+R46zDbTOwB6Q2r97A2oe6 zSt3z/LnjayU6GBwkdzlol5oRYG+tfmdY6TuMebuQKS7b8pMJNllBKjTBDh1sPLuAi3X YbGq+BlkhxJ/pt2SOsBi7eKtvyrq56KwoQyiDBDHO+Rrz3ZT1Lf/rIZ3CqTfxA+CmfGS NrR7YTJ0j1W7xFSSL7H4v0EnQzmAN2ZD2YmtDnlIXiTvU4E2CYU30op4MC9QA5tjBH1x M+SA== X-Gm-Message-State: AKS2vOyn0ACi4MCzxj629Y6sTlRGcK1pRE3Dgq+wAtC4vwt395xFKo1d cdZ8Vw40kQUSPCbEl8b4lw== X-Received: by 10.223.173.140 with SMTP id w12mr41956418wrc.4.1499179691509; Tue, 04 Jul 2017 07:48:11 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:49 +0100 Message-Id: <20170704144859.17644-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22d Subject: [Qemu-devel] [RISU PATCH 01/11] risu: make match status take tracing into account X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e --- reginfo.c | 14 +++++++++----- risu.c | 4 ++-- risu.h | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/reginfo.c b/reginfo.c index 13879d5..d9d37b3 100644 --- a/reginfo.c +++ b/reginfo.c @@ -138,7 +138,7 @@ int recv_and_compare_register_info(read_fn read_fn, * Should return 0 if it was a good match (ie end of test) * and 1 for a mismatch. */ -int report_match_status(void) +int report_match_status(int trace) { int resp =3D 0; fprintf(stderr, "match status...\n"); @@ -148,7 +148,7 @@ int report_match_status(void) /* We don't have valid reginfo from the apprentice side * so stop now rather than printing anything about it. */ - fprintf(stderr, "master reginfo:\n"); + fprintf(stderr, "%s reginfo:\n", trace ? "this":"master"); reginfo_dump(&master_ri, stderr); return 1; } @@ -166,11 +166,15 @@ int report_match_status(void) return 0; } =20 - fprintf(stderr, "master reginfo:\n"); + fprintf(stderr, "%s reginfo:\n", trace ? "this":"master"); reginfo_dump(&master_ri, stderr); - fprintf(stderr, "apprentice reginfo:\n"); + fprintf(stderr, "%s reginfo:\n", trace ? "trace":"apprentice"); reginfo_dump(&apprentice_ri, stderr); =20 - reginfo_dump_mismatch(&master_ri, &apprentice_ri, stderr); + if (trace) { + reginfo_dump_mismatch(&apprentice_ri, &master_ri, stderr); + } else { + reginfo_dump_mismatch(&master_ri, &apprentice_ri, stderr); + } return resp; } diff --git a/risu.c b/risu.c index 6f213dc..47471c6 100644 --- a/risu.c +++ b/risu.c @@ -228,7 +228,7 @@ int master(void) signal_count); return 0; } else { - return report_match_status(); + return report_match_status(0); } } set_sigill_handler(&master_sigill); @@ -250,7 +250,7 @@ int apprentice(void) #endif close(apprentice_fd); fprintf(stderr, "finished early after %zd checkpoints\n", signal_c= ount); - return report_match_status(); + return report_match_status(1); } set_sigill_handler(&apprentice_sigill); fprintf(stderr, "starting apprentice image at 0x%"PRIxPTR"\n", diff --git a/risu.h b/risu.h index 9f15662..1c8ecee 100644 --- a/risu.h +++ b/risu.h @@ -91,7 +91,7 @@ int recv_and_compare_register_info(read_fn read_fn, * Should return 0 if it was a good match (ie end of test) * and 1 for a mismatch. */ -int report_match_status(void); +int report_match_status(int trace); =20 /* Interface provided by CPU-specific code: */ =20 --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499179983994364.8466896845424; Tue, 4 Jul 2017 07:53:03 -0700 (PDT) Received: from localhost ([::1]:41781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPCI-0003nf-GX for importer@patchew.org; Tue, 04 Jul 2017 10:53:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008DX-P5 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7f-000157-3G for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7e-00014M-Ts for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:15 -0400 Received: by mail-wm0-x232.google.com with SMTP id i127so140860454wma.0 for ; Tue, 04 Jul 2017 07:48:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id w96sm15739393wrc.33.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id D68673E21EE; Tue, 4 Jul 2017 15:49:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F8yl9dSoVDbMRq5dc/P7Ahv4mo8YJHu1zH25w5Joy/E=; b=ahPYOnqKtKYi9hX3oPQxIqRMsK4hTaEzKVJNBoy/XrZoQggu2UjQGsJdDOhVY6azf5 YpN6DCOCPqz3jZijr6K9wm2Z6z4Xw98ATB0rq1X5CNJc9R1jp6dcpscb1wvFYaByxp8N bouH2KraSzembDP3tIBu75vjaqL51qHaDZIWo= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=F8yl9dSoVDbMRq5dc/P7Ahv4mo8YJHu1zH25w5Joy/E=; b=OFEFirH8vTZErDG4Z4J2Db0ZUtUjBQyzGDpsj7froRMWm3lFBtPPPtaLnSnyuKlTm6 p6WunDub8t7XADB2bQmAekMgePOdUiytsPBjTcPwVrgqWEFTJCViG47on1SsPaVcsnog ZSLJUQWiFrSbIerj4R8P138ao06sxIglxE4RBzhPDNFqUcfmJALio8g3r5cnSTghFki7 Tifqr3ZJHZdKrvEFyBumxvjV1NQvLBChVAVluf01GDgzEl3OWeYb9UldamyH4mAWkoLF +egWVaN+XLaPO0Wpq3hMTsrMi+Am9PTwKrRz3l0hGELcaQ829VB7/mErEX4+D3kZHD6C n33Q== X-Gm-Message-State: AKS2vOx4FYoe51SsiodxDgbP1fVHozFfUlz+5QUFGjMi6mi5x65vQj7W KkolGlTX8B0b8YdXJkbC/Q== X-Received: by 10.28.31.203 with SMTP id f194mr18534533wmf.44.1499179693756; Tue, 04 Jul 2017 07:48:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:50 +0100 Message-Id: <20170704144859.17644-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::232 Subject: [Qemu-devel] [RISU PATCH 02/11] reginfo.c: always return 1 on OP_TESTEND X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 In the master/apprentice setup the response byte of 1 is returned by write_fn. However when tracing it will happily report 0 as it successfully writes the last bytes. To avoid running of the end when tracing we just always return 1 at this point. Signed-off-by: Alex Benn=C3=A9e --- reginfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reginfo.c b/reginfo.c index d9d37b3..76f24f9 100644 --- a/reginfo.c +++ b/reginfo.c @@ -39,7 +39,10 @@ int send_register_info(write_fn write_fn, void *uc) =20 switch (op) { case OP_TESTEND: - return write_fn(&ri, sizeof(ri)); + write_fn(&ri, sizeof(ri)); + /* if we are tracing write_fn will return 0 unlike a remote + end, hence we force return of 1 here */ + return 1; case OP_SETMEMBLOCK: memblock =3D (void *)(uintptr_t)get_reginfo_paramreg(&ri); break; --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499179829082527.5368900470035; Tue, 4 Jul 2017 07:50:29 -0700 (PDT) Received: from localhost ([::1]:41763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP9m-0001bV-J4 for importer@patchew.org; Tue, 04 Jul 2017 10:50:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008Dg-TS for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7d-00013x-S0 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:35571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7d-00013I-KF for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:13 -0400 Received: by mail-wr0-x231.google.com with SMTP id k67so249660520wrc.2 for ; Tue, 04 Jul 2017 07:48:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g63sm20292382wrd.11.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E11813E21F6; Tue, 4 Jul 2017 15:49:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=81S40Mta2D6KRS1shdF2cFudpSKzvnPh8QMj2aasreM=; b=bA3rHbXs2OkJPZqPcAs5IVpe3tR6yWWTyXO8MtutwMFrUO+0F2grfHvV8q7Towxrdf 8BC1dhAHaCSwCPLWXoH8Lqu8N7/F/dVg475QbBr7gJtH++81Xyc51+LR97k2cFWW4S9j 2McpKy+xXKWbfmXgVxGCyCju18Oh6ks5uzCBI= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=81S40Mta2D6KRS1shdF2cFudpSKzvnPh8QMj2aasreM=; b=VhsXO91xvOP6TQz3JV2hGzSyN+D7nYKKP2/QfCqme2artVA4ZhSltdYWGOq220wJaa CLmgt47FZO+BLFty3sHxQfkbQLxKIheeoV913pEafJGWqu4xtMTxkY6RK5CBSs7RKxwK Kl2U4RoNPN5KYzCMvyNDGWv+f3kYBQUdiFJ29AydfS1tH/JbXMmY1HW+Ca3MdKEaGzgD dqVkTR01RUm2z81qI5lODJl9BJEtORdzjM7FR/kgLKFYETU5e4x7JpwIOsuEgZ5Upd66 goNGyZy3/L+f1+UWVsS7EkPwUYR8fKPxQSjFFKLxQBJON+ZBoYlbyN9YuVJuOhjjedpG ny/g== X-Gm-Message-State: AKS2vOyB15XnCeSMUFhslRJ8S1faHtP1Qxxf6YeouEH9+i8pZU/j/Itu AnhWzzvaHZpTTmc/ X-Received: by 10.223.161.89 with SMTP id r25mr41518243wrr.162.1499179692439; Tue, 04 Jul 2017 07:48:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:51 +0100 Message-Id: <20170704144859.17644-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 Subject: [Qemu-devel] [RISU PATCH 03/11] README: document --static builds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e --- README | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README b/README index 858a349..e0bf5c5 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ test blobs (which can be run anywhere), and a Linux execu= table 'risu' which runs on the target architecture (ie ARM). To build the executable part: =20 - [VAR=3DVALUE] ... ./configure + [VAR=3DVALUE] ... ./configure [--static] make =20 where [VAR=3DVALUE] ... allows you to specify any options. @@ -25,6 +25,10 @@ Most useful is CROSS_PREFIX=3D which specifies the cross compiler prefix; you'll need this if you're not building on the target system (Example: CROSS_PREFIX=3Darm-linux-gnueabihf- ) + +Passing --static will build a statically linked binary which is useful +if you don't want to mess around with chroot's to run the binary. + For other possibilities run 'configure --help'. =20 Building into a separate build tree from the source code is supported: @@ -86,8 +90,14 @@ as simple as: =20 However since you actually need to run it under qemu or similar you probably need an ARM chroot to run it in, and to do something -like - sudo chroot /srv/chroot/arm-mav /risu --host ipaddr vqshlimm.out +like: + + sudo chroot /srv/chroot/arm-mav /risu --host ipaddr vqshlimm.out + +If you built the binary statically you can simply run: + + /path/to/qemu ./risu --host ipaddr vqshlimm.out + =20 When the apprentice connects to the master, they will both start running the binary and checking results with each other. When the --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499179831339664.8468750592933; Tue, 4 Jul 2017 07:50:31 -0700 (PDT) Received: from localhost ([::1]:41765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP9p-0001du-39 for importer@patchew.org; Tue, 04 Jul 2017 10:50:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008Dd-Qi for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7g-000167-D1 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:33575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7g-00015T-6Y for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:16 -0400 Received: by mail-wr0-x22c.google.com with SMTP id r103so250407626wrb.0 for ; Tue, 04 Jul 2017 07:48:16 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 22sm26587572wru.29.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id EBDBB3E21F8; Tue, 4 Jul 2017 15:49:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ccxEC857UVq1T4+aZ0Ssasv7IVckYMJq5w7nEe8SDKU=; b=RZ/ThJsscRC9ENmyVLPCEwgvl/SZ1KqkS+pLYojQ13DAoTLM+vN1HoNb6fW860eltp bTmteTusT7ytgIWMEg92uIWFBEWQdNqGeBiv7iBntWeuAqAtLV9TflVQOdyMVhb56SnN DYJ1I8bUdWp+aZLyIzYVedL1mIoTyGtrF3k6I= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ccxEC857UVq1T4+aZ0Ssasv7IVckYMJq5w7nEe8SDKU=; b=g7GeelJGZnQ4OstIh5u0/yc7mj8r/KqxvTEl4DMLXwt0HkTO7qc6bdc+wkcDGq9ZBo Mcxr8WTSw+YJOiVkNlSWRD1wcCQgc5TRxqQIsLYZ5zIadUSX8TQDPKZtZ2MFS6lZfmGY f74UvbRFyQAumx8tlIutLNumiLJGKFIMhpmQ4hJbGPcPJInsIWAbaQAGwfNydR/DjBJc sPJUOQchOgPCiutneB+U5931SERstXSJb6B4GbU4LCrunGQiJ90BUxr5kgQxy7QDny3O 1wCGP6U7LfVsf2wOjKwzTNB1R5k3pGzH+5U14thezxvuZCl42Xqtzditrchn9EPgEBX7 E3UA== X-Gm-Message-State: AKS2vOwclYmj2a2yjDs/NKKCe4e3hxBEhEfmhULKbEGkmBzBTDdr+JuX BERVW5lblXCMGE9Z X-Received: by 10.223.134.226 with SMTP id 31mr19874003wry.63.1499179694987; Tue, 04 Jul 2017 07:48:14 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:52 +0100 Message-Id: <20170704144859.17644-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22c Subject: [Qemu-devel] [RISU PATCH 04/11] README: document record/replay support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e --- README | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README b/README index e0bf5c5..5f16f60 100644 --- a/README +++ b/README @@ -107,6 +107,26 @@ mismatch status to its standard output. NB that in the register dump the r15 (pc) value will be given as an offset from the start of the binary, not an absolute value. =20 +While the master/slave setup works well it is a bit fiddly for running +regression tests and other sorts of automation. For this reason risu +supports recording a trace of its execution to a file. For example: + + risu --master FxxV_across_lanes.risu.bin -t FxxV_across_lanes.risu.trace + +And then playback with: + + risu FxxV_across_lanes.risu.bin -t FxxV_across_lanes.risu.trace + +Ideally it should be built with zlib to compress the trace files which +would otherwise be huge. If building with zlib proves too tricky you +can pipe to stdout and an external compression binary using "-t -". + + risu --master FxxV_across_lanes.risu.bin -t - | gzip --best > trace.file + +and: + + gunzip -c trace.file | risu -t - FxxV_across_lanes.risu.bin + File format ----------- =20 @@ -203,10 +223,6 @@ implementation, for example) but only ARM is tested. * we don't actually compare FP status flags, simply because I'm pretty sure qemu doesn't get them right yet and I'm more interested in fixing gross bugs first. - * there isn't currently any support for a "record and replay -results" mode. This would allow you to record the correct -results from the ARM host once and then test a model implementation -even if you didn't have the corresponding native hardware. * You can compile statically to avoid the requirement for the ARM chroot for qemu testing but you can no longer use gethostbyname() and need to specify your hosts by IP address. --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499179986490824.7248671023467; Tue, 4 Jul 2017 07:53:06 -0700 (PDT) Received: from localhost ([::1]:41783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPCL-0003pc-30 for importer@patchew.org; Tue, 04 Jul 2017 10:53:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7i-0008Di-T7 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7i-00017g-2v for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:18 -0400 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:35589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7h-00016f-R8 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: by mail-wr0-x22b.google.com with SMTP id k67so249661502wrc.2 for ; Tue, 04 Jul 2017 07:48:17 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i131sm24325080wmf.0.2017.07.04.07.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 0266A3E21FA; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cfnWI7rRuE6OxcBRMroO3e0nUsXaXCxvO7XTSwiydKw=; b=BxNNg0wCuD0ZTqOkiz5EeP8lg4phCx8OziCCUryO9RwpIOpb/C//s0yPPwZ7BK+txI bQlOU1wlevMskKuE0sauC5LhbFTMgxnrM7Iu7fttbXE8sQ0vCAHArwj8Z9hWyZMu2Znr n0rgWFqlPB8urpljG4K6Q6Qr0ycti8XhcuuYY= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cfnWI7rRuE6OxcBRMroO3e0nUsXaXCxvO7XTSwiydKw=; b=LtgmusUMglDyY4AJnUxormkcoBSeeP6h5uXUZz5p7GRptO3c9m8ZjpFR2UJ14SPhXV D+54byHOiGPADoHOlurMQtuOIW6f8d/EICTIf9PJ1IuLtJSjHp1Gzf5PjADfsbMv2sp7 +46E1RCe2Os6b++VsKy7W557XfD3bxHi/gzbAdEJT52m+8uXXXKaYITENHPcR0Zkv8xS kHpe+4W21Bmn5O+d0EOBCjqOBlPyMLvNZWN21eoSKbdr1X20TRf11DZPVHLgJTEzpOq1 VpOIDywM3bhuXz+ksIzQMdCrLuJB5TdQ+RlAXC+VVP2EMEsOucFXFMe+u9eAiy+BH0yX T7WQ== X-Gm-Message-State: AKS2vOx3ur8kW6TcHHQmxFKx6HuHp1Q/yjyBA40EelBEr6xve2c747+K CZ4ZIWTfXb5aUZ/L X-Received: by 10.223.177.213 with SMTP id r21mr41007509wra.119.1499179696696; Tue, 04 Jul 2017 07:48:16 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:53 +0100 Message-Id: <20170704144859.17644-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22b Subject: [Qemu-devel] [RISU PATCH 05/11] risu.el: derive from text-mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 As RISU files have copious commentary it seems better to derive from text-mode so we can access things like spell-checker short cuts ;-) Signed-off-by: Alex Benn=C3=A9e --- risu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risu.el b/risu.el index dff9337..1875d02 100644 --- a/risu.el +++ b/risu.el @@ -39,7 +39,7 @@ =20 ;;; Code =20 -(define-derived-mode risu-mode fundamental-mode "RISU" +(define-derived-mode risu-mode text-mode "RISU" "Major mode for editing RISU control files." (set (make-local-variable 'font-lock-defaults) '(risu-font-lock-keywords= ))) =20 --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 149917998450457.2712167987562; Tue, 4 Jul 2017 07:53:04 -0700 (PDT) Received: from localhost ([::1]:41782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPCJ-0003ow-6E for importer@patchew.org; Tue, 04 Jul 2017 10:53:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7j-0008EP-Q6 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7i-00018Y-UA for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7i-00017l-OT for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:18 -0400 Received: by mail-wm0-x236.google.com with SMTP id 62so198658467wmw.1 for ; Tue, 04 Jul 2017 07:48:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id x21sm20654607wme.24.2017.07.04.07.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 0D4263E21FB; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6rX3ilqv7aL5KrgTyFODjWk3I6RoMwbaMcAPnIyksQU=; b=QoPeQmKumK/IgVMMR3FGgRhYLW24LXCe/ecWd8WmggswFwE1IetekAxzTa9UUmzBEH H+/6L9R3UNR/5ey+77VXDHNTwZkc/TFIFuXntD02uEtrNd70ESLr/eVrLY1wYV+29z/g ocAMGPjI6D7jWpLi6ljsPKJSJ2RNoqs7f+Dpk= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6rX3ilqv7aL5KrgTyFODjWk3I6RoMwbaMcAPnIyksQU=; b=tisFC1S0NeD5wBUTjFrzhKvp5x41plcNIH67iG/4nYL9adXiWUcAd92b/uV/vVaxN8 gPcftBGJKrXhKuuAwZ3gs2o+9FdI+BNDN5wgPYBInQEMwmrAXoBGIxbtBMWjOW2N3G6G BgMFpNBN06rWif1nFZO60OxnR/k9LEvse4baEZ+3HcHFZOauXYJYNhnodsTH5BrU8HHw wcbklr3ylk9gmp3HUtRJIDAgTPNZekE5DAXYkZyi9YDxOPrzz0XWcAD61DhAVy7vIkc6 FvGIPm9TSVlhMY9TCgC75qrEXduZnuQOKTmQbLd+JvWEsDkLeoV4ZgLte0J4MFulz83P XTog== X-Gm-Message-State: AKS2vOxjwTWjNdR5bksJYjAX6XFQfwFZ+ASMQWpP4vAX8lo6WtqCG3Hk EOmbBBXc2Ud6DOcg1P8aIg== X-Received: by 10.28.234.193 with SMTP id g62mr30350592wmi.24.1499179697598; Tue, 04 Jul 2017 07:48:17 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:54 +0100 Message-Id: <20170704144859.17644-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 Subject: [Qemu-devel] [RISU PATCH 06/11] risugen: fix bad indent X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e --- risugen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risugen b/risugen index 8b20425..347cf12 100755 --- a/risugen +++ b/risugen @@ -262,7 +262,7 @@ Valid options: These REs are applied after the matching pattern which is useful if you want to exclude a specific instruction= from a general set you have excluded. - --no-fp : disable floating point: no fp init, randomization etc. + --no-fp : disable floating point: no fp init, randomization etc. Useful to test before support for FP is available. --be : generate instructions in Big-Endian byte order (ppc64 o= nly). --help : print this message --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499180118991215.93614319695655; Tue, 4 Jul 2017 07:55:18 -0700 (PDT) Received: from localhost ([::1]:41796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPER-0006Hr-Kd for importer@patchew.org; Tue, 04 Jul 2017 10:55:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7m-0008G0-9o for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7l-0001BQ-82 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:22 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:35231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7l-0001AT-1r for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:21 -0400 Received: by mail-wm0-x22c.google.com with SMTP id w126so198103673wme.0 for ; Tue, 04 Jul 2017 07:48:20 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id d1sm24500266wra.43.2017.07.04.07.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 17DDE3E21FC; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6edPI3sV3IojOpL+0ihRIIsv1ygwoR/EzfaS2rzc4zw=; b=Uvwzb/wOx4OPlCDlcM6SHi/QS9BeKIvbrT5oGIhl4jhS3sXpZ0Ptn+IwG/UEXkt9+i cpgrFaMMVr5hchVE8SUbMahk96qfqi6lUsI+7+Q4wxgc/ecQuExTFVbHkiYf8yTaoOJs j43DOaGgccbcQdwMFVDbujgmfAFCbGV9pB5ZU= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=6edPI3sV3IojOpL+0ihRIIsv1ygwoR/EzfaS2rzc4zw=; b=Gm/BsH1qrNgYFTa4CWKJhyk5xXAUqzd6LLhD39drjOHxYgnjhTYvBJcfI/oyC/oR4Q 6zE1WzWLO3ILn1uAe/RNcCtQGN3hytiXjGg4sZqwPHzwJn5SBIi8thb5nGcZE4Z/4vZE K67TMvju06rMTRIb009k9KIGI8TU+DIrymrt+Y/YhPV3UE9F7O8+c+BaDO/0KzbxjLl+ IoyJ6kadQkikbfP7amQPEzO3cRpgjrqRFGOhC0TQb9QctJAJPkHLfVGibkti/CttXJUu q5CvlBZDHZUg9YYphXWKClLLpw/8SV44zSKwaZaYFgJydt2V/ceE8IdYz7advTlR5hKV MckA== X-Gm-Message-State: AIVw110FkT99YrLY7SSrjhmLQj5Mq/Ga5Vq+iQwbO8ObH6rt0i30kewO ULP33eL5y2eYHgIb X-Received: by 10.28.217.3 with SMTP id q3mr9685958wmg.115.1499179699848; Tue, 04 Jul 2017 07:48:19 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:55 +0100 Message-Id: <20170704144859.17644-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22c Subject: [Qemu-devel] [RISU PATCH 07/11] risugen: support @GroupName in risu files X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 The existing pattern support is useful but it does get a little tedious when faced with large groups of instructions. This introduces the concept of a @GroupName which can be sprinkled in the risu definition and is attached to all instructions following its definition until the next group or an empty group "@" is specified. It can be combined with the existing pattern support to do things like: ./risugen --group AdvSIMDAcrossVector --not-pattern ".*_RES" aarch64.risu= foo.bin Signed-off-by: Alex Benn=C3=A9e --- risugen | 15 +++++++++++++++ risugen_arm.pm | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/risugen b/risugen index 347cf12..97ffa83 100755 --- a/risugen +++ b/risugen @@ -30,7 +30,10 @@ my %insn_details; =20 # The arch will be selected based on .mode directive defined in risu file. my $arch =3D ""; +# Current group, updated by @GroupName +my $insn_group =3D ""; =20 +my @group =3D (); # include groups my @pattern_re =3D (); # include pattern my @not_pattern_re =3D (); # exclude pattern =20 @@ -118,6 +121,11 @@ sub parse_config_file($) exit(1); } =20 + if ($tokens[0] =3D~ /^@(.*)/ ) { + $insn_group =3D $1; + next; + } + if ($tokens[0] =3D~ /^\./) { parse_risu_directive($file, $seen_pattern, @tokens); next; @@ -235,6 +243,9 @@ sub parse_config_file($) $insnrec->{fixedbits} =3D $fixedbits; $insnrec->{fixedbitmask} =3D $fixedbitmask; $insnrec->{fields} =3D [ @fields ]; + if (length $insn_group) { + $insnrec->{group} =3D $insn_group; + } $insn_details{$insnname} =3D $insnrec; } close(CFILE) or die "can't close $file: $!"; @@ -253,6 +264,7 @@ Valid options: --fpscr n : set initial FPSCR (arm) or FPCR (aarch64) value (defaul= t is 0) --condprob p : [ARM only] make instructions conditional with probabili= ty p (default is 0, ie all instructions are always executed) + --group name[,name..]: only use instructions in defined groups --pattern re[,re...] : only use instructions matching regular expressi= on Each re must match a full word (that is, we match on the perl regex '\\b((re)|(re))\\b'). This means that @@ -281,6 +293,7 @@ sub main() GetOptions( "help" =3D> sub { usage(); exit(0); }, "numinsns=3Di" =3D> \$numinsns, "fpscr=3Do" =3D> \$fpscr, + "group=3Ds" =3D> \@group, "pattern=3Ds" =3D> \@pattern_re, "not-pattern=3Ds" =3D> \@not_pattern_re, "condprob=3Df" =3D> sub { @@ -295,6 +308,7 @@ sub main() # allow "--pattern re,re" and "--pattern re --pattern re" @pattern_re =3D split(/,/,join(',',@pattern_re)); @not_pattern_re =3D split(/,/,join(',',@not_pattern_re)); + @group =3D split(/,/,join(',',@group)); =20 if ($#ARGV !=3D 1) { usage(); @@ -316,6 +330,7 @@ sub main() 'numinsns' =3D> $numinsns, 'fp_enabled' =3D> $fp_enabled, 'outfile' =3D> $outfile, + 'group' =3D> \@group, 'pattern_re' =3D> \@pattern_re, 'not_pattern_re' =3D> \@not_pattern_re, 'details' =3D> \%insn_details, diff --git a/risugen_arm.pm b/risugen_arm.pm index 1024660..8ad208a 100644 --- a/risugen_arm.pm +++ b/risugen_arm.pm @@ -895,6 +895,7 @@ sub write_test_code($$$$$$$$) my $fp_enabled =3D $params->{ 'fp_enabled' }; my $outfile =3D $params->{ 'outfile' }; =20 + my @group =3D @{ $params->{ 'group' } }; my @pattern_re =3D @{ $params->{ 'pattern_re' } }; my @not_pattern_re =3D @{ $params->{ 'not_pattern_re' } }; my %insn_details =3D %{ $params->{ 'details' } }; @@ -910,6 +911,12 @@ sub write_test_code($$$$$$$$) =20 # Get a list of the insn keys which are permitted by the re patterns my @keys =3D sort keys %insn_details; + if (@group) { + my $re =3D join("|",@group); + @keys =3D grep { + defined($insn_details{$_}->{group}) && + grep /$re/, $insn_details{$_}->{group}} @keys + } if (@pattern_re) { my $re =3D '\b((' . join(')|(',@pattern_re) . '))\b'; @keys =3D grep /$re/, @keys; --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499180262070568.2200257123181; Tue, 4 Jul 2017 07:57:42 -0700 (PDT) Received: from localhost ([::1]:41813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPGm-00009o-PK for importer@patchew.org; Tue, 04 Jul 2017 10:57:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7k-0008Fj-V1 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7j-00019x-Ud for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:21 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:38774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7j-000193-O9 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: by mail-wm0-x230.google.com with SMTP id f67so87107186wmh.1 for ; Tue, 04 Jul 2017 07:48:19 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id x21sm20654642wme.24.2017.07.04.07.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 228F13E21FD; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KQqE8ziyU+KLpr0wuWEOdSSUtfqGjLdjxYDtaGm4tsk=; b=bWqBn6JHMeDkxhAPdFHTrfzRRWshCN621SmXD4kToGxloybkeT8L3cA4kF5fanEd+N Wq6th//Swk1HtvV0Ddxtkk1YqO9ktW6VZI9w+RanW96c0A5UR4+CIUbQP1dI7fWup/E2 zFMZlI1rkxt85VM+ALtwZsQfvpZFDb+sDB29Q= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KQqE8ziyU+KLpr0wuWEOdSSUtfqGjLdjxYDtaGm4tsk=; b=solWzGKu3caQZLD6wYY+N3A0Wm7HAOlmZpz3Sb87zugD/cnBjocsb1KAzGgajekVeW M80XcFfhBZfRr21/qgRUJHyFZzl1R1ivuFJjJaK7xMM+YwD3xquY0yDTD0uGQ7VPD8TU xtr1Ah0wcRtWlRV09O4X6kslqO/8nQRhyUoxDWjChH2bv2+dy0DwMG4t+T/gjp52Oaqh pBVlhFg6xt26Xjz4x6LpYd7x5WPKKrkKgqA6J0UreBufuPFqEGBvGDrxqMGnMDGgeoSp uJup1cFn1yBbnpA225BYW3vbekGOB3BU+ijML1Y1hhZz66bxye8dCX4zmVLM2RuOxDI7 8WyA== X-Gm-Message-State: AKS2vOy1LM8q0rzevM0QfBnV4fh+IMN9Con9oDwCAEqPVc1LrensM+la zgXNADuOmBPoMgqN X-Received: by 10.28.32.70 with SMTP id g67mr18359464wmg.101.1499179698621; Tue, 04 Jul 2017 07:48:18 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:56 +0100 Message-Id: <20170704144859.17644-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 Subject: [Qemu-devel] [RISU PATCH 08/11] aarch64.risu: document naming conventions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Alex Benn=C3=A9e --- aarch64.risu | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aarch64.risu b/aarch64.risu index 2f3341c..bfca45f 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -7,6 +7,7 @@ # # Contributors: # Claudio Fontana - initial implementation +# Alex Benn=C3=A9e - a number of additions including v8.2 FP16 # based on arm.risu by Peter Maydell ##########################################################################= ##### =20 @@ -19,6 +20,15 @@ # XXX NIY: SP-related instructions # XXX NIY: floating point and SIMD specific insns =20 +# Instruction suffixes to identify variants +# m - memory (loads/stores) +# s - scalar +# v - vector +# z - zero (e.g. compare to zero) +# f - fixed point +# +# _FP16 for ARMv8.2 half-precision extensions + # - - - - 1 - 0 - - - - - - - - - - - - - - - Loads and stores # C3.3 Loads and stores =20 --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499180134308275.83675429005996; Tue, 4 Jul 2017 07:55:34 -0700 (PDT) Received: from localhost ([::1]:41803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPEi-0006Wn-Vv for importer@patchew.org; Tue, 04 Jul 2017 10:55:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7n-0008G2-Hi for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7m-0001Ch-OM for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:23 -0400 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:33916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7m-0001Bx-IL for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:22 -0400 Received: by mail-wr0-x234.google.com with SMTP id 77so250282273wrb.1 for ; Tue, 04 Jul 2017 07:48:22 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t62sm662005wmb.24.2017.07.04.07.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2C4BB3E21FE; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K7H+/PVsQu2fTl0M8UyBL23eYX1332tcbGalx5FkTkw=; b=WIjDkDgACu4TAGib1qk+EAGqoDkVRPx7AB/DrACUeXV2BToOiYKbfJQQkL1gzbkHZx zWVAcZwqriJELBIlDH3DBjQMg7qTbuOnN3vIRwqZkX2kJxgIsORE+N/HnqI6XCvqAfOL b03yFlnpK3RLF7YlLHMuFFMuOeICVi1/nY3iY= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=K7H+/PVsQu2fTl0M8UyBL23eYX1332tcbGalx5FkTkw=; b=BxGxc2uvxVU0msZO3ZC7XRuEHcAZhcuXHS9m37s17nV3gM0lfhI6c3TS7uoTei1jkZ AP2e9f2C/avAwOl3j9HJZXskI+sSJvjcq14rzTsaXFHZduS0btt0YzQP3EuqlBDq72no k2pNvBGtgM9Dwj7lVy1BftbgTrwmi5vaYoa+b9jdPYpPzIUpX3P5oxmmc/ilUILLL2yN uqK9t9vMzXd8/URW1UdGv3AgQ8nxIQhgID41bbeRjAWj0YvQxO8/3M8o00vU6fMrq95o mKd3KIzToQzBtopeiKts+EKKTxOYkXGzfi4GPmT4g7haZVuq7FQoo4fP9NUoqDj7iLYr lMcQ== X-Gm-Message-State: AKS2vOxCypkg7Ht8LJ7Rs1A7K7BpGxRSaX5qzuSserZATvbSw+KbWqDt H7y9yXTmjtX6wl2b X-Received: by 10.223.161.219 with SMTP id v27mr36284048wrv.135.1499179701298; Tue, 04 Jul 2017 07:48:21 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:57 +0100 Message-Id: <20170704144859.17644-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::234 Subject: [Qemu-devel] [RISU PATCH 09/11] aarch64.risu: remove duplicate AdvSIMD Scalar 3 same block X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 A chunk of the AArch64 definitions repeat themselves. Clean that up. Signed-off-by: Alex Benn=C3=A9e --- aarch64.risu | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/aarch64.risu b/aarch64.risu index bfca45f..609021a 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -2130,6 +2130,8 @@ SQDMULL_S3D A64_V 0 1 U 11110 size:2 1 rm:5 1101 00 r= n:5 rd:5 # 31 30 29 28 27 26 25 24 23 22 21 20 16 15 11 10 9 5 4 0 # 0 1 U 1 1 1 1 0 size 1 [ Rm ] [ opcode ] 1 [ Rn ] [ Rd ] # +@AdvSIMDScalar3Same + SQADD A64_V 01 0 11110 size:2 1 rm:5 00001 1 rn:5 rd:5 SQSUB A64_V 01 0 11110 size:2 1 rm:5 00101 1 rn:5 rd:5 CMGT A64_V 01 0 11110 size:2 1 rm:5 00110 1 rn:5 rd:5 @@ -2167,28 +2169,7 @@ FCMGT A64_V 01 1 11110 1 size:1 1 rm:5 11100 1 = rn:5 rd:5 FACGT A64_V 01 1 11110 1 size:1 1 rm:5 11101 1 rn:5 rd:5 \ !constraints { $size !=3D 11; } =20 -CMTST A64_v 01 0 11110 size:2 1 rm:5 10001 1 rn:5 rd:5 -SQDMULH A64_v 01 0 11110 size:2 1 rm:5 10110 1 rn:5 rd:5 -FMULX A64_v 01 0 11110 0 size:1 1 rm:5 11011 1 rn:5 rd:5 -FCMEQ A64_v 01 0 11110 0 size:1 1 rm:5 11100 1 rn:5 rd:5 -FRECPS A64_v 01 0 11110 0 size:1 1 rm:5 11111 1 rn:5 rd:5 -FRSQRTS A64_v 01 0 11110 1 size:1 1 rm:5 11111 1 rn:5 rd:5 -UQADD A64_v 01 1 11110 size:2 1 rm:5 00001 1 rn:5 rd:5 -UQSUB A64_v 01 1 11110 size:2 1 rm:5 00101 1 rn:5 rd:5 -CMHI A64_v 01 1 11110 size:2 1 rm:5 00110 1 rn:5 rd:5 -CMHS A64_v 01 1 11110 size:2 1 rm:5 00111 1 rn:5 rd:5 -USHL A64_v 01 1 11110 size:2 1 rm:5 01000 1 rn:5 rd:5 -UQSHL A64_v 01 1 11110 size:2 1 rm:5 01001 1 rn:5 rd:5 -URSHL A64_v 01 1 11110 size:2 1 rm:5 01010 1 rn:5 rd:5 -UQRSHL A64_v 01 1 11110 size:2 1 rm:5 01011 1 rn:5 rd:5 -SUBv A64_v 01 1 11110 size:2 1 rm:5 10000 1 rn:5 rd:5 -CMEQ A64_v 01 1 11110 size:2 1 rm:5 10001 1 rn:5 rd:5 -SQRDMULH A64_v 01 1 11110 size:2 1 rm:5 10110 1 rn:5 rd:5 -FCMGE A64_v 01 1 11110 0 size:1 1 rm:5 11100 1 rn:5 rd:5 -FACGE A64_v 01 1 11110 0 size:1 1 rm:5 11101 1 rn:5 rd:5 -FABD A64_v 01 1 11110 1 size:1 1 rm:5 11010 1 rn:5 rd:5 -FCMGT A64_v 01 1 11110 1 size:1 1 rm:5 11100 1 rn:5 rd:5 -FACGT A64_v 01 1 11110 1 size:1 1 rm:5 11101 1 rn:5 rd:5 +@ =20 # C3.6.12 AdvSIMD scalar 2reg misc CMGTzero A64_V 01 0 11110 size:2 10000 01000 10 rn:5 rd:5 --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499180282639714.2186254275175; Tue, 4 Jul 2017 07:58:02 -0700 (PDT) Received: from localhost ([::1]:41815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPH6-0000RR-4D for importer@patchew.org; Tue, 04 Jul 2017 10:58:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7r-0008Jx-L4 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7n-0001Dh-VD for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:27 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:38799) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7n-0001Ct-Mp for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:23 -0400 Received: by mail-wm0-x22d.google.com with SMTP id f67so87108920wmh.1 for ; Tue, 04 Jul 2017 07:48:23 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y192sm18342573wmy.6.2017.07.04.07.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:15 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 362883E21FF; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HedIcq5dXQSyerl1kIPqUhsGec0lF93YS4nOILHPMZ0=; b=WSHTlku84oUAYI+OBNOPxFQA0H1+nNTLfvr51UQCUzmSTta6eyqVT35MbAmLsaEyLd FDVkR8gJaHa00BeC4zNLM1CRBPqkGpjMnlQdudIGaHEagEz/GvqmN7QAoFLRxdKKXWa5 PsXRiuSArwMybQ/hmP/dg8c0OHAKJsERbZC4Y= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=HedIcq5dXQSyerl1kIPqUhsGec0lF93YS4nOILHPMZ0=; b=J94ee47EbsuS7UJH7XdrfSwtaPNLYPFTcXcCf7+Qrerb3vIl1L4j2vvJyohTEccARz BT1FwKFJnpCWCN0iu8CbfrkxnMwCeDUoqHAiJBj8HzgFxT0qBBrh3xRqtg+Yk9VJ/qIF sR27/JUaoy0bGIe6uXMq+n468qdIU640D2p4Ab5qDF5ZCKSNHzaLkIBriQACHmMpW2t0 Hc6ajYT7hfumfhDvKi0ocaOQ/h9pIWRMGvMWK1fN6NPGIEPkyM4jvVDlpEBACxD0b8gW pS7U6NAh1X8vzD2Sh1lvCe18isjwOMH/47fo/SOMZdGwAqU2HIZ2WIm86e/yS/VI2tzJ /FMg== X-Gm-Message-State: AKS2vOwvEkdSYWrBfgTbQmqcVDbzhZLS8ZatGkmil56JZmjj8toZHXYe AdVMgLmeCRQuOJmY X-Received: by 10.28.153.81 with SMTP id b78mr17573829wme.85.1499179702265; Tue, 04 Jul 2017 07:48:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:58 +0100 Message-Id: <20170704144859.17644-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22d Subject: [Qemu-devel] [RISU PATCH 10/11] aarch64.risu: remove duplicate AdvSIMD scalar 2 reg misc block X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 While at that also: - sort alphabetically - add to @AdvSIMDScalar2RegMisc group Signed-off-by: Alex Benn=C3=A9e --- aarch64.risu | 114 ++++++++++++++++++++-----------------------------------= ---- 1 file changed, 39 insertions(+), 75 deletions(-) diff --git a/aarch64.risu b/aarch64.risu index 609021a..5450cd3 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -2171,85 +2171,49 @@ FACGT A64_V 01 1 11110 1 size:1 1 rm:5 11101 1= rn:5 rd:5 \ =20 @ =20 -# C3.6.12 AdvSIMD scalar 2reg misc -CMGTzero A64_V 01 0 11110 size:2 10000 01000 10 rn:5 rd:5 -CMGEzero A64_V 01 1 11110 size:2 10000 01000 10 rn:5 rd:5 -CMEQzero A64_V 01 0 11110 size:2 10000 01001 10 rn:5 rd:5 -CMLEzero A64_V 01 1 11110 size:2 10000 01001 10 rn:5 rd:5 -CMLTzero A64_V 01 0 11110 size:2 10000 01010 10 rn:5 rd:5 -ABS A64_V 01 0 11110 size:2 10000 01011 10 rn:5 rd:5 -NEG A64_V 01 1 11110 size:2 10000 01011 10 rn:5 rd:5 - -FCMGT_S2MISC A64_V 01 0 11110 size:2 10000 01100 10 rn:5 rd:5 -FCMEQ_S2MISC A64_V 01 0 11110 size:2 10000 01101 10 rn:5 rd:5 -FCMLT_S2MISC A64_V 01 0 11110 size:2 10000 01110 10 rn:5 rd:5 -FCMGE_S2MISC A64_V 01 1 11110 size:2 10000 01100 10 rn:5 rd:5 -FCMLE_S2MISC A64_V 01 1 11110 size:2 10000 01101 10 rn:5 rd:5 - -SCVTF_S2MISC A64_V 01 0 11110 0 sz 10000 11101 10 rn:5 rd:5 -UCVTF_S2MISC A64_V 01 1 11110 0 sz 10000 11101 10 rn:5 rd:5 - -FCVTNS_S2MISC A64_V 01 0 11110 0 sz 10000 11010 10 rn:5 rd:5 -FCVTMS_S2MISC A64_V 01 0 11110 0 sz 10000 11011 10 rn:5 rd:5 -FCVTAS_S2MISC A64_V 01 0 11110 0 sz 10000 11100 10 rn:5 rd:5 -FCVTPS_S2MISC A64_V 01 0 11110 1 sz 10000 11010 10 rn:5 rd:5 -FCVTZS_S2MISC A64_V 01 0 11110 1 sz 10000 11011 10 rn:5 rd:5 - -FCVTNU_S2MISC A64_V 01 1 11110 0 sz 10000 11010 10 rn:5 rd:5 -FCVTMU_S2MISC A64_V 01 1 11110 0 sz 10000 11011 10 rn:5 rd:5 -FCVTAU_S2MISC A64_V 01 1 11110 0 sz 10000 11100 10 rn:5 rd:5 -FCVTPU_S2MISC A64_V 01 1 11110 1 sz 10000 11010 10 rn:5 rd:5 -FCVTZU_S2MISC A64_V 01 1 11110 1 sz 10000 11011 10 rn:5 rd:5 - -FCVTXN_S2MISC A64_V 01 1 11110 0 sz 10000 10110 10 rn:5 rd:5 - -SUQADD_S2MISC A64_V 01 0 11110 size:2 10000 00011 10 rn:5 rd:5 -USQADD_S2MISC A64_V 01 1 11110 size:2 10000 00011 10 rn:5 rd:5 -SQABS_S2MISC A64_V 01 0 11110 size:2 10000 00111 10 rn:5 rd:5 -SQNEG_S2MISC A64_V 01 1 11110 size:2 10000 00111 10 rn:5 rd:5 - -# XXX lots of others in this group - # C3.6.12 AdvSIMD scalar two-reg misc # 31 30 29 28 27 26 25 24 23 22 21 20 16 12 11 10 9 5 4 0 # 0 1 U 1 1 1 1 0 size 1 0 0 0 0 [ opcode ] 1 0 [ Rn ] [ Rd ] # U size opcode -SUQADDs A64_V 01 0 11110 size:2 10000 00011 10 rn:5 rd:5=20 -SQABSs A64_V 01 0 11110 size:2 10000 00111 10 rn:5 rd:5=20 -CMGTzs A64_V 01 0 11110 size:2 10000 01000 10 rn:5 rd:5=20 -CMEQzs A64_V 01 0 11110 size:2 10000 01001 10 rn:5 rd:5=20 -CMLTzs A64_V 01 0 11110 size:2 10000 01010 10 rn:5 rd:5=20 -ABSs A64_V 01 0 11110 size:2 10000 01011 10 rn:5 rd:5=20 -SQXTN_SQXTN2s A64_V 01 0 11110 size:2 10000 10100 10 rn:5 rd:5=20 -FCVTNSvs A64_V 01 0 11110 0 size:1 10000 11010 10 rn:5 rd:5=20 -FCVTMSvs A64_V 01 0 11110 0 size:1 10000 11011 10 rn:5 rd:5=20 -FCVTASvs A64_V 01 0 11110 0 size:1 10000 11100 10 rn:5 rd:5=20 -SCVTFvis A64_V 01 0 11110 0 size:1 10000 11101 10 rn:5 rd:5=20 -FCMGTzs A64_V 01 0 11110 1 size:1 10000 01100 10 rn:5 rd:5=20 -FCMEQzs A64_V 01 0 11110 1 size:1 10000 01101 10 rn:5 rd:5=20 -FCMLTzs A64_V 01 0 11110 1 size:1 10000 01110 10 rn:5 rd:5=20 -FCVTPSvs A64_V 01 0 11110 1 size:1 10000 11010 10 rn:5 rd:5=20 -FCVTZSvis A64_V 01 0 11110 1 size:1 10000 11011 10 rn:5 rd:5=20 -FRECPEs A64_V 01 0 11110 1 size:1 10000 11101 10 rn:5 rd:5=20 -FRECPX A64_V 01 0 11110 1 size:1 10000 11111 10 rn:5 rd:5=20 -USQADDs A64_V 01 1 11110 size:2 10000 00011 10 rn:5 rd:5=20 -SQNEGs A64_V 01 1 11110 size:2 10000 00111 10 rn:5 rd:5=20 -CMGzs A64_V 01 1 11110 size:2 10000 01000 10 rn:5 rd:5=20 -CMLEzs A64_V 01 1 11110 size:2 10000 01001 10 rn:5 rd:5=20 -NEGvs A64_V 01 1 11110 size:2 10000 01011 10 rn:5 rd:5=20 -SQXTUN_SQXTUN2s A64_V 01 1 11110 size:2 10000 10010 10 rn:5 rd:5=20 -UQXTN_UQXTN2s A64_V 01 1 11110 size:2 10000 10100 10 rn:5 rd:5=20 -FCVTXN_FCVTXN2s A64_V 01 1 11110 0 size:1 10000 10110 10 rn:5 rd:5=20 -FCVTNUvs A64_V 01 1 11110 0 size:1 10000 11010 10 rn:5 rd:5=20 -FCVTMUvs A64_V 01 1 11110 0 size:1 10000 11011 10 rn:5 rd:5=20 -FCVTAUvs A64_V 01 1 11110 0 size:1 10000 11100 10 rn:5 rd:5=20 -UCVTFvis A64_V 01 1 11110 0 size:1 10000 11101 10 rn:5 rd:5=20 -FCMGEzs A64_V 01 1 11110 1 size:1 10000 01100 10 rn:5 rd:5=20 -FCMLEzs A64_V 01 1 11110 1 size:1 10000 01101 10 rn:5 rd:5=20 -FCVTPUvs A64_V 01 1 11110 1 size:1 10000 11010 10 rn:5 rd:5=20 -FCVTZUvis A64_V 01 1 11110 1 size:1 10000 11011 10 rn:5 rd:5=20 -FRSQRTEs A64_V 01 1 11110 1 size:1 10000 11101 10 rn:5 rd:5=20 -=20 +@AdvSIMDScalar2RegMisc + +ABSs A64_V 01 0 11110 size:2 10000 01011 10 rn:5 rd:5 +CMEQzs A64_V 01 0 11110 size:2 10000 01001 10 rn:5 rd:5 +CMGTzs A64_V 01 0 11110 size:2 10000 01000 10 rn:5 rd:5 +CMGzs A64_V 01 1 11110 size:2 10000 01000 10 rn:5 rd:5 +CMLEzs A64_V 01 1 11110 size:2 10000 01001 10 rn:5 rd:5 +CMLTzs A64_V 01 0 11110 size:2 10000 01010 10 rn:5 rd:5 +FCMEQzs A64_V 01 0 11110 1 size:1 10000 01101 10 rn:5 rd:5 +FCMGEzs A64_V 01 1 11110 1 size:1 10000 01100 10 rn:5 rd:5 +FCMGTzs A64_V 01 0 11110 1 size:1 10000 01100 10 rn:5 rd:5 +FCMLEzs A64_V 01 1 11110 1 size:1 10000 01101 10 rn:5 rd:5 +FCMLTzs A64_V 01 0 11110 1 size:1 10000 01110 10 rn:5 rd:5 +FCVTASvs A64_V 01 0 11110 0 size:1 10000 11100 10 rn:5 rd:5 +FCVTAUvs A64_V 01 1 11110 0 size:1 10000 11100 10 rn:5 rd:5 +FCVTMSvs A64_V 01 0 11110 0 size:1 10000 11011 10 rn:5 rd:5 +FCVTMUvs A64_V 01 1 11110 0 size:1 10000 11011 10 rn:5 rd:5 +FCVTNSvs A64_V 01 0 11110 0 size:1 10000 11010 10 rn:5 rd:5 +FCVTNUvs A64_V 01 1 11110 0 size:1 10000 11010 10 rn:5 rd:5 +FCVTPSvs A64_V 01 0 11110 1 size:1 10000 11010 10 rn:5 rd:5 +FCVTPUvs A64_V 01 1 11110 1 size:1 10000 11010 10 rn:5 rd:5 +FCVTXN_FCVTXN2s A64_V 01 1 11110 0 size:1 10000 10110 10 rn:5 rd:5 +FCVTZSvis A64_V 01 0 11110 1 size:1 10000 11011 10 rn:5 rd:5 +FCVTZUvis A64_V 01 1 11110 1 size:1 10000 11011 10 rn:5 rd:5 +FRECPEs A64_V 01 0 11110 1 size:1 10000 11101 10 rn:5 rd:5 +FRECPX A64_V 01 0 11110 1 size:1 10000 11111 10 rn:5 rd:5 +FRSQRTEs A64_V 01 1 11110 1 size:1 10000 11101 10 rn:5 rd:5 +NEGvs A64_V 01 1 11110 size:2 10000 01011 10 rn:5 rd:5 +SCVTFvis A64_V 01 0 11110 0 size:1 10000 11101 10 rn:5 rd:5 +SQABSs A64_V 01 0 11110 size:2 10000 00111 10 rn:5 rd:5 +SQNEGs A64_V 01 1 11110 size:2 10000 00111 10 rn:5 rd:5 +SQXTN_SQXTN2s A64_V 01 0 11110 size:2 10000 10100 10 rn:5 rd:5 +SQXTUN_SQXTUN2s A64_V 01 1 11110 size:2 10000 10010 10 rn:5 rd:5 +SUQADDs A64_V 01 0 11110 size:2 10000 00011 10 rn:5 rd:5 +UCVTFvis A64_V 01 1 11110 0 size:1 10000 11101 10 rn:5 rd:5 +UQXTN_UQXTN2s A64_V 01 1 11110 size:2 10000 10100 10 rn:5 rd:5 +USQADDs A64_V 01 1 11110 size:2 10000 00011 10 rn:5 rd:5 + +@ # C3.6.13 AdvSIMD scalar x indexed element # Complete coverage. =20 --=20 2.13.0 From nobody Fri May 3 05:17:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499180296368198.11167235215407; Tue, 4 Jul 2017 07:58:16 -0700 (PDT) Received: from localhost ([::1]:41817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPHK-0000kE-U1 for importer@patchew.org; Tue, 04 Jul 2017 10:58:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSPD6-00052p-RU for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSPD3-0004em-0E for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:53:52 -0400 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:34103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSPD2-0004eI-Mn for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:53:48 -0400 Received: by mail-wr0-x22e.google.com with SMTP id 77so250356011wrb.1 for ; Tue, 04 Jul 2017 07:53:48 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 13sm16204040wrl.57.2017.07.04.07.53.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:53:46 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 40F023E2201; Tue, 4 Jul 2017 15:49:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Xw1vcWhbLr05h9Koc4Bqo/GgakN277h/NJ+a1cmDMYA=; b=d87kt1aILp0Z+M2XXWhpUT9fLus02U3MvZltGK2H7Tw9NXP41jpyzwaWbS+Ub5Z3ul +/sA62vi8kdbnUqc5cBxIhhRyThI7aMhfTTiYhChwDn8OmU+tQVVefOkNlEuWTpdMt/D eMTaGq+3Qs65CIODYiFdoKDsAY9+ihK+eMLpg= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xw1vcWhbLr05h9Koc4Bqo/GgakN277h/NJ+a1cmDMYA=; b=uZqbjXyQeoCow98Eu6S48eoYs3JjDWW/YRvgjVdaoUQAsixT+/sGxkb+vB7A557Vdd W2vzRRWyFHhRi+sZ5Foap6Xz6gS8KPROi91aXQV/9h7c3/85MnhafubCTZTBhexhCEe8 fHSALq9ywctmSPNxzlZ4oQHwADoKSR4IF/e19m1IEvFMqTGU1dvStmPnF+Mc8s26O3y9 PIlyRSYFoCrObHzsqNhbSjQb2oWcLAD+ChF/iWl+PQIbXCokYHFwjhpNOQOBNDML3zNf 7754ajt4yG2px6zrCmL0oueeAAtSNKbyYQ5Q6opgs9zmsBb2fM5/ghCz41ZZh4F7C0P9 pURA== X-Gm-Message-State: AKS2vOyoyvdiQjcO1hl2X0u/7tvJlMHD/6222AlbkYkMxGDOL3uXWfxS oW9vHQzG6c053iOt X-Received: by 10.223.164.218 with SMTP id h26mr40361330wrb.100.1499180027357; Tue, 04 Jul 2017 07:53:47 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:59 +0100 Message-Id: <20170704144859.17644-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22e Subject: [Qemu-devel] [RISU PATCH 11/11] aarch64.risu: update AdvancedSIMD across lanes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 - sorted alphabetically - aligned the instructions patterns - adding half-precision F[MAX|MIN][NMV|V] - add @AdvSIMDAcrossVector group Signed-off-by: Alex Benn=C3=A9e --- aarch64.risu | 90 +++++++++++++++++++++++++++++++++-----------------------= ---- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/aarch64.risu b/aarch64.risu index 5450cd3..215882e 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -1955,50 +1955,58 @@ ZIP2 A64_V 0 Q:1 001110 size:2 0 rm:5 0 111 10 rn:5= rd:5 \ # ReservedValue: break the !($size =3D=3D 3 && $Q =3D=3D 0) constraint ZIP2_RES A64_V 0 0 001110 11 0 rm:5 0 111 10 rn:5 rd:5 =20 -# C3.6.4 AdvSIMD across lanes +# C4-286 AdvSIMD across vector lanes # 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 12 11 10 9 5 4 0 # 0 Q U 0 1 1 1 0 size 1 1 0 0 0 opcode 1 0 Rn Rd +@AdvSIMDAcrossVector + +ADDV A64_V 0 Q:1 0 01110 s:2 11000 11011 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +ADDV_RES A64_V 0 0 0 01110 10 11000 11011 10 rn:5 rd:5 + +FMAXNMV A64_V 0 1 1 01110 00 11000 01100 10 rn:5 rd:5 +FMAXV A64_V 0 1 1 01110 00 11000 01111 10 rn:5 rd:5 +FMINNMV A64_V 0 1 1 01110 10 11000 01100 10 rn:5 rd:5 +FMINV A64_V 0 1 1 01110 10 11000 01111 10 rn:5 rd:5 + +# ARMv8.2 Half-precision variants +FMAXNMV_FP16 A64_V 0 q:1 0 01110 00 11000 01100 10 rn:5 rd:5 +FMAXV_FP16 A64_V 0 q:1 0 01110 00 11000 01111 10 rn:5 rd:5 +FMINNMV_FP16 A64_V 0 q:1 0 01110 10 11000 01100 10 rn:5 rd:5 +FMINV_FP16 A64_V 0 q:1 0 01110 10 11000 01111 10 rn:5 rd:5 + +SADDLV A64_V 0 Q:1 0 01110 s:2 11000 00011 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +SADDLV_RES A64_V 0 0 0 01110 10 11000 00011 10 rn:5 rd:5 + +SMAXV A64_V 0 Q:1 0 01110 s:2 11000 01010 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +SMAXV_RES A64_V 0 0 0 01110 10 11000 01010 10 rn:5 rd:5 + +SMINV A64_V 0 Q:1 0 01110 s:2 11000 11010 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +SMINV_RES A64_V 0 0 0 01110 10 11000 11010 10 rn:5 rd:5 + +UADDLV A64_V 0 Q:1 1 01110 s:2 11000 00011 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +UADDLV_RES A64_V 0 0 1 01110 10 11000 00011 10 rn:5 rd:5 + +UMAXV A64_V 0 Q:1 1 01110 s:2 11000 01010 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +UMAXV_RES A64_V 0 0 1 01110 10 11000 01010 10 rn:5 rd:5 + +UMINV A64_V 0 Q:1 1 01110 s:2 11000 11010 10 rn:5 rd:5 \ +!constraints { $s < 2 || ($s =3D=3D 2 && $Q =3D=3D 1); } +# ReservedValue: break the constraint (s=3D=3D2) =3D> (Q=3D1) +UMINV_RES A64_V 0 0 1 01110 10 11000 11010 10 rn:5 rd:5 =20 -SADDLV A64_V 0 Q:1 0 01110 size:2 11000 00011 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -SADDLV_RES A64_V 0 0 0 01110 10 11000 00011 10 rn:5 rd:5 - -SMAXV A64_V 0 Q:1 0 01110 size:2 11000 01010 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -SMAXV_RES A64_V 0 0 0 01110 10 11000 01010 10 rn:5 rd:5 - -SMINV A64_V 0 Q:1 0 01110 size:2 11000 11010 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -SMINV_RES A64_V 0 0 0 01110 10 11000 11010 10 rn:5 rd:5 - -ADDV A64_V 0 Q:1 0 01110 size:2 11000 11011 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -ADDV_RES A64_V 0 0 0 01110 10 11000 11011 10 rn:5 rd:5 - -UADDLV A64_V 0 Q:1 1 01110 size:2 11000 00011 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -UADDLV_RES A64_V 0 0 1 01110 10 11000 00011 10 rn:5 rd:5 - -UMAXV A64_V 0 Q:1 1 01110 size:2 11000 01010 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -UMAXV_RES A64_V 0 0 1 01110 10 11000 01010 10 rn:5 rd:5 - -UMINV A64_V 0 Q:1 1 01110 size:2 11000 11010 10 rn:5 rd:5 \ -!constraints { $size < 2 || ($size =3D=3D 2 && $Q =3D=3D 1); } -# ReservedValue: break the constraint (size=3D=3D2) =3D> (Q=3D1) -UMINV_RES A64_V 0 0 1 01110 10 11000 11010 10 rn:5 rd:5 - -FMAXNMV A64_V 0 1 1 01110 00 11000 01100 10 rn:5 rd:5 -FMAXV A64_V 0 1 1 01110 00 11000 01111 10 rn:5 rd:5 - -FMINNMV A64_V 0 1 1 01110 10 11000 01100 10 rn:5 rd:5 -FMINV A64_V 0 1 1 01110 10 11000 01111 10 rn:5 rd:5 +@ =20 # C3.6.5 AdvSIMD copy # 31 30 29 28 27 26 25 24 23 22 21 20 16 15 14 11 10 9 5 4 0 --=20 2.13.0