From nobody Mon Nov 23 04:26:29 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=1793287306; cv=none; d=zohomail.com; s=zohoarc; b=U+bDgUh5ME1A1Dzmck9tACEwQvaUg8Y6SWSHqd4DcBdzY1zkWzHkRsBR1icOmoq9j6+JQJaDuVZnnnaRpm9jAq+CBdYYMJvKqRMhJ6oMMBxzt5hV8XwwpTBhhjykH6IJ+BqVrqqLDMj1f/5mQB2kwGiJf2XPHA38+v3F51i4oq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793287306; 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=1b9R69wxnrm11xsTFBJRJNmGAsSY76XJjIwRw22joHQ=; b=E/F036cEbQLOx4EiKhxZbykHsCERi023/Xy+VEGIIDywRinqLyHuO9VrTYb2xQl58qn/3LV+zfX9uwXCXSnc2U/0LOldQ/U62JWk8ebuV/5OLV2+FZWYwsKq/9XwVmxBf1uXfnK2mKGAnoQhGTvU0Lgq3XuaCUndOCpQv30kQSw= 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 1793287306437457.4474790538434; Thu, 29 Oct 2026 08:21:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMRvq-00085D-TW; Thu, 29 Oct 2026 11:20:46 -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 1xMRvU-00082N-Ih for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20:24 -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 1xMRvR-0003di-ET for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20:23 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TCeWKo120284 for ; Thu, 29 Oct 2026 15:20:20 GMT Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hkut3k0yg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 15:20:19 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7cc4149b885so1880696137.2 for ; Thu, 29 Oct 2026 08:20:19 -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-4aa7fdb75e0sm72311135e9.10.2026.10.29.08.20.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 08:20:17 -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= 1b9R69wxnrm11xsTFBJRJNmGAsSY76XJjIwRw22joHQ=; b=jhhQKKcsJJyYHsYt lzjoRZShgGdzZctZJjWyyjIPJY4EZlHThgDabL4K+G6CBaOSQkSnZ9UuyU4kkLfo P1BJ6/PX+lFt8BarFSFfxeyK+7KYaQRet0d3poMaLaWlCh0/UpMdlBDHn1Xrg14y uv6nzhIUIDOgyoOi9ziHCIoj0AWjByJO280SGwm6WiDTUiGDX+fJ3xQRSEXo7r5/ 2JgfbgltGBO15jo125efgDAuTRtGYso4rYmpFM04SLqbIYEuDi6s+qRDDSEbm8oq Ap2dtRUR2TPDA1/Qfwf1liXA8m0/UvPMYlG/u5QM3/mb8FADTs4c1IrMFrAr0PCL HETbBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793287219; x=1793892019; 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=1b9R69wxnrm11xsTFBJRJNmGAsSY76XJjIwRw22joHQ=; b=Tz7dMN6pINkiaoQ1i+c96H3W6xOIGTgKwBnW+/215tKyi9+VGf5GxOgC+BErdplZ6E 6iF+bISY2hP6as2k69JEO6XWYHhZjkZs1lk26UNK+J+qO1Ev9vThdiEag9tmw93VHxwR 8/7i4WIW2SWlIh/Zob/uWpYrUusO0SvK7FM4ltH8MvzWLgvVbyUduQlo3F6gb06f++fi 4BTBxevu0mhHOobEMC0RYYlUYGZ0zkTB8bXSCGsWy5wv/Trl/q6AJ1wY6D1Fk3OTha48 IAyMrsiLQ2QUmmhTpwzt307NcnQrmOGRrZJ3oifuKzHfKIHHXpOAL01UtUvhcJ1V9KRr /Xbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793287219; x=1793892019; 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=1b9R69wxnrm11xsTFBJRJNmGAsSY76XJjIwRw22joHQ=; b=AQCqnFedErmS0Wj0oCyFwzRLh991pUTTa5ecMxX8oSS+/S/V/GfNG6YXNI32uFLeuI 2Bj2kGTolZAPeN58IBMF5unRaTFDXlCyf5eDiY9VkAgrcnLF+PFAaKnJ9L9MjN3a+ezA qkm7s5pJATRuKFn4iPiiBHaXH3uLAIhKQzi2O0NHf4vEf9vFr7D1u7YAqxKJnWLZpeNl yYQ8gnzkYaxKs6KNBDycNb20FNt2M4gchU2yNfCrbZaOaHHjkbse2qxx9IqfSVI1sIXM mey5l190d/EyNH5I+bPiZu8KRYKWriMatY6z3JZWUfPA1u3peh60XX+8k0d6letOjkqw A9yQ== X-Gm-Message-State: AFq9FYI1De41jK48FaIffj2RVeVNh9B0qihASdqCtQiR6gQYP9SKh6u7 kvK9hpdPqgVilZgmfnM1cBHhDcJMahoBTQRYA+jCuZcqVJWJQkSw9VcU6KlDuQyVFlV+cF+Rtec B6UEbE0MeWljFXdLh6GYpiB2qI3zdy50S3QryzwoZBJe5DowGMP0rjJpZT50xuKlkiJNM X-Gm-Gg: AYBFou0UDLpCzEp6zBQIl9wAFRqt1qPwmsRRoXoL1qv03zWs6tdb0+Sk0TCDKcMDXdf YLyogDwE78PvfgbgPxRlBC+evXMuu8j9HhRHIykuNZCo96qmYmrWxAUX3RHvYvO6nw5DEAZNoCQ WeoYe9n14+mdOQkWNXNzi0jEHDx5loDtNkbv2yuOrucaQE+CH/Hre74avaK3eOhwqmM/MVOkj97 WZUgtnHOjnZBNjrB7V9mYetE8p0Q3x+1pt4z0TxkElXhzXyvBWs/py6HNVVa0n9p14Rc4+JmIoK V37TKstRYTGG2S78BcWzjgzWR3lTI8BluKtyWd7XpklCTQYPGhSdyuiIctjYr3+nhBhYa6c4vGY KXKewgPA3qwyIJJXBH6wd45awFAWnd0LqCijgP9Ax1cGBDdwLEJa5suADFYL5lDEbFHraC7NeDw JxNUBt0R8lfqhCIeC3TP5Ik4pVLYjXgg== X-Received: by 2002:a05:6102:448d:b0:7cc:1967:5e3a with SMTP id ada2fe7eead31-7d03a5e4ca7mr3157154137.32.1793287218925; Thu, 29 Oct 2026 08:20:18 -0700 (PDT) X-Received: by 2002:a05:6102:448d:b0:7cc:1967:5e3a with SMTP id ada2fe7eead31-7d03a5e4ca7mr3157132137.32.1793287218411; Thu, 29 Oct 2026 08:20:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , Jiaxun Yang Subject: [PATCH 1/3] tests/tcg: Allow tests to report results with TAP Date: Thu, 29 Oct 2026 16:20:06 +0100 Message-ID: <20261029152009.19812-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029152009.19812-1-philmd@oss.qualcomm.com> References: <20261029152009.19812-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfX2zfGouhrMOxL 2SA2DdlNTKYKIqUAY7PXTj2DA8tm1KEblU8NktMTTPh4B5l8bNDNL5bXnpMr2THrAa9MRUvCoKY yy1uDVfeapMcDQCKJZEYoNEVc8uCuOs= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfX46NbzS4u0FSH qOmSnsI9jEUJKu/P3PLGoi/RHsyKOTmCon5KFXY6VA7WKVDyzFYX5IMq0V1lDLcpsJ851zlQN17 wZGcy09x3f4AF8eudD7LEdwX88DOHAu4Sb3PskPxhuJVQDwCTi3x7x+JdIWy4OVdh/QDE06WgWY qlFnXyTcfW2QHxSNI9a95QzDmkYxkxIvu7D5E+McdLUQTwEmMRzyO9HdZeQYlloeiGsFpyUHl8r OGikicBF82fOfdq2qFliHbTdXzXkEkXtzARLzA8OeANLXBh7XJFzDfQTmfx7kANe/KKNqCieZug zeBrZIPfKyOYmIhAraxLcC4OZpCRwZyYKKIUr3GcrqsFfbolzFquB2LkzTtmE6NodPyhVHzTJAN zp678tywgBSmnaUw474KJQxdH5HMoDPR99BZcLBOPiHw0rCU68je0TT3CDvT4mKeN8GlHkWlVjQ MtYmWNIkAOQmYiVmXQQ== X-Proofpoint-ORIG-GUID: S6KTbGoLuhY-SBUOBnCKGrYBTR0sb6RF X-Proofpoint-GUID: S6KTbGoLuhY-SBUOBnCKGrYBTR0sb6RF X-Authority-Analysis: v=2.4 cv=HYSB3SE8 c=1 sm=1 tr=0 ts=6ae36434 cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==: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=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=QNv39Vzb0ykFVVrKWfcA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an: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-29_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290060 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, KHOP_DYNAMIC=0.001, 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: 1793287308529158500 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: Pierrick Bouvier Reviewed-by: Richard Henderson --- tests/tcg/meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build index 06f013fbe3d8..6666d0dcea2a 100644 --- a/tests/tcg/meson.build +++ b/tests/tcg/meson.build @@ -323,8 +323,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) + '])') @@ -519,7 +519,9 @@ foreach target, plan: tcg_tests skip_test =3D 'gdb not available for ' + gdb_arch endif =20 + test_protocol =3D 'protocol' in setup ? setup['protocol'] : 'exitcod= e' 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'] endif @@ -530,6 +532,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:29 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=1793287272; cv=none; d=zohomail.com; s=zohoarc; b=A0lRQwKguiUaqIPWCc5p2X3tGyFTcXK2Vol8J580YCtSdiEf0stK3pKzUqBrIIAx50EMfPkc2iVnyuk4RHo54pIt3E85vIZiCuHEQLRrkiioaLLOq4/QWShwMEJ6jnvE9JQkdl2qQm26PlI9gXg1C6KetibwA08j7Yaurcrfan8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793287272; 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=hoI2Ke5TM6U40sOFeiH8bHAtoIqzzOJYsZdPn6zQ0f0=; b=HsyX/uZnpleEcaR1hfVRoXgLhbptzs2LYg+XOSDysPbmL10phxwoIzmfwZH+StGJ5tOjRpCpAV6B7/XF6YYVBtC2oeoQunPqH18ZjLUbBTPJ0mtTYXBXAKMK6IuS3i2jRwR1YS6GE9sueOdTJc9ogBYNqHrX0McKSAVvFM1onfo= 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 17932872723331019.9921385266686; Thu, 29 Oct 2026 08:21:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMRvw-00086Z-KE; Thu, 29 Oct 2026 11:20:52 -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 1xMRvn-00084M-D5 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20: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 1xMRvf-0003eD-Qe for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20:43 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TCeUjE2762043 for ; Thu, 29 Oct 2026 15:20:28 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm31b1fb7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 15:20:28 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-9441113670dso258114585a.0 for ; Thu, 29 Oct 2026 08:20:27 -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-4aa80285b2dsm71533185e9.13.2026.10.29.08.20.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 08:20:24 -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= hoI2Ke5TM6U40sOFeiH8bHAtoIqzzOJYsZdPn6zQ0f0=; b=i5IoLLtb+rnx0E2i Y7GgQWcz/gnXmfRv2Dmkvd79CqiHLbP185k15AKlwYyJDYvEzn6FOILQqzDzg/0F iCVIxN1bNEMjDQs4YJAyo6+TnudYPTLsyABDuzhGRGDgL5UiI1KipWWDrCPZA56g nZiaAZOYPM5OG8lpBkQmQu4gavufP6bLiXmWX5icgZD7DKjSWhp97I3sTYvhiCVk Vzwwq/0Qz3Tt8jTwmhCKyIYagp8XPMpGG6ltJ/cyyr4U8kmyyiB4NpQ2NdB6+mRh iOLnp8xYwgkmPirUxSlTwocAPFcmLFykBviuuMxB2qFeLaE2yeD4tlM/hRJ7+9BC R/yCBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793287227; x=1793892027; 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=hoI2Ke5TM6U40sOFeiH8bHAtoIqzzOJYsZdPn6zQ0f0=; b=Nflsb9QZq72qR+uz+y9aEEt4snj547CHVnRBcV1TU/GVH+MyQApV13zvIgb9GeNJBt pOsAuOnT37Bi7+88Jr5lOihngeX1hMl4edg7RH00c/iS/TalkuZz7FzVO/5TOdxi1IoQ 2vcDizqYYkUwgGOHXGz12CTsZ0gqATC90x8NLxaApY4Loo6TEcmc55a8LyDlayZ+nyJK /RSr6H/6XqXNTJpy4xmA1Sqabe/789yPh5J+z11bh8683ng62xB7G40kBx+5qkHTjA3Q 5yG6g1ymZ4YOnQIJObSQ2iYEnb0754ti216Ioj8RuUyR9xsP9Vdu6dymjrn9htEu21q4 WEQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793287227; x=1793892027; 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=hoI2Ke5TM6U40sOFeiH8bHAtoIqzzOJYsZdPn6zQ0f0=; b=qcvb6cXmuAL8hjsYpEjAMYgsVpWAFZVTxsZ0xpTe9bU1ePw2IIhoQSRJsb9B5ziUBV s54x/VRYhkeejpPjd2pDwuTeG3exTfO+g6C3fioDG/3UnWNHbQO9hgJ+6gX14uLv0H38 2lSOSIszyu1FZJw6p7fR5IxloJbsMfkm9Yb5dVgjl62s0zOvNZVePXvRgyN6cVUwIN/B ohZ0wWdfx0sWyKJP8TpsCGqohEnvNFMKGWB6O4yRlKknhE8NI6cpBLsNzeWUUJSyiNNW Ase9TVNNu4iYtT3nYw0iDwU0Ek4GQ30V7NnmRvDYI1h+cC7+noLJ/BLP8rgO4momPvoi jajQ== X-Gm-Message-State: AFq9FYLVsdUE5KLkh3UQg3vkuz47JS1BwdgKlMDPBdA0vC67U7kNgkBE gyAj9B094YICunj6ApvYv/LgDDVKEMDv/+Q8UxJ9FczfSABrHhAJ8AidCQj6l4lpxjQlEBS3vV6 btCBHSMAQZ4irQxzAbE7GBbdFTBCjQ1jou9o9026Xz8Cv0ptWn8nYKTVG3snvkwwCDg62 X-Gm-Gg: AYBFou22AQA3NOZynYrYGPmAy4Pz25LfziBwhT3v06bDqxk1IdI+1ZjUGS/FZv0MSFN QIMkui3XJcV4qUyG9ff9NyVlGi7uQEo3wI+Poq5Mc3hcpwHnHe16HjoPtT7ls3wsmArbYHT3719 hFc2TJx2Qk8N7i5ZgoXjchDWmzRquDtooBV6boIUfWqo82AfgtjBuuaR3XsgA9dGrsoYqDnvBgQ aIhmxUL5PB3atgc+68uMyBEKxfBiIQDn7ZneGWP31FKX3xeVn3NzzSV+33SNLjdwdffyp2Rw4QE r7QE+F76FGGPrLCE7EqKJ67mHJ9OFL0qHj8pd6HTimaOlWpK1QX254iPgi56XN6rvdIw1c7pVO+ XwzRpM4p4vDv71i4y8Y/Yk5SXUEzr0s0uDcS/JfBjksgJ0uLA98QIfkuRqD+mzwTYhtUQ+g+oHs ImPtpAd8t2q6VXHdo= X-Received: by 2002:a05:620a:29c5:b0:93f:59b8:e28a with SMTP id af79cd13be357-94408cf4114mr873513285a.28.1793287226506; Thu, 29 Oct 2026 08:20:26 -0700 (PDT) X-Received: by 2002:a05:620a:29c5:b0:93f:59b8:e28a with SMTP id af79cd13be357-94408cf4114mr873504785a.28.1793287225661; Thu, 29 Oct 2026 08:20:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , Jiaxun Yang Subject: [PATCH 2/3] tests/tcg/mips64: Report Octeon test results with TAP Date: Thu, 29 Oct 2026 16:20:07 +0100 Message-ID: <20261029152009.19812-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029152009.19812-1-philmd@oss.qualcomm.com> References: <20261029152009.19812-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfXz/TH739x2rok zWNMICPLDl1evZ2NSfVtv4U1nSEq09rcH/vBsd1pgCHakeI2R4wqRRWJumasEuPSZmkdqsWAFkE Nw/+fREX7nUByZCxG4vlYCqr187qJbg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfX/J906cdSj429 GHLZSeXHob6OYETjdl8zHBPumFoLBsSPBEf7beEfct9p4vVRVH7ioLRpj+CkcZjs1zwmX86pwOz APUAP1vfhHrckDWlONq1yEu9ru/M9S4/NUkPrF9BMTOVvRoag5WvaQyW50tNcMRbvTOf6oA28XI ttHmQPh/Ay5epJrggUhO0JHU9GkqU0BJJz33R4gtlQcuxkEMPctdSX6eOxwKGtbURwOsiABNouR /pAFSUQcSMcJyaYYD5bWyhdNXYeUXZxgvYo91P5314AXaExjnGO98X7tb1RZp4cwdKp+yEitWMl 0m9d0PzO1eLx48degRJmK4gXEHJqxchrYriMK6q9MncLNs8GfmsaTikTKz6wgxjDKxWHvvofoBd Jvku1xgIq8Z7X0EPU5NoBaVzb6+1y+nsKf/Qbsaz1UyaD6QZcFJWqv6Js0tSDNp0Xz1hajyxW3U esQvMGlKurwPuKGXhzA== X-Authority-Analysis: v=2.4 cv=A8T5rKWG c=1 sm=1 tr=0 ts=6ae3643c cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==: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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=24OdzgigavIs_6l_i50A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: bSAVTJAcTp9MAvA7YC3DF8Y2OAAR3gjd X-Proofpoint-ORIG-GUID: bSAVTJAcTp9MAvA7YC3DF8Y2OAAR3gjd 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-29_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290060 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, KHOP_DYNAMIC=0.001, 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: 1793287274955154100 Replace assert() by a 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 --- tests/tcg/mips64/octeon-insns.c | 76 +++++++++++++++++++-------------- tests/tcg/mips64/meson.build | 1 + 2 files changed, 45 insertions(+), 32 deletions(-) diff --git a/tests/tcg/mips64/octeon-insns.c b/tests/tcg/mips64/octeon-insn= s.c index 6fffc8201034..2c4fe8f58875 100644 --- a/tests/tcg/mips64/octeon-insns.c +++ b/tests/tcg/mips64/octeon-insns.c @@ -4,8 +4,17 @@ * SPDX-License-Identifier: GPL-2.0-or-later */ =20 -#include #include +#include + +static int tests, failures; + +#define CHECK(cond) \ + do { \ + int ok_ =3D !!(cond); \ + printf("%s %d - %s\n", ok_ ? "ok" : "not ok", ++tests, #cond); \ + failures +=3D !ok_; \ + } while (0) =20 static uint64_t octeon_baddu(uint64_t rs, uint64_t rt) { @@ -385,36 +394,39 @@ 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()); + printf("TAP version 14\n"); + CHECK(octeon_baddu(0x123, 0x0f0) =3D=3D 0x13); + CHECK(octeon_dmul(0x12345678, 0x10) =3D=3D 0x123456780); + CHECK(octeon_dpop(0xf0f0f0f0f0f0f0f0ULL) =3D=3D 32); + CHECK(octeon_seq(0xabc, 0xabc) =3D=3D 1); + CHECK(octeon_seq(0xabc, 0xdef) =3D=3D 0); + CHECK(octeon_sne(0xabc, 0xabc) =3D=3D 0); + CHECK(octeon_sne(0xabc, 0xdef) =3D=3D 1); + CHECK(octeon_qmac_lo(0x0003000000000000ULL, 2, 1) =3D=3D 13); + CHECK(octeon_qmacs_state(1, 1, 0x7ffffffe) =3D=3D 0x17fffffffULL); + CHECK(octeon_qmacs_state(0x8000, 0x8000, 0) =3D=3D 0x17fffffffULL); + CHECK(octeon_vmulu(5, 7, 11) =3D=3D 46); + CHECK(octeon_vmm0(5, 13, 7, 11) =3D=3D 59); + CHECK(octeon_vmm0_zeroes_mpl1() =3D=3D 0); + CHECK(octeon_mtp0_zeroes_p1() =3D=3D 0); + CHECK(octeon_cop2_key0_readback(0x1122334455667788ULL) =3D=3D + 0x1122334455667788ULL); + CHECK(octeon_cop2_key2_readback(0x8877665544332211ULL) =3D=3D + 0x8877665544332211ULL); + CHECK(octeon_cop2_key3_readback(0x0102030405060708ULL) =3D=3D + 0x0102030405060708ULL); + CHECK(octeon_cop2_keylength_readback(0xa5) =3D=3D 1); + CHECK(octeon_cop2_hsh_dat0_readback(0x0102030405060708ULL) =3D=3D + 0x0102030405060708ULL); + CHECK(octeon_cop2_crc_len_readback(0xb5) =3D=3D 5); + CHECK(octeon_cop2_crc_poly_reflect_readback(0x12345678) =3D=3D 0x482c6= a1e); + CHECK(octeon_cop2_gfm_mul_reflect_write_readback( + 0x0123456789abcdefULL) =3D=3D 0xf7b3d591e6a2c480ULL); + CHECK(octeon_cop2_gfm_mul_reflect_readback( + 0xfedcba9876543210ULL) =3D=3D 0x084c2a6e195d3b7fULL); + CHECK(octeon_rdhwr31_non_decreasing()); =20 - return 0; + printf("1..%d\n", tests); + + return failures ? 1 : 0; } 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:29 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=1793287272; cv=none; d=zohomail.com; s=zohoarc; b=DfhJENwqK+ITd34WrahshYUJhSikrFH987cgmunInuvRoRUZyvmRZydkyHFMtpSSntRe0wTUXd6WFzqW18w8VB/Oh33ol2phcjZ7K02v8Cj+FeL0CxtB5ijdGvwryEOZB6XV44PYckpC/+rfSPPabV5mztoJK2+NublmcrWQJHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793287272; 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=uoz0GJK4EiKftpnfPvWdrFy+BjMidf8V1yjYl5ZQOCA=; b=ao2ramlkUGSr/X5MTzyyq5kgt7Zl6KvgkaKwg1AJaTFLaC+mieMgbYfnL0ekanbgSFnKID/AnbIkEo8qKQrW2oe3ex5gwUAns/Q4kwXgS7zRfPIc8feheITVL1ngiQ5U7AWLQbmGoQeqDwBXjEy1ro9NwX93Wqpf8YBX0TxaV9s= 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 1793287272593830.2334924330772; Thu, 29 Oct 2026 08:21:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMRvr-00085M-8s; Thu, 29 Oct 2026 11:20:47 -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 1xMRvn-00084L-BJ for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20: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 1xMRvl-0003eW-EH for qemu-devel@nongnu.org; Thu, 29 Oct 2026 11:20:43 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69TCdvnE1147371 for ; Thu, 29 Oct 2026 15:20:35 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm44q95dy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 15:20:35 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93cb71b1443so470571985a.2 for ; Thu, 29 Oct 2026 08:20:35 -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-4aa7f3229dbsm71352065e9.1.2026.10.29.08.20.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 08:20:32 -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= uoz0GJK4EiKftpnfPvWdrFy+BjMidf8V1yjYl5ZQOCA=; b=kj33gJ3i/7TpwfLz rT5JYcwJ9i40A3S+bnXaiI1AuV2kiJRcH5E8gpjM1+qOn9je5F9muj0gLWgsN9jz fBULS5ZVkO7yHXP/Egw+74f1Xx5p6KJ2PXKsdwgnTNVu7AwEfVRiOWXVrod0CJaM JdVH13MB3NzxLIJeR/Bzb0uEE7FasX+A53nfPVeuXGBjUqGBlZV+/yamSBgRKcGg s40oJ+zXRfpM36vm3KkVsfGFchPw9zJR7CrJjakR4xTGkC+ZcD1T7/jI/2X2LgU/ DiGYvHucX7w84CwfdcKRxy4aJ3h8JhKb0sLroUwnTox54M3HFLwSNpo53kVAvq0Q 7sA+ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793287234; x=1793892034; 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=uoz0GJK4EiKftpnfPvWdrFy+BjMidf8V1yjYl5ZQOCA=; b=NQONARLHvDcocGfxA3GejgedR2pM9EHUrzSxnxyzVOTYGIiuxtUF0eA6CAwSrJLo2D Jhnc3ZfWEeXzxALuaOcP/Ku5XFLj0Aw/OlOsfw4oJlnanYesYZIVehnybRJGQEClid30 /aLD87aFHXYQ6+gXtlPWHpPncqJ04fq9SxjZaWKr+OgAUv/4aOuXzUXHO3PMUglpbx6b Zc9bIe4werq7NLJwbIlMu4VSK+n3GvELhDy0eR8Oer9LMWDz+ES4BcwjFQvFu3aZAhDH OO01bLsmpckP1KcpaZAIndGbMkxzAng9D1ICegq+k1tpxOgb6gX1ea5kBeXaGEEY55J0 rYug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793287234; x=1793892034; 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=uoz0GJK4EiKftpnfPvWdrFy+BjMidf8V1yjYl5ZQOCA=; b=ywFIGvNU879I8NFyC4nKj+ENqO87zySDiZRHoE3yzVpdf/T96eaWhy/0dWPuGWuU9e /As5L7jBeqojV/4SWdq0nfenTzN8MN9W0BHE89RV2onVeVGU2WRXwyxVan7zAt6MdkLh 2UUnoaFMMU1xdvJ53q41T2lNERk47SuA6z1QNvPyeJEnks7MVZe0q5TeNg1CVfB/yNS+ MWdTd2yc3fqgyPwKtPqTRFTEWIulprgaZSPy/g8KBUWrdkYON70GH78hpgSlxt7kfoyv FiBsVwNGjDH9nEeBrKZFxf46V3IIMXTCE9f+pvVimhIhw9zS2Osmp/Ya0pHq9W+ws5Yt tH4A== X-Gm-Message-State: AFq9FYIreWY4wXiJ/IPD31Q8nNIg10jvbQPmPKIOS9Ynll43lIIglOnL HBLXbVaUKgMBZMMVar1XRslVNUiXc5+vcU9eluU2WET25uuI1tTBK1fesqULLEB5WNRf5xXJPq4 V/+gYDjLvHzqhV5OI2ti5Sw2Jgg+42geqaGORau2Oq+g6EM7L7qDVhHAM8yjQyZqe8xlw X-Gm-Gg: AYBFou2uPEPHjwOtunYvAEePocfuaDXZdUI8g2O574H2R9QkWlAX6lRb9dDwylDkyNh Mu9HhYTjyBoQFJhmGfIfgp8OHSk8pXc0838IFbfM5D7hTCw7FoQ7HMz4EIBTx1tJy+T/MMtEyjE cNP2zGQQizyPCWnv5OhVyNwmbPZY7HqhOm5KMCzDTeWqR6iPAU0Py/pxpf+IuxnruvrrpP2OzYf M5o6OxOEBar19pRelqPMoVBu2WnKYdVp4lWeL7Ibu+QXIVBZmWpIjPdeXQuZ8VnsoBaXKI2zHAP gk2Ieko2q90q1jrfphynBcw4PcSdEU+CbrbGSkOM8pVt+HmXpAu6wRpGkR2IX3Ovmakx3ATx2n/ znDsCwzyZ5vzIKoMdn5mL4+nYQTkjk4bEBb4Btk2ankmzSPp/Q7lX6rRYLSblY5zoyJZX4YTMVf H/Mvm1G+0wg1QnoMg7mnawxWhEvOklBA== X-Received: by 2002:a05:620a:461e:b0:93e:6394:5e33 with SMTP id af79cd13be357-94408a5f872mr897143985a.27.1793287234211; Thu, 29 Oct 2026 08:20:34 -0700 (PDT) X-Received: by 2002:a05:620a:461e:b0:93e:6394:5e33 with SMTP id af79cd13be357-94408a5f872mr897139085a.27.1793287233616; Thu, 29 Oct 2026 08:20:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Aurelien Jarno , Aleksandar Rikalo , Jiaxun Yang Subject: [PATCH 3/3] tests/tcg/mips64: Test the Octeon POP instruction Date: Thu, 29 Oct 2026 16:20:08 +0100 Message-ID: <20261029152009.19812-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029152009.19812-1-philmd@oss.qualcomm.com> References: <20261029152009.19812-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfX5mN5po4Cjw0c G41V5IwUSRh3UCY7m++P++3oqyTZUEuawbX6g04kkEcQDjJWnNx2vrwmRJRBP2EFH521UOC7OBG MzSn1SeWvs7Tqe3CkhjAmS6IQkCbGg8= X-Proofpoint-ORIG-GUID: ERHj9a2fYtfUKt3Uo4VPgeyVcEhfXwKn X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2MCBTYWx0ZWRfX73y4uZecbcgg fTjC3tAaNaVB+be5BSuQ4UD/KUPa/9wp/setH2akspSMMosS8jLYN3D0ZZdOclPfWniSArjpntv AAzAESRAAYD4GGspycacF5YvQp67RnXZcbmzN9K+DC9y6s2QYTsMEfisIf74g5ryQgN5m4KAjp/ ySf3Q6T63itV5hEXy1+wEcet8X17Vk5GxT1YkXUip9x/AOj9IN50gNL6DG0tJn7Vk+d8YZMAs8L 4o+eC6gn5Vg3CUKXY4UCP3nprR1X+3vO3Ni19Vv+awVVva7uYRjWDZUsFGJhMLdIeMfeOAQbXa4 3rdXesgMuEXeOfDgJEwuDJ7Bev5l/zcuMx9iFSukavbTstNWfieDeF2mZklwHUlgAz7KXbn2Qpe 4DdbOzMDLAxYzf5lSiQqitmteOo4dKPTtzLkpPBez9ttvsB8QYS/GfBUqi2vW4oKIOVAQJgmeZ6 wYRVc0YjqTTA66dE83A== X-Authority-Analysis: v=2.4 cv=CYmdd7rl c=1 sm=1 tr=0 ts=6ae36443 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==: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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=CbHy6YXcP3UXE5Rb_AQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: ERHj9a2fYtfUKt3Uo4VPgeyVcEhfXwKn 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-29_04,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290060 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, KHOP_DYNAMIC=0.001, 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: 1793287274906154100 Check that POP counts the bits of the low 32 bits only, unlike DPOP. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- 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 2c4fe8f58875..ff399507f1d4 100644 --- a/tests/tcg/mips64/octeon-insns.c +++ b/tests/tcg/mips64/octeon-insns.c @@ -48,6 +48,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; @@ -397,6 +412,9 @@ int main(void) printf("TAP version 14\n"); CHECK(octeon_baddu(0x123, 0x0f0) =3D=3D 0x13); CHECK(octeon_dmul(0x12345678, 0x10) =3D=3D 0x123456780); + CHECK(octeon_pop(0) =3D=3D 0); + CHECK(octeon_pop(0xf0f0f0f0) =3D=3D 16); + CHECK(octeon_pop(0xffffffff00000001ULL) =3D=3D 1); /* low 32 bits only= */ CHECK(octeon_dpop(0xf0f0f0f0f0f0f0f0ULL) =3D=3D 32); CHECK(octeon_seq(0xabc, 0xabc) =3D=3D 1); CHECK(octeon_seq(0xabc, 0xdef) =3D=3D 0); --=20 2.55.0