From nobody Mon Nov 23 04:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372056; cv=none; d=zohomail.com; s=zohoarc; b=F9UuVOAJk7W2b4XMfsq/n8TSEXZoHvO2JzRKCskkzjIsJ9kTZ8YcZv+lwdn28n4T3N1S3PFbFXNpaGQcbfE4O8a1MUjvYvnRIC5f955RuZc45qW1S4s7nHGMpfDzPDdONau6OXutAGyu9mVgVThj8LIx/CkEEJgz8YCrRySZjFU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372056; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FMtFXvRNPPwWLfiDy1Q+9Ojxi62I3+8V0lltGcoU3+c=; b=IvKjH2fmEsCpgp28chvhF6zUvraOPyBrlIlsMjQmPDDAYZ90r4m2ARG1ihdxWy/DMRa7hkKNVcGTyjDSlw3QcTxhhxRwdo+nj9tBsLAJIJxl6ix7m6dCoqXUtOYnXKdJoeoLT5U+sptnf6CE0TnwQVVs3fxQdG12qGTqsIzW01s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793372056590870.4736200685644; Fri, 30 Oct 2026 07:54:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMnze-0003WK-T5; Fri, 30 Oct 2026 10:54:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMny8-00025A-PQ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:44 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMny5-00068q-SC for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:36 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERFfp378155 for ; Fri, 30 Oct 2026 14:52:30 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme753k23-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 14:52:30 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93ecdc701a2so92964285a.3 for ; Fri, 30 Oct 2026 07:52:30 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4abf6c76507sm68571805e9.10.2026.10.30.07.52.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 07:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= FMtFXvRNPPwWLfiDy1Q+9Ojxi62I3+8V0lltGcoU3+c=; b=akPk+sryWHssku/a bHBDHC/ilIH3+0+2P4cVNq7+A8uLJwZr2bGyYc2Phqcs3FEES996jbmgyABay9W7 A99AFfjEelO3Hp+cAFS+wMYGSSWTiK1SupjWytwlcpkmpqwX1INhV3IqBy4qZFU4 yFxg/6xJtn3GOLi+TBKxjzwC0Qgg+ytq+CB0DD4Oah/UwjqC8mYYzcxQ1J9GBfUG +69K1wKKyYFV52OvUC+wrO3ws/od05vEF/Qa7TsWEuv9RPgg84LNpFu/idecAC3D GO259IBtDcvJG2x8tIKaWdTvx+AVs6e9fDQU1RzAhPn+3QCxdaHvKuKUik/b2/Fp A8AEWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793371950; x=1793976750; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=FMtFXvRNPPwWLfiDy1Q+9Ojxi62I3+8V0lltGcoU3+c=; b=RU10liLyfYNq61YWl2TW2mV29yDu2YXfg+C2wR/ybnnjqAVwxlOmu9bqLfJ9ium7b1 LX66XIC9MLQIgL4olosuzcUbQbnObUiGKoW/mzkgnQi58Ix+xD3RV9PwB1OhRA1gLsyq o8i0tK5WRWZ+xIeNaIzJkcuded7+c6UMY+4uReI/Ckum3Kq9ccmlPa7jTc4RQNdyg6kX j/JWf5vari6lA83n1fuMLdaetsSvVuf8uuS5+5OyPL1XbWoERFWMUPreCYJPIrjhKD6I 0IhmQePkq7scxjKXjWyqmKFoYC/akoQCRabLlp0KT3Yk8gYtVPFUbPIJlRnuB+kgN+XW R5kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793371950; x=1793976750; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FMtFXvRNPPwWLfiDy1Q+9Ojxi62I3+8V0lltGcoU3+c=; b=OzLkoUI7WZ3WNKdZkTadBv4WS43MJ1jRueUkL5wA+K1ipZqyzLMzDziEypezRN8BKU l6BMZVPvE5CxhXDf1Cg7dTXOHxpBbTdj1UEvl+eA5wM0LHQokSggmJJXcnTKsSZ4Rpum Tv18UtAo5Um8DSaEc46cw0cZk2SdOp941n63D7tanuJxaeueoXRLVY5xQv5Zc8fG01ic bOnoFLb70yThWNAPEdfCPsvQaEeFc99OLGM6AtqvhLRJ8M9iHj74iwcsnxLXBFWy3m0n 4Cwmup45/P/7MZASZXm0akfcBEBXioAg1D6xT4kq0h/fis4nabWpcbY+nOM/nphktggi MS3A== X-Gm-Message-State: AFq9FYKlTB2mJhebLQtrzHLD7zPkAWQQtx4yzJQRb5d5Vi98+PoAECUf jSxiajeUX1YgfGlrer/fp1sOx4LfZgus7nQ2sTN9BqaZUmcD59BZyUldJFiwaJvBVJ3aXwi/EAe oGmdK6MqD7D2NiyjQZTkMq9ongzTCFnXEWLQfX+Ph0VdtWjcowSrW6RSv6eamIIxxqeMo X-Gm-Gg: AYBFou3Y/H8CSI8Mnm4hmhZOMF6MkaYK4c0X0nuniyeIy+qdxbfCkjeBHM8FNafrHEb svROA838gG565Cge2ahGIwRxhvimG46OgAysFRSaAFlDUjpWgxpze92lc48ADhKSVMK2wWGlB2D rS3vRG9O+2N5QUOsduBx9bnjONNRMPGolAMyMxyltQnNeTEbzvVBUKjtm+7O5CP5Vc0EeOZ3pMr A8AssoF7d3uMynp58qwIVohYOXwZ/dn0oMe9lufTDmjOGEaKJT4/NB1+WvsVDM0pQ7CBK6GsR76 WNYiKblBS5OXpb+ZvsgtVMdq3JyMh9K7t+L2SsAb51Vd+tBfApYNalub6Xo50eFyAhcqJiqdb/i maVoa14La7rIui8j5Pqg6UyOUCIFGPFHfSjXsFwiR2AmUjGn/l3jYdhSnubPnW6JYwkbsVq3R0n A5oB5MlgUL14sqi1aTMlPcGhw1C3QYtw== X-Received: by 2002:a05:620a:84c4:b0:93f:167e:d98d with SMTP id af79cd13be357-944217108camr411299185a.43.1793371949315; Fri, 30 Oct 2026 07:52:29 -0700 (PDT) X-Received: by 2002:a05:620a:84c4:b0:93f:167e:d98d with SMTP id af79cd13be357-944217108camr411295285a.43.1793371948786; Fri, 30 Oct 2026 07:52:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v2 1/4] tests/tcg: Add minimal TAP helper header Date: Fri, 30 Oct 2026 15:52:15 +0100 Message-ID: <20261030145218.58385-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030145218.58385-1-philmd@oss.qualcomm.com> References: <20261030145218.58385-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: spQ5TH3apFMrtmP_XBwfGtZRbMz1foeW X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX3autGOMWExfF LxzdPps0d+4ekfxC6mDA65RHy8epSLxaSdGzvKsWbo9ewauALa50YRYCwc6Qf1aOIRPfszZyGYN G3CXcz9aAyeYf8xmYyJQKFp6/vhb9LcEDO8338NzABuGtmMdCkqc4LKNCIOdtu4RhIPQwarVtNE 9MVB1h4PkK2uYc5m5k1mTn7Hg47FKTxqkWeWlpNe/jOG/rleH6BnZph12iUykU4K0MfOGu+9kkE bOHW4gkb3yvuEHNuF9zZHD6e+F0NVLkIELJHUeJiHXOfcqchbupIr0kHoj6lB6cgtpG4lvO2Lnr BaWKnRwpj+6Ntle6taD89uPZhKP3ZxBGi07wPHsxno4yxm7OSRtMSUYtxWOi3llhYiNwEqLXxp8 FyeGPljc8kyCkLs8/kKEuMz28env13PQNlSCHPIwFVrygOwK14xyNF9xPD0rCcZ2guzTCv/wS5/ vmV3nAfQZWgUSNDs9rw== X-Proofpoint-ORIG-GUID: spQ5TH3apFMrtmP_XBwfGtZRbMz1foeW X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXzaXG19HqaRdy qlKvIBEZi3Mtih6vZSDAA4Ia1bvPEm2HT1QcdnRgKEaP9Dzzsjl7DexCeov0TNt6chF+D3x7aCh 3BEbQRVgRtge/N1CGkjjjMZucVSNfdY= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4af2e cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=xHHqPXp51XzIvhAaDsQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372057711158500 Add a small header to report test results using the Test Anything Protocol, which meson parses when the test declares the 'tap' protocol: - TAP_START() prints the TAP version line. - tap_report() prints one numbered "ok" / "not ok" line, with a printf-style description. - TAP_CHECK() reports a condition, using its text as description. - tap_assert() is a non-fatal assert: it prints a '# FAIL' TAP diagnostic and counts the failure in tap_assert_failures, for tests grouping several asserts into a single reported result. - tap_done() prints the plan and returns the exit status for main(). The counters are static, so each test must be a single translation unit. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- MAINTAINERS | 1 + tests/tcg/include/tap.h | 60 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 tests/tcg/include/tap.h diff --git a/MAINTAINERS b/MAINTAINERS index 8884e4177e4f..761b2f5d4dc6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4699,6 +4699,7 @@ Guest Test Compilation Support M: Alex Benn=C3=A9e M: Pierrick Bouvier S: Maintained +F: tests/tcg/include/tap.h F: tests/tcg/meson.build =20 GitLab custom runners (HW sponsored by Linaro, OSUOSL and IBM) diff --git a/tests/tcg/include/tap.h b/tests/tcg/include/tap.h new file mode 100644 index 000000000000..ce7e990bed4b --- /dev/null +++ b/tests/tcg/include/tap.h @@ -0,0 +1,60 @@ +/* + * Minimal TAP (Test Anything Protocol) helpers for TCG tests. + * + * Select the protocol with 'protocol': 'tap' in the meson setup entry. + * Each test is a single translation unit: the counters are file-local. + * + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ +#ifndef TESTS_TCG_TAP_H +#define TESTS_TCG_TAP_H + +#include +#include + +static unsigned tap_tests, tap_failures; +static unsigned tap_assert_failures __attribute__((unused)); + +#define TAP_START() printf("TAP version 14\n") + +/* Report one result; the description is a printf-style format. */ +static inline __attribute__((format(printf, 2, 3))) +void tap_report(int ok, const char *fmt, ...) +{ + va_list ap; + + printf("%s %u - ", ok ? "ok" : "not ok", ++tap_tests); + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); + printf("\n"); + tap_failures +=3D !ok; +} + +/* Note: the stringified condition must not contain '#'. */ +#define TAP_CHECK(cond) tap_report(!!(cond), "%s", #cond) + +/* + * Check a condition without aborting: print a TAP diagnostic ('# ' line) + * and count the failure, to be consumed by the test reporting its result + * (see tap_assert_failures). + */ +#define tap_assert(cond) \ + do { \ + if (!(cond)) { \ + printf("# FAIL %s:%d: %s\n", __FILE__, __LINE__, #cond); \ + tap_assert_failures++; \ + } \ + } while (0) + +/* Print the plan and return the exit status for main(). */ +static inline int tap_done(void) +{ + printf("1..%u\n", tap_tests); + + return tap_failures ? 1 : 0; +} + +#endif --=20 2.55.0 From nobody Mon Nov 23 04:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372035; cv=none; d=zohomail.com; s=zohoarc; b=kYN1iIxYBt8lgC0NrKe+xnGP5R/6yT6/bdAy5xcZUEPz59vZkwzd0BHs/MfpL3JhdLv8h93UecFTO9+GvJQzZbr6ngGdQBqMs97075TukZJgOc3/cwOyDTZ0uFQ8wOJAmdYHtPfvJsFVWX0/xwh70Qnq9J/B4MWmuIT1tFDOi9g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372035; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kSctmo2X4RKZ4rSu1Ym24oiJOhiT3qAZ0tJtWfs5UrQ=; b=niq/UJexi9muaJb+/tFW03Mw8RKVt2gXZVBl2Uv2nF0vU90tIohisMAqQV3JM4CEdZ+Yv3jtLQ3vt9TEEopc6UGGNq970h41J3yHZ15oCGdmog1CdBqVF+fQsv9qxgLZpl/jtGPb1HZPgMsjTRr66TeFrKY35kr/nHAA1EAv+K8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793372035779507.95463246710733; Fri, 30 Oct 2026 07:53:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMnzB-0002t0-EZ; Fri, 30 Oct 2026 10:53:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnyD-0002Av-Sb for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:44 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnyB-000698-Po for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:41 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERKEv4141733 for ; Fri, 30 Oct 2026 14:52:38 GMT Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6quj0f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 14:52:38 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-5eac1e41c2aso239516e0c.0 for ; Fri, 30 Oct 2026 07:52:38 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71b789ecsm3588522f8f.29.2026.10.30.07.52.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 07:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kSctmo2X4RKZ4rSu1Ym24oiJOhiT3qAZ0tJtWfs5UrQ=; b=pjIVfGz7B03zG3Kl r475QDIGrC/1UiSKfEr1XU4ZRs/LUKOTcVgx5nVAiihTQGdhKWbszhAm/zPR+dmu pTEgTfiMadS3QIVqAbJRR4wcAWFYblFfDLHSPYgMmQe9/Hb4dqe9E5BbEAglBSww 5l1tv4Mg0a2cEfUNmAiJZmfgrc49z0aNUqW210qDwv4iNBb9SWhDMFtvy0eFP2h7 W73onhG59q7gSTWInyS6eeQzCa+Y138Gy4lKNAfHyiIrYP1e2PC/AhG4gGV3qpaI w4L8xzyLCVXFcvRVLja1o7si45jUjGQUqTnuCU0NvhkGJfEHa6XfYkcofomgue09 v0M+vw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793371958; x=1793976758; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=kSctmo2X4RKZ4rSu1Ym24oiJOhiT3qAZ0tJtWfs5UrQ=; b=QEbhU6+rl4pX2CZu/c+8YAbzNJonmuxnJzzWF7QN3xoyXlOh+r0FeVXvYwbAB9Tx2F qkcf+0IsLuv9MdgqqcDywDXA5oqiJpXtwv9ezrCvxX1Z11aTdrs1k0ZZUAB7nxMMocMV u2zvts8WfBO1WTlehonIU8hatAPtlKfMlEkEWwz99hXiB+uSVTPOfXkpKj+z4z1JJEF1 JlrvIRNrZjHZltUfym5q5x6ZTP64GJj0h+fFiCMW1Fpg6e941JHWnR8Z2sj2KlY/+Jce ReQuZF2b6rObpe83g/UJrA+Z7v5HDtP8expHEuqusi/5VBpysmuV3NUOH9wHjGWwbVU7 7kHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793371958; x=1793976758; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kSctmo2X4RKZ4rSu1Ym24oiJOhiT3qAZ0tJtWfs5UrQ=; b=tn6Q986zw14hQc4FTshYG0pa5Fl3sDNkPVwkTD3PaTLOobi1ybQ59lM5UymqvM79wc PU7g+iXyIFc9dpUyHpBX3Y0c+gHQwFOd72bdNiHuXjVRQ04gTgScSD1m/4Er3vHc/BCK Z8GmK2uJt3o2BQn9PpB/wVbEUheBYU6iNRlyLWjnHfxB+yJNaWHnXl5PbIenZp4Uc/Jj YCCwhK+SKmXujZxccm/QGiG9xZFrvNrua/OmJWSCd+WloOmjHOiEsbdUrWXm8YiaexUR 8b8BFWOzIsU6SjmsvP3j7qCssP8mXm6KAQZVLdWCn9DtNqpGwR/jeyw1thC0QLO2aLco RReA== X-Gm-Message-State: AFq9FYLhO1wiKv2pBokL6l2C3V6sTgrptjuQeEDFX5/TUddriFeHaKfv pBpFaQHUgnkzWpKz2NG0hKNcl5imKla8tkcJExDhmO+pg4irQPDVxaVASE+Ns2wVF91vFrnRqFq 87B7gr/JbD0O8EoLIDIeI3Jv0ogw+F8iMRUxuiGj7fC/Nz7b0EOffWrqqrDdzVoiH44Q6 X-Gm-Gg: AYBFou3fGdOHwS7Zkq7nZozoNe5TkJ195POfhEqo22EmDJTo8nXdz4r8BwiHJHJeqv+ 7Q4X2bGM9caLy9uLkFVUzYzLGp/kdoIEg5wYrhxTkwuuAHevyt8b/+1Y9cEuEsfb422hDbjXHJ6 9ESAeBLpNUzKHe00//4nJPO9aX5fFIkEuqFQS5tFUnBjkwEEjytVTfK/QRiacR8quBCl71G8GeS 2BbX1bmwAE3Il6TliTUyDfz9Hg4pmhLAwg7Fbb/b8XcM22L6TyJ9C9iqzzfm4YE69zMUCNd2BSP FARPSgYoL/Y1fER3bRZ76A+zTFgZbltvNh7vjILpAkgwfWF9ULq6PUsegu9GQKiYHr7OeAHcdZE P6kjzdMueA8V36rZePRgZldXA/GcFbw5LcYqPNoLhdslRlTh9mA+QQE2rvnXMmxLgQ+RW+Myw8y JBNGBbgFSQkJyE1DG1WQ38gE4bO17Bow== X-Received: by 2002:a05:6102:440b:b0:7cc:2b48:cb1b with SMTP id ada2fe7eead31-7d07271c804mr1260275137.35.1793371957794; Fri, 30 Oct 2026 07:52:37 -0700 (PDT) X-Received: by 2002:a05:6102:440b:b0:7cc:2b48:cb1b with SMTP id ada2fe7eead31-7d07271c804mr1260236137.35.1793371956467; Fri, 30 Oct 2026 07:52:36 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v2 2/4] tests/tcg: Allow tests to report results with TAP Date: Fri, 30 Oct 2026 15:52:16 +0100 Message-ID: <20261030145218.58385-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030145218.58385-1-philmd@oss.qualcomm.com> References: <20261030145218.58385-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 6o_CqVVVquYQdB_LudGJX6GqKD7mTmd0 X-Proofpoint-ORIG-GUID: 6o_CqVVVquYQdB_LudGJX6GqKD7mTmd0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX5iz99XZ3HiHX e+IiCWpzQGNB8chzHlkmT8WHi82stzsrKekYNlWqCEix9kyxGwlRf7qsdhyLZSaCP3/87CiLdT/ V4v5TijABsd0epEZA3kE4hzfg8MP/DskVxtIhxHrdWwg1PVFReGIDjfc22c1SBK2ugnvW9qUgOy GTjo4qPUFsfdeTQLwlaceAdx70Sy9lpDjO2gTb5llFlIxyKE74MOjgwEjInpGzB2PY68Oqa+zbl hd9YV5yiKZk6Oyer38CoXTnPlnjHKLd1hBxYNCxebd0ONh1M46lcQu1xCB4P3nhIPUFUONH1sZM rBCoJ9jpvHe9dfNk+zc+/Kmal/ANt1av+eGeYdMeovJj29fTpLkOM6uHaF5dMOXcqxDxch8O9qw /sIUsAjLIye9krLQEmFA8F8QMQ88RIJ+WKUtkI7A6tAqbSS7OPw0AB+BtqYyUaOhzIYzCDnvTQZ wLXfjMF1Z9cSGVSWonw== X-Authority-Analysis: v=2.4 cv=dPgzC+Zb c=1 sm=1 tr=0 ts=6ae4af36 cx=c_pps a=JIY1xp/sjQ9K5JH4t62bdg==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=T39o4DHrYQchOh_bDjYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=tNoRWFLymzeba-QzToBc:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXyOPZYV6Mz3fH eVKRTwmEFg56yrA4BcJYQhz07PQRVrmGvEU9JO7NGGI/MsrghpMN2usMZVk5v2fHkB4NEYUtkkd B7Aj9Wqnh/vzMdO5ujofb1Wuo0UBpHE= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 spamscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372037181154100 Add an optional 'protocol' setup entry, passed to meson's test(). The default stays 'exitcode'; skipped tests (exit 77) are forced back to it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Pierrick Bouvier --- tests/tcg/meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build index 06f013fbe3d8..b61ddf805148 100644 --- a/tests/tcg/meson.build +++ b/tests/tcg/meson.build @@ -42,6 +42,7 @@ tcg_tests =3D {} # 'gdb_test': ['gdb test args'], # 'gdb_feat': ['feature name, must be present in gdb_feat_versio= n'], # 'env_var': ['VAR=3Dvalue', ...], +# 'protocol': 'meson test protocol, default is exitcode', # 'wrapper': [program_to_launch_test, 'args'...], # 'plugin_test': { # 'plugin': 'plugin_name', @@ -323,8 +324,8 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a setup entry foreach key, _ : setup allowed =3D ['exe_name', 'env_var', 'expected_output', 'cc_feat', = 'cflags', - 'depends', 'gdb_feat', 'gdb_test', 'plugin_test', 'qemu= _args', - 'test_name', 'wrapper'] + 'depends', 'gdb_feat', 'gdb_test', 'plugin_test', 'prot= ocol', + 'qemu_args', 'test_name', 'wrapper'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])') @@ -520,8 +521,11 @@ foreach target, plan: tcg_tests endif =20 if skip_test !=3D '' + test_protocol =3D 'exitcode' # still declare test, but skip it and print reason cmd =3D ['sh', '-c', 'echo "' + skip_test + '" && exit 77'] + else + test_protocol =3D 'protocol' in setup ? setup['protocol'] : 'exitc= ode' endif =20 # Do not add a skipped test when compiler is missing, @@ -530,6 +534,7 @@ foreach target, plan: tcg_tests test(test_name, env, args: cmd, depends: test_depends, timeout: 120, + protocol: test_protocol, suite: ['tcg', 'tcg-' + target]) endif added_tests +=3D {test_name: true} --=20 2.55.0 From nobody Mon Nov 23 04:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372057; cv=none; d=zohomail.com; s=zohoarc; b=bNzeeSK3r34T05DCALEsHeDp/7c9bvn98i4PsspnvR1tO/m8ppgiVz4tw3Sd4nkx7d1drYQhZ6HObVqt83iUQ/sSz2+2/SZYrWb69JMZS9lbKreNhP+x7kAH718kKrG8kuCkgvrpraiCZT7s77QSHCvrP/RtxmDvE36Vu+9WP0Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372057; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kQsZw3MgRbxdJL1gUCwKaWrwHxBpWWaPpyM/yFj0LFM=; b=gjXYXGE2GxXjrE2J0yDIlQeVCs/yqCbYDUTsYd8fkjUWrt9vN0frhy5aaauIxkOv7uj1eIg3nCJOYY9+No+4Lf6tVb+A6oz/jf+x8mlxIbyn7IFkXXLWNH8CquUm+/NQarf7UIHLevuCIRc7E8Ej/KM5dKON198HjwNx3hnN658= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793372057815673.192745729461; Fri, 30 Oct 2026 07:54:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMnzh-0003u3-PR; Fri, 30 Oct 2026 10:54:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnyN-0002D8-3G for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:53 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnyJ-00069a-8G for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:52:50 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UER12B2595780 for ; Fri, 30 Oct 2026 14:52:45 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pbkpj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 14:52:45 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93f322ef7d3so130051685a.0 for ; Fri, 30 Oct 2026 07:52:45 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4abf67aab10sm63970845e9.9.2026.10.30.07.52.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 07:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kQsZw3MgRbxdJL1gUCwKaWrwHxBpWWaPpyM/yFj0LFM=; b=eBeWhZtfnHFmsIzy +25mAcC/89skt/O2IaOVImmfRdv9s4aJq3uWpDldCyrnQmZEujm9xyoMqVl9a6P3 4Ji+jzaAU9LLZhYlCn2upMYCncIGyhoKcLHKXRxkrfc4p/laQYcEh+L+lKzDwQXB WxC9zS9HyTe8bWIXnDX9hde2Ig4yYqHlT2NOBp4LH5TSxLQiWWWUxaTND8CrVXMD XyF4MihiASYtZg8ltf6eSC0ogCj94rlQDIKE4vwzEkpmXP6pFRnu0OYE05GWbNpy EnuYmhSwnNWov+9qvOLetModkisU3zpV0hO9lIUxhyH8BH0atA3PvrHIW4WFozGa /w8f/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793371964; x=1793976764; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=kQsZw3MgRbxdJL1gUCwKaWrwHxBpWWaPpyM/yFj0LFM=; b=VQSUAT5XYnMGaD9HtI+g8Ynp0K0KJVuHzp21FQD4XS30FGEttS2ifHkfYPLXPOK+om s43C7DUMUGnHv5Hy1SZVoXheGKdHk2YpIVFpjgwWnR+mhCnuArLiE0LvwKCEeU5BcaF/ u61Zh67uq8FQC4LCeuJx7fHR5oR/s8j5rq/m2mPlnPnKh5EKrlWBx4me/cU3pn2+8hoO iIYviKzOpdrsxHJVY9sVqITnzw4R1JxQ0s39c8OHWWb4WoKIv0U5nrvQnJABkY/JTijv yZE5CTSMMZ91Dz7kUa5Gq+TXpq4EdkOrg9oSiSzc73+nIp2oBdFAcy7giPjVANV3LEV1 4HKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793371964; x=1793976764; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kQsZw3MgRbxdJL1gUCwKaWrwHxBpWWaPpyM/yFj0LFM=; b=YxqmCKPAirjIlLKiWHMbixl1+L7X80DHhb5b1/WzgMqjfRucaCu8EPz+SR3KEFMJ/z 01rUls3Xdh+c/oETDrfw6aYWhxaydxfL47TLcyWd8Khk9aC7Wm9Hp7xXZ8J9I3LsQ+vO 53SOtavk9l9clLUQFlNHgXBlYGLwyS59rf4V9BlFulxnzR5EkBZfK5qBLxCnRndyrUHC 2sZ1Y7hk7ea6t4QkOObl8zdLXhV/ZVzymY7hrKvBE6OyKnyie+NBC/f98osK6eWB3BQp 2ff+yH4+9rtF8ypVlUJgNTjvNutFUT/Mo1yr4YMEoQrvW4MCJhP0eCkZy0UaJBqrQi/g nOjA== X-Gm-Message-State: AFq9FYLprqbhTRl8z7UzeHG18vpAiP/PVOHiYtdnTezXAnDwaWn8hrFb QAGRpB4g7/NZaUBD0aZxptf4KCNLnbqRja91eeWXMKI9g7lcnSaAGpBvbJFGOLe6OhjRCFIDe/Y 6MZwGkuaZVQ5eSkYuHP1SYbVfYL4rou8Zj52FoXzVGHb+fiQU36Vh7yFdw7Y3UPKSBfb5 X-Gm-Gg: AYBFou0Ca4Y4jrb/9LfZOu/YJlNfUxztcP0LD12zcbC8pWEf7YDe+mRLEeQ693pip3k vdzJSmwhMKWouz+LJHSMWoiTH5kLPWUsi7/LcRk+aO1t9P1lNejVz0iL6MwLXUMpAK1tYGl2j+8 GB5EbOfKCqEbPPtzNETbzwBnlIBWQlLXBZmMVRIG3GO7J3AxwH0LwC3p2E7mRp32PJkeMs+2ygz 4OBlkuDQogfBMyJU9b1bRhzUmPLmO+tavsew8d2/jekFIOuxZXuLOo40t7ynJ36mrN2MCVFveCs it/RcGynpfXVlhFFGm9OXIUVVXeu1Qd8FNnEzV7w5QDqBD99sxK3ufdcZAVGMJXllHVLdsOOghK HpNk+Xfv9KSVmKR/s3axmD8M7czIjgqYXIDPNPKPxRR1y2cSP9/JrgzAveQZIFCdqwIOQWG89Sa 9BOGLcsfJCd8qGPLh5x++OWbzQW6hgjA== X-Received: by 2002:a05:620a:19a3:b0:93f:33a8:8e84 with SMTP id af79cd13be357-944217a46ffmr420921185a.56.1793371964255; Fri, 30 Oct 2026 07:52:44 -0700 (PDT) X-Received: by 2002:a05:620a:19a3:b0:93f:33a8:8e84 with SMTP id af79cd13be357-944217a46ffmr420916185a.56.1793371963591; Fri, 30 Oct 2026 07:52:43 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo Subject: [PATCH v2 3/4] tests/tcg/mips64: Report Octeon test results with TAP Date: Fri, 30 Oct 2026 15:52:17 +0100 Message-ID: <20261030145218.58385-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030145218.58385-1-philmd@oss.qualcomm.com> References: <20261030145218.58385-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX460rI273XW75 YUOHnEPjKKPU2uGFORPT0sJDioytldXEsBPpvbppLHxJ9Pfo2pyp4Ag0Ma90e/elAWWm5CXoHbj /Y2+zvCPO5Dx0Gp5NbznWNbZ9U2wVYxz1ZJP5y6mL+XIt5AdSHZDGZmDPT8PYTuoZinYnd8YvlL 0uAd9CiYh5oXboVmvGAd1aHCs+P6bMVYkDdNSu6X3iCXaROreDI8M6j2PO4Idn0ehQBkprsEGk9 AFdHxd7vuBxunFQKmMLniMGMs4B30ukSxOxn40s/kVUuLEZPIdqVs64IuZ6Y7bQS7tZ9jDXOLk7 1hcf5VuTFb4Ohuhp7STKhdDYdDkcbZNT6ySJ1VAegwLtx87bLq5Aa5UYVPb6vtxvW/ABa9rwmHb dFM3qBjbldjZXviND8QbQMNv4pzQJ+WDFm4ZH+BpG0ZRli3maoCa5pKPG3yoxkrl9cBykBKeGC5 XP8BTqNFha+Zr5pe5OA== X-Proofpoint-GUID: DlYuLSG8q7owHDhulR2Q3dlkhQGM2NO9 X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4af3d cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=24OdzgigavIs_6l_i50A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-ORIG-GUID: DlYuLSG8q7owHDhulR2Q3dlkhQGM2NO9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX4H56eTWJZwRc H8C0saKncqb4gM+RA/vEhmNBiq2vFaJKTj+ZwOQV+jqv5pFkwKpoxhq9RyxZ88x2yBi+IHICFCS Ux/fb9pgQnprF8Wkt9Rsmi32LSlV/jA= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372059423158500 Replace assert() by a TAP_CHECK() macro printing one TAP line per check, so a failure no longer aborts the remaining ones. Select the TAP protocol in the meson setup. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/octeon-insns.c | 65 +++++++++++++++++---------------- tests/tcg/mips64/meson.build | 1 + 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/tests/tcg/mips64/octeon-insns.c b/tests/tcg/mips64/octeon-insn= s.c index 6fffc8201034..208002c711a2 100644 --- a/tests/tcg/mips64/octeon-insns.c +++ b/tests/tcg/mips64/octeon-insns.c @@ -4,8 +4,8 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ =20 -#include #include +#include "../include/tap.h" =20 static uint64_t octeon_baddu(uint64_t rs, uint64_t rt) { @@ -385,36 +385,37 @@ static uint64_t octeon_rdhwr31_non_decreasing(void) =20 int main(void) { - assert(octeon_baddu(0x123, 0x0f0) =3D=3D 0x13); - assert(octeon_dmul(0x12345678, 0x10) =3D=3D 0x123456780); - assert(octeon_dpop(0xf0f0f0f0f0f0f0f0ULL) =3D=3D 32); - assert(octeon_seq(0xabc, 0xabc) =3D=3D 1); - assert(octeon_seq(0xabc, 0xdef) =3D=3D 0); - assert(octeon_sne(0xabc, 0xabc) =3D=3D 0); - assert(octeon_sne(0xabc, 0xdef) =3D=3D 1); - assert(octeon_qmac_lo(0x0003000000000000ULL, 2, 1) =3D=3D 13); - assert(octeon_qmacs_state(1, 1, 0x7ffffffe) =3D=3D 0x17fffffffULL); - assert(octeon_qmacs_state(0x8000, 0x8000, 0) =3D=3D 0x17fffffffULL); - assert(octeon_vmulu(5, 7, 11) =3D=3D 46); - assert(octeon_vmm0(5, 13, 7, 11) =3D=3D 59); - assert(octeon_vmm0_zeroes_mpl1() =3D=3D 0); - assert(octeon_mtp0_zeroes_p1() =3D=3D 0); - assert(octeon_cop2_key0_readback(0x1122334455667788ULL) =3D=3D - 0x1122334455667788ULL); - assert(octeon_cop2_key2_readback(0x8877665544332211ULL) =3D=3D - 0x8877665544332211ULL); - assert(octeon_cop2_key3_readback(0x0102030405060708ULL) =3D=3D - 0x0102030405060708ULL); - assert(octeon_cop2_keylength_readback(0xa5) =3D=3D 1); - assert(octeon_cop2_hsh_dat0_readback(0x0102030405060708ULL) =3D=3D - 0x0102030405060708ULL); - assert(octeon_cop2_crc_len_readback(0xb5) =3D=3D 5); - assert(octeon_cop2_crc_poly_reflect_readback(0x12345678) =3D=3D 0x482c= 6a1e); - assert(octeon_cop2_gfm_mul_reflect_write_readback( - 0x0123456789abcdefULL) =3D=3D 0xf7b3d591e6a2c480ULL); - assert(octeon_cop2_gfm_mul_reflect_readback( - 0xfedcba9876543210ULL) =3D=3D 0x084c2a6e195d3b7fULL); - assert(octeon_rdhwr31_non_decreasing()); + TAP_START(); + TAP_CHECK(octeon_baddu(0x123, 0x0f0) =3D=3D 0x13); + TAP_CHECK(octeon_dmul(0x12345678, 0x10) =3D=3D 0x123456780); + TAP_CHECK(octeon_dpop(0xf0f0f0f0f0f0f0f0ULL) =3D=3D 32); + TAP_CHECK(octeon_seq(0xabc, 0xabc) =3D=3D 1); + TAP_CHECK(octeon_seq(0xabc, 0xdef) =3D=3D 0); + TAP_CHECK(octeon_sne(0xabc, 0xabc) =3D=3D 0); + TAP_CHECK(octeon_sne(0xabc, 0xdef) =3D=3D 1); + TAP_CHECK(octeon_qmac_lo(0x0003000000000000ULL, 2, 1) =3D=3D 13); + TAP_CHECK(octeon_qmacs_state(1, 1, 0x7ffffffe) =3D=3D 0x17fffffffULL); + TAP_CHECK(octeon_qmacs_state(0x8000, 0x8000, 0) =3D=3D 0x17fffffffULL); + TAP_CHECK(octeon_vmulu(5, 7, 11) =3D=3D 46); + TAP_CHECK(octeon_vmm0(5, 13, 7, 11) =3D=3D 59); + TAP_CHECK(octeon_vmm0_zeroes_mpl1() =3D=3D 0); + TAP_CHECK(octeon_mtp0_zeroes_p1() =3D=3D 0); + TAP_CHECK(octeon_cop2_key0_readback(0x1122334455667788ULL) =3D=3D + 0x1122334455667788ULL); + TAP_CHECK(octeon_cop2_key2_readback(0x8877665544332211ULL) =3D=3D + 0x8877665544332211ULL); + TAP_CHECK(octeon_cop2_key3_readback(0x0102030405060708ULL) =3D=3D + 0x0102030405060708ULL); + TAP_CHECK(octeon_cop2_keylength_readback(0xa5) =3D=3D 1); + TAP_CHECK(octeon_cop2_hsh_dat0_readback(0x0102030405060708ULL) =3D=3D + 0x0102030405060708ULL); + TAP_CHECK(octeon_cop2_crc_len_readback(0xb5) =3D=3D 5); + TAP_CHECK(octeon_cop2_crc_poly_reflect_readback(0x12345678) =3D=3D 0x4= 82c6a1e); + TAP_CHECK(octeon_cop2_gfm_mul_reflect_write_readback( + 0x0123456789abcdefULL) =3D=3D 0xf7b3d591e6a2c480ULL); + TAP_CHECK(octeon_cop2_gfm_mul_reflect_readback( + 0xfedcba9876543210ULL) =3D=3D 0x084c2a6e195d3b7fULL); + TAP_CHECK(octeon_rdhwr31_non_decreasing()); =20 - return 0; + return tap_done(); } diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index c80a3716f559..3b895a169758 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -5,6 +5,7 @@ tests +=3D tcg_tests['multiarch-linux-user']['tests'] tests +=3D { '../mips64/octeon-insns.c': { 'qemu_args': ['-cpu', 'Octeon68XX'], + 'protocol': 'tap', }, } =20 --=20 2.55.0 From nobody Mon Nov 23 04:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372035; cv=none; d=zohomail.com; s=zohoarc; b=SUk+ssmU4Id7fmSwVVqDPIYtDmo3ENjVCLthAOaVbU4yzFtk9h1JiZBI9MgDXSN4BQ6KAg07WKiYBYGTjsWtVMbOuO5jTHX58cQ4PSbVoya4dKT8dLJw1VH75+xMlcl9Cg+d5A6fI1oCx4QjPh/KKeq4/rYzTzS2ffeIoXvHsN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372035; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Go5raBOf1KRQvFCZLOc5L5/jvKlytDeUWKABk1LcGx0=; b=aYEDMbIiwYsUpXHKPiSILPj1cAJd3smTUajoSuTi648P91b/O/4mBGIGx0GhoRIpcrmKA4Kdno2YAwJvBXDgOtCicgtArtndSGY8ilOcGS6gM0pHzMhAdtrcuE9Xf5R78gyWAjItdJcanjEG6DK81n5GHyKNdfX5cgHQise4xaI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1793372035886584.2568626309352; Fri, 30 Oct 2026 07:53:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMnzB-0002t1-Ei; Fri, 30 Oct 2026 10:53:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnya-0002P1-At for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:53:05 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMnyT-0006Ag-VQ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 10:53:01 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERBS32494589 for ; Fri, 30 Oct 2026 14:52:56 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6p3mxd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 14:52:56 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93cb6391e89so174831985a.1 for ; Fri, 30 Oct 2026 07:52:56 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa813d2950sm140834505e9.8.2026.10.30.07.52.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 07:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Go5raBOf1KRQvFCZLOc5L5/jvKlytDeUWKABk1LcGx0=; b=Vr0ty++/UzdiM1h+ HNN/rdGAw7lkT5CFckrHgsG6hPqecoR/6JAwqbq5kwRhxxvm+KzbFfFAfTI0cyKy tlv+j4TYzyq9ar0UKyvBUkXzyyOBjGJHcW2+Aj+7G6kE5YmEaI3zjDWmLNDCiE57 FG4TKrBlSouoZ3WpPGwk3aMYYRzuw7XIRXoJgP+KhGojhbf/Wqvs1OAyrk6H08lv +QBLHyZiamd327+yuAMU+q/38aZxiuPMSKDIZSISgYPEobIQqHvk1899ADX8Bg+T 7Xh3SpgF1ltda7UE+qO0YMteW4icLNFTKnJ9Xlpku1arAC0Y8IFTUTxWlBQqJZPF 2uw6mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793371973; x=1793976773; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Go5raBOf1KRQvFCZLOc5L5/jvKlytDeUWKABk1LcGx0=; b=JaYtPOEyflO63fQnNL1TsBH0/dOjfIpId8RSXxYV5UHT3DgRKavLKLmfaP3ZHEeqW+ +8xwutGgeEPq3CpNDsK6zWiyT3hZconx3gSq2cUswoFBNZBCZ3rbPMwveUHrw5hj2U7I nr3fDcOdodCCmKqx3pC6gPIo5woDXJNEkV8jgKgXnhfXCeuf+RV5/+eAqyvuf3PaIprZ p7s2VnRgUPiBDbHTkKyf7KdHzJOqGow86Gus6opykXjF1Gkw1OmngyXci7K32jUZ9yKq OIbpa5Znga4+I1Ys1QFPM35gFVRyF3rmYJiEnKbVSpiDW9npNHBj4xEO6kI7Qs7EfEZ7 ryeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793371973; x=1793976773; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Go5raBOf1KRQvFCZLOc5L5/jvKlytDeUWKABk1LcGx0=; b=LuLDvxObY0o3Vto7eOuTb2Jf44pIuiUkEt5/GGn4cbVv1saPwcM8GlktcfMxNyJRdy 9dUCR/HQJNo5I5TwiVoBJAbCwGhDiZUjTwFDObpLQlf766wawfpTYsSAHm7YZhL5lEn7 MkFLwWUg4KrKI4wGHXdycrzbtZWo6lUOBiCBEQqhM89qo30ICVS/cJBPkUvyc1V0e09V +jM+mzbkhL4tfUxEJ6k4QlU3jYakcvjdfugHGbvGjLTcX3xF18CWCA9Wsre2j0qNx3QA LZIfTTZ9nkHAquNl+G0DezuYGg0WakzvAO5PXgngexLcAjTupTVL1kHdzTKC+fN26oKt b8AA== X-Gm-Message-State: AFq9FYK/WJR/x0jgj/3S32yCUeruYB2D4M7XHLxLtSvRyKd1gOZOnfgo higUKAYhBkpwZtJHu+wg5vBbg03a6os3+hxG/5Fcrw8KRWhZpfizgoLkk9pRsYdHS9Xu5foajL1 Kwu96rXfXijRKxnIrK284YPFcfPx4rkGqMB1qmGVPm3Zhv3kEX6g1Epwi1tMqYZnIXk6T X-Gm-Gg: AYBFou0Y/UmZIX3GnscvKuBCZT2lhHJzRaZKHh5qEqrMUx0JYCf7+07vxTYdkAo4ryf cqW2ik8YrxwKO52QXtUhQOBUbCypkz13vu6SG+7KfV2kDA9EwX2T/bsosGmaIS2rCFwv4JJ2T6w rvW/ovuzctEHJ4LDfakSWW8fnIpGSMgD5VoebdmUyOrbAmiY+lzytiphT4VaccIwq3EmYJewrzj U+o5G6pMj52mXForBhFpuGWDENnvo+AvE+2RnJ8S9Aekdv7QHqtrrhhqR3waS9+VUxuvGuYecjM jiDu3sbY1i9qJctsetGDohJw1Bat5mV4WmoFgDK4b9vcyUgULRxTKlM9R23jDDY3TQA0jXraIQq ednyFTmBiXf5W0tp1YGvJTTTg7PNUOFd+uw+WHyXf9V6IsC5MvOYwu4i4dO1p7KcJdyJcUc5vsX BwZgreFgmiBs4WCKr0hMbD6Dy7EE5d8Q== X-Received: by 2002:a05:620a:29ca:b0:93e:c12c:43fd with SMTP id af79cd13be357-944217280e3mr418419485a.74.1793371973407; Fri, 30 Oct 2026 07:52:53 -0700 (PDT) X-Received: by 2002:a05:620a:29ca:b0:93e:c12c:43fd with SMTP id af79cd13be357-944217280e3mr418414885a.74.1793371972860; Fri, 30 Oct 2026 07:52:52 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , Richard Henderson Subject: [PATCH v2 4/4] tests/tcg/mips64: Test the Octeon POP instruction Date: Fri, 30 Oct 2026 15:52:18 +0100 Message-ID: <20261030145218.58385-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030145218.58385-1-philmd@oss.qualcomm.com> References: <20261030145218.58385-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX+P3D761KoRyC dnJoXO4v20RS+u0dShH9yLG2b/C+PkBDVAXxXxkLoF75OJoTwIu0sKucc+x8tXI+AbNRTMVuFZf Ug3Q1atu/5SZJBycGiEBBELy+JTKaq0JMx59jWiTDwB712GsOsLDFA6eqgi8Pl7SkWOE0OUZy7S nezB4Z4KnnPur7yHJTbmC2pArve+gP587mtpO9Abnfmbd0BZK2rFoMfFeHJqAJWUM7Tjp/6W5Th 1p36gmLcGrN/DT8cdEx4AF+3tmyjmvucWsMbqBoF+LoOHooHWE0rqkW2CMHJqfWxLYuDszxpEc6 M7+MoYk+1xkl6PFydPZeRuv1phwjhZ/GYPdR+j2/knN0NExmKRk0hk2ZZ9tQIKqr7rB+AnCp1Jw os2ldIZj3pZWyBsyH+KDsJVAEdSWJezTzhhpDP61hWc92CaWVE015D9uLZLbU4rg06WGKyCJB48 RuuOGk1hYMv1VzdtKrQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX1JxovQOgXTlk +B2Qs3ukDnGUlJI/RvKvB+1LUx2AqscP7k4q1xj+mnklMbA5j2QxTVjsHlKwWIfG3PwQn6qY841 cXAK2gsprwSd/cjMRL5JXWn5kVODP7s= X-Proofpoint-ORIG-GUID: g8yj6nlnEabhKVEMeOBGYH5bazqDPjSr X-Proofpoint-GUID: g8yj6nlnEabhKVEMeOBGYH5bazqDPjSr X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4af48 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=snbnvTbt-5-dSQZ-83gA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372043539154100 Check that POP counts the bits of the low 32 bits only, unlike DPOP. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/octeon-insns.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/tcg/mips64/octeon-insns.c b/tests/tcg/mips64/octeon-insn= s.c index 208002c711a2..ea8ad4baee4d 100644 --- a/tests/tcg/mips64/octeon-insns.c +++ b/tests/tcg/mips64/octeon-insns.c @@ -39,6 +39,21 @@ static uint64_t octeon_dmul(uint64_t rs, uint64_t rt) return rd; } =20 +static uint64_t octeon_pop(uint64_t rs) +{ + uint64_t rd; + + asm volatile( + "move $8, %[rs]\n\t" + ".word 0x7100502c\n\t" /* pop $10, $8 */ + "move %[rd], $10\n\t" + : [rd] "=3Dr" (rd) + : [rs] "r" (rs) + : "$8", "$10"); + + return rd; +} + static uint64_t octeon_dpop(uint64_t rs) { uint64_t rd; @@ -388,6 +403,9 @@ int main(void) TAP_START(); TAP_CHECK(octeon_baddu(0x123, 0x0f0) =3D=3D 0x13); TAP_CHECK(octeon_dmul(0x12345678, 0x10) =3D=3D 0x123456780); + TAP_CHECK(octeon_pop(0) =3D=3D 0); + TAP_CHECK(octeon_pop(0xf0f0f0f0) =3D=3D 16); + TAP_CHECK(octeon_pop(0xffffffff00000001ULL) =3D=3D 1); /* low 32 bits = only */ TAP_CHECK(octeon_dpop(0xf0f0f0f0f0f0f0f0ULL) =3D=3D 32); TAP_CHECK(octeon_seq(0xabc, 0xabc) =3D=3D 1); TAP_CHECK(octeon_seq(0xabc, 0xdef) =3D=3D 0); --=20 2.55.0