From nobody Mon Nov 23 04:18: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=1793382890; cv=none; d=zohomail.com; s=zohoarc; b=bfoaLL8OnSDMh5YcTPghkisa46R4zbDYgq4h+qdWdGsNZWHnS4h9d9cejc8c4u4cOiag8qXqroHIQidg1+gHoB3D23A2aAnSW7OSOt42+ptPrcrAhu99G9EGMgsbYW1aUQP7vWn+yXggsbMlfyTbSwqx1c9XN9RG/mFzOn3xBzw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382890; 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=n8YHAI9iJOxJswDGOjyLG2qY0rvHHGV2vOgRiFmG0+M=; b=a5+I61P3/ZiOqQE/lOXvzIq5n0dPFr7z6uwK3Zi2Xnh70XVhKy/zZ/wtB5TVtyVUkCosUN8nOIVz7vRTP8tU1m3Eb/I9ucfBjofAz5QKZ+3DAiKhQ0SJ+wrciOG5fqFWBjffXSWroxEX7H4GitzsSIxwCCRX04IfJ/ol4birj1U= 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 1793382890068550.5328662875795; Fri, 30 Oct 2026 10:54:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqoK-0005Vn-R5; Fri, 30 Oct 2026 13:54:44 -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 1xMqns-0005TA-US for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:13 -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 1xMqnq-0007nt-VQ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:12 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERinZ3207520 for ; Fri, 30 Oct 2026 17:54:09 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 4hme6qmab3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:08 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93e49a1d3b1so226718985a.2 for ; Fri, 30 Oct 2026 10:54:08 -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-4abf60f1076sm78326345e9.6.2026.10.30.10.54.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:06 -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= n8YHAI9iJOxJswDGOjyLG2qY0rvHHGV2vOgRiFmG0+M=; b=b//MCg7gz8LOv77g /coL/AcuG6H2+8bG/9cWSkpE1UohTeB6+k3MF3I1dcxkEDHQVQyo13IoMZxP1qjK WICERjM6dduAbirkmhzs/RH3amqAj+fDbWO3+ph9qp06faIExlG4ZjyktGDuzJVW MimM/bMALhFsWLTOstqkaKg/jJsOtslEEVWiI4a1TPPBKIM1Ij103TI2dMj6ioBq 6DNVwovVh6Z/EZjwpr3O9mgOT/X+yhZsR2wKMWrHtx3JbaOhZcOtjr2L3NnbC0lM a1+iCtAxHSlODG5lw8oYFlylDpBPAU87ubaBQuczw1fxamK75zcEBZE/EnA0SUW+ YCZT/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382848; x=1793987648; 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=n8YHAI9iJOxJswDGOjyLG2qY0rvHHGV2vOgRiFmG0+M=; b=kaJ89AMSncyUwGECVaVnvLb+AsqzvB4dsB7GYGXkqxGvSx1JcXkNKLDT6R+qGOr5AG AuILf86mXz6nXfyEZeFfdPE+XxSIrEcnRxxFUGSb1RRRpCt3b3Z2ngeBEtR9L5/F4cZ0 w8xHnh41O+0fKWxyuAvVYOZC84LOTt5gTmrWPp92gZOkZ/7ngPK6ek00IddNPJSTpd6i oE2l3v59kfj4BQCr7vDbJl32fnszaqpUFjAkeM0bd4orvJ6p3W08jqQbptD5yIbwyvQU k7CVNBtXu9leOOm1HpAxMwfejq852gSaNo5boBmQiehWcGgx8ttGDzNdKo2vUN9MQQLN hgDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382848; x=1793987648; 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=n8YHAI9iJOxJswDGOjyLG2qY0rvHHGV2vOgRiFmG0+M=; b=XwNSaxD4n3oK9mW4AuATAu6y/JzmO6HwgClLrHJS3Kq/Yh5ICdR6TN4I3nxQTIlr3O Rukql1Zpa8UZvbVeP8UQ8ypNnWkhQ7cpcqlZvFqrw6zJaRal15CdG1AzPaerpFQcF9tB V81HNcpIIpBeah/P36XOPxSaCxOmoMPnwhdTPPJwR8wsZ+M4yi03SnxZwbGK14BUB02y Jq67Kc7/VzuXciPhxbrWoLja0LgpkXt85ov/NjR0/XrnFdb6nuW68MW5sABcyM+jndMX V53KgZe56E8nm9TCKnUcDyUxJIdL0SdTDSWhDAvocMOXuqeMlRZ44VzX3c6wmNZ2l+WF ItIg== X-Gm-Message-State: AFq9FYIIgkyJOr4YTqNK9l3j4t3hD7zcZQNe3HpRVp7nbjFhF0MiA0Rp 28wMLMXTOHW83R02PL6baahOLsbByy6JxMGHMuMAszkrq2kI9JiNTFaFa9iyTs+0ZkgM/oT5Q2F OigY0qaC5vmrQnK10bG/JBPgYefEEkYzhlhUFhrKraI/xakBZgMXD4eeHB+bkdiU60ZiW X-Gm-Gg: AYBFou3PjNH7cpkaCi2skimWDB2g2/8FxQtAGEoh1MhODe8IGmHGZ3XWCChGQcpm7MS e3syQl8uyVcZxn1Xs5kt1tXM2fJ9yylB3JEFtl6SdTdNoK1hEYkhJ+/oIvwS/mRHFhdM/quc5fO 2D7Qy0wi0JhJK6NNbz08yNqw06c2oBDj4aLDROf6NMDR5DBpQYJYNTGzT6MQLbMGK/Vp+rc9aiA fFgvCj7MzTgkJq63l7DfGvM4pmEwndiligei0EP8uNGV1FZ99aGv1Y9nCThkMdlzIU7uJNvkAFO YBsDnMLuRRzDgqcWtR/4SvUdW37iQ+Mu+juy8b6fL8AWxIa8NnvIQDC9g2pTMe2jDouF/nOlgb9 WMr4gpFdsgLBu1tGeJ5FtP4UAhTQSOsRau3FtzZuSm/tJSyWRGtBTSZbSDn2TkKOJ+Z5w4vycyx aIfhY/0FRJT8H2IHQtt82V7NysyZh8DA== X-Received: by 2002:a05:620a:26a0:b0:93f:52c5:a31 with SMTP id af79cd13be357-94421802977mr525440985a.73.1793382848189; Fri, 30 Oct 2026 10:54:08 -0700 (PDT) X-Received: by 2002:a05:620a:26a0:b0:93f:52c5:a31 with SMTP id af79cd13be357-94421802977mr525437585a.73.1793382847702; Fri, 30 Oct 2026 10:54:07 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang Subject: [PATCH v4 01/32] tests/tcg/mips: Remove unused test_utils_32.h Date: Fri, 30 Oct 2026 18:53:23 +0100 Message-ID: <20261030175357.99684-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=KsrYSmWN c=1 sm=1 tr=0 ts=6ae4d9c0 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=ZpdpYltYx_vBUK5n70dp:22 a=mDV3o1hIAAAA:8 a=EUspDBNiAAAA:8 a=FyogFE7hAAAA:8 a=NfTWbHSiv8_zekX3RvgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 a=p2WyBLmlf5vdw_nX_QRo:22 X-Proofpoint-ORIG-GUID: -qT7lppQe7D69g3ctizSonEeO9Tjh9EP X-Proofpoint-GUID: -qT7lppQe7D69g3ctizSonEeO9Tjh9EP X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6I1uRFMxcWvn EECPRf5BDvFE+InU3sgPVz1FXQU5ArKMUOeJywv15NYzk12pUneoSAwA6w2iwLyF9xl0ramVbNr 558k+IMEfuwX+xY3BAPdHCtqsAbhFkGsZ2ZDyBCLuZoLwxq0QLs0HSwBdMs7ka6yEaj1RD3qELP EFg86zcFAXcYQogMXl3u4Ni1UNGQThijtF4QkY2wnizWUP4/xktFrNVSDjO3gmwBxBTFm6XHHx8 vvFTLr4WPCk9kjM4vWIQDAuJe1i6T1jaJyCMuJOQUmU9HGc6M5Osg6gwwMQTCUrbpg+nW7556Kj YfveS8cfhW9KmviHMkNDf5+QxraGzTAvcIaaocBdqz6d00CdjjY5AyjxyD2igEznG0a0KMviwCE vzXivKMHpEOfbxCcigGbHA448MMPXpqU+sxfU+DkXKLZH7gewLjLqZTJtuXD45QOs4VlivXBy0f GFHSHgSolRMicQINdLg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXzo30KK3Tzm1b b3fSbc3z8DEBUT8+fmjtC46ok3BnujrxT/eRBClIWkvGEKSgevYjOBD2GXNMcVthDecmKVpi2vs Li8Qu3ko7LSH2drspE75QiAMq26WGW0= 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 phishscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793382892658158500 The 32-bit test utilities header added in 26b3256392e0 is not included by any test, and check_results_32() is never called. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/include/test_utils_32.h | 78 -------------------------- 1 file changed, 78 deletions(-) delete mode 100644 tests/tcg/mips/include/test_utils_32.h diff --git a/tests/tcg/mips/include/test_utils_32.h b/tests/tcg/mips/includ= e/test_utils_32.h deleted file mode 100644 index c33990c0c544..000000000000 --- a/tests/tcg/mips/include/test_utils_32.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Header file for test utilities - * - * Copyright (C) 2019 Wave Computing, Inc. - * Copyright (C) 2019 Aleksandar Markovic - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -#ifndef TEST_UTILS_32_H -#define TEST_UTILS_32_H - -#include -#include -#include -#include - -#define PRINT_RESULTS 0 - - -static inline int32_t check_results_32(const char *instruction_name, - const uint32_t test_count, - const double elapsed_time, - const uint32_t *b32_result, - const uint32_t *b32_expect) -{ -#if PRINT_RESULTS - uint32_t ii; - printf("\n"); - for (ii =3D 0; ii < test_count; ii++) { - uint64_t a; - memcpy(&a, (b32_result + ii), 8); - if (ii % 8 !=3D 0) { - printf(" 0x%08lxULL,\n", a); - } else { - printf(" 0x%08lxULL, /* %3d */\n", - a, ii); - } - } - printf("\n"); -#endif - uint32_t i; - uint32_t pass_count =3D 0; - uint32_t fail_count =3D 0; - - printf("%s: ", instruction_name); - for (i =3D 0; i < test_count; i++) { - if (b32_result[i] =3D=3D b32_expect[i]) { - pass_count++; - } else { - fail_count++; - } - } - - printf("PASS: %3d FAIL: %3d elapsed time: %5.2f ms\n", - pass_count, fail_count, elapsed_time); - - if (fail_count > 0) { - return -1; - } else { - return 0; - } -} - - -#endif --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382914; cv=none; d=zohomail.com; s=zohoarc; b=NVLZY2L2HG7I6ZJdbWt8NZCt1Mr6vuTluAKxmbg06e97SLzzcxwAc1ZUAAhBhjT4RWR++tnbq03aBWIv8cREoll1424ApChY2/NEfDFaRrJacOfIVIAS7bl+H3yxC2V7iN2kgo3lgmLWi5ngxrRTF4cS3K2mOU6rH4ZacGjLtCc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382914; 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=5/6LQuIKh4sQjftRyWR9OdRPOp7ntI/QvsK+uYDD2eo=; b=DkMrlcoR5HkLWkPimd4hkHji0te4MNmNhDJ9TNNT6Qw38PTRoT1TEJbAm3ta+auwzQLKbHORvbwHy+L5krOQ7oOfpTyn4aamiEQT6HaNzvmj1PJZ14DtZfem1LNuWFvO4DAKRK9TZA4GowzKaQKjtJ9Bb2E1t2190TNGQtM19Mg= 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 1793382914849801.2339278984351; Fri, 30 Oct 2026 10:55:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqoX-0005bG-Im; Fri, 30 Oct 2026 13:54:56 -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 1xMqo3-0005U7-52 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:25 -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 1xMqo0-0007oJ-LH for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:22 -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 69UERnNO1953686 for ; Fri, 30 Oct 2026 17:54:17 GMT Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pmb68-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:17 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-988be118d98so223686241.0 for ; Fri, 30 Oct 2026 10:54:17 -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-48e71a4d3f9sm4789518f8f.4.2026.10.30.10.54.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:14 -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= 5/6LQuIKh4sQjftRyWR9OdRPOp7ntI/QvsK+uYDD2eo=; b=fS401LJovKnzc+8N pzz6BW2/hUGBxo5qyKFOJ3stxeKugqGshyyO3VElsQBmoQzAk762NSZPHhDRhgC0 FUDCQUR/qukhAFe/RQ8UkJF7kGl7M+rmHqh9YJNzjAXZ6+Zz1nnEUF1yLGMFiRRk mZmMTFjttLH6Xoc4TnCAZaDo+loRFqZEDAreQ7o6mHrI/oiq8kVhZ/IZCS97K7Z0 1j14a3QgLAX1VciIgmZfo/SEkzm7G91SQ/b/21TLg4TxlElOBpu2TmgDFf+eo6jb H0SlE4SFDuLMn5YsFljqv6px1QHbfEtQbcrPaROMtZW8UEXcJ6Wx9YLFqSqwKavl +N3Vww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382856; x=1793987656; 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=5/6LQuIKh4sQjftRyWR9OdRPOp7ntI/QvsK+uYDD2eo=; b=F1OoXD8CcTj1ku1/zIDL7o3eb1STN0lDxhNx+Rnu9bYiAU+4uUZJtBRnXjGyCCPDeP dtqKxwAfb5VHXHEtiB/ppo+dvb74vMxchdodNc2ZPr5uv80J1qaLww66/HITHwflm5Dq Edqsx71Qa0ZWfeSOxl7tXfar/0QxCb9Jx6C/7FdKZkt1VSjbFM9H1xNFdQrjz463fJNO 0X39BR3wPndOnwNUqTmFfp7vxpRKCVoKPIyp5//ksuk16KzdZek0U8Z1MV7tDbXAZ2Vn EwvDZGdrBAIjvXVfdJ1RiSAuljzrKKgPsnKJYehx50UKbnvqfRDxjNuSn3RF5Slzf64O PDYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382856; x=1793987656; 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=5/6LQuIKh4sQjftRyWR9OdRPOp7ntI/QvsK+uYDD2eo=; b=A7GMN3OMJwar3C2CYa5innD9V3/fp1xtEmIlMOUFtZS++IPAEda8D+yprFGkyvsW6X 2GRpTUnvIXSGI1qqyI1+ybzvMjBI2+lLIas+e9pJcjtzVAoxbJii2indw9M1HZ5TmMj/ obgiUssfnoqOJmJykHfIJ/3I4eoR1xyIAQAalJgPSi/6M6D0EF/pCGNV/Yrl3weKCyF2 rovDhmn3nxFxU1Hl9UXsgYgRiZbrhnQAmEF2g71iBGqmxESK4EwdDmk1HLlygSZCVmqM e/SeZkRTE4aWotTD86fYhVp8XOzCCloClFc3k7Zbqdtvv9wy6YgOIwK4+3clgajCCNdC l6WA== X-Gm-Message-State: AFq9FYKQfx5Y8lNtMHKtaxbY4FzZHz1lNuMVZvh2O5JXvgAc556Xni2K pzRHQf1TpZVcbbeOCNeH3WZZpKK3O1eQvM/AO536Q3NT1omtAF/X8Xa+xY7lMALfZAHCxaKVBw3 1ZkeVYCsGnKIV/fB9To1o/QpqdNgMRPQfkbJjtVw9TKN/X8+2XOJFlNNdcnPclvPdABFc X-Gm-Gg: AYBFou0TKieoJcl2V92FMNxYf7tVngA4J2JQ+DWbDzGBA6AKJ9UyE3cV1sfT/gvRBT2 35xMHS49pVWzcc+HnVQbTSB9VTrS1V+Fqt2N5FNT+IBQsTfe9Dg6wRJYKuMhuicD3IRRom4ggh1 l7mFt3ITBmGw5z+Tfq19o8WIvN4lC4GvANP9YdM5WY/vEQDar5FsvFe5dkKSp8RX9nzvFnt0OBk 06jfMUWGhfp5Z7Vl1NEkmhIHffuU4gaOUdrrLVNOgNIiyV+PCI1Pxg0KZsNtkETh19I128B9Dhz B+0qQaxm6ee4RwJXaj8SZzyNhS0s1VoH9YAnDlKzKGfOh3ebGWI2QcYhG6BbYB88UWxODiPB48z hjUcCD0H0fxsOQsd2nsQuuPW7X/13Hld+EUkpyEZv/DZkhM9o0BGeqvNKE9ZAbeiHfbRqXjYzPH qWDw/hKrnN/cqKL3ZQWaR2Xu05doDUXw== X-Received: by 2002:a67:e706:0:b0:7c3:2f33:54bb with SMTP id ada2fe7eead31-7d072766b47mr1406135137.28.1793382855920; Fri, 30 Oct 2026 10:54:15 -0700 (PDT) X-Received: by 2002:a67:e706:0:b0:7c3:2f33:54bb with SMTP id ada2fe7eead31-7d072766b47mr1406117137.28.1793382855278; Fri, 30 Oct 2026 10:54:15 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 02/32] tests/tcg/mips: Group DSP acc tests Date: Fri, 30 Oct 2026 18:53:24 +0100 Message-ID: <20261030175357.99684-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX1l/qRUKBkq+8 hPBQlMrb0x2vwFdPFI2HuTmV+q/3YDHS0FH9vj4SnJBKF6wPNVVXKbmgSNIwCQplG5+x2ij2S56 Gcn3Pt5g2YW8iQWbptH+S9R2WeOYu9xF5q6CB6uu+Q8nsUPDHCsh+6lz8i1mD/kSeyZ6UjoqNHr FRnjdn+y6UnuSzGz4RX+0xrDGemjPqdFdX9/iBIfz+eJSINCEaG6hNZw5xoN1DbbQYlw9M2CxHp q03QmuspSdeT+BYIJuvIf8uN2IGrP+IkJ6S2JIwLBt1uYyMh+XG3us2m8lJSOGrJfTIrvvIgRob U1bfecrQcq8f7g+akhteOJHc6pUZewNpZ8CXY2t3ekRgAAV4grktj7yaLrpFK2wzehawQuY384h Dio8pahsVW6HqOR3FczxVP5g2wjz7ksxQVFLr188X7GQ0pszbL+BE44RnIjmy2zIWt/qED1BWZv +NOqhjcHTUQOIxpbwSA== X-Proofpoint-ORIG-GUID: CWDSQsLMMztEBxhJZa_XDAmqZVwM_9wJ X-Proofpoint-GUID: CWDSQsLMMztEBxhJZa_XDAmqZVwM_9wJ X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4d9c9 cx=c_pps a=KB4UBwrhAZV1kjiGHFQexw==: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=kzXELmrAYARPUxPIdzUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXyuFwI5dhFVVk 7Etm9ynng9bnDialEWWCZrl0tsI1tUa5/2KwG6env3sI5yzVtlsf9t7CafNQtlkFCrN6fqOY3Gn IZK5Mfl7bQUdC6g4Te/hQ2U0FzulFho= 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 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793382917283158500 Build the 19 per-opcode acc tests as a single executable, test_dsp_acc.c, to reduce the number of test binaries. Each opcode reports one TAP line. Add test_dsp_runner.h: assert() only counts failures, and RUN_TEST() resets DSPControl and reports each test in TAP. Drop the unused hello-world test. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_runner.h | 26 ++++++ tests/tcg/mipsel/test_dsp_acc.c | 109 ++++++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_extp.c | 1 - tests/tcg/mipsel/test_dsp_r1_extpdp.c | 1 - tests/tcg/mipsel/test_dsp_r1_extpdpv.c | 1 - tests/tcg/mipsel/test_dsp_r1_extpv.c | 1 - tests/tcg/mipsel/test_dsp_r1_extr_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_extr_s_h.c | 1 - tests/tcg/mipsel/test_dsp_r1_extr_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c | 1 - tests/tcg/mipsel/test_dsp_r1_extrv_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_main.c | 6 -- tests/tcg/mipsel/test_dsp_r1_mfhi.c | 1 - tests/tcg/mipsel/test_dsp_r1_mflo.c | 1 - tests/tcg/mipsel/test_dsp_r1_mthi.c | 1 - tests/tcg/mipsel/test_dsp_r1_mthlip.c | 1 - tests/tcg/mipsel/test_dsp_r1_mtlo.c | 1 - tests/tcg/mipsel/test_dsp_r1_shilo.c | 1 - tests/tcg/mipsel/test_dsp_r1_shilov.c | 1 - tests/tcg/mipsel/meson.build | 21 +---- 23 files changed, 136 insertions(+), 45 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_runner.h create mode 100644 tests/tcg/mipsel/test_dsp_acc.c delete mode 100644 tests/tcg/mipsel/test_dsp_r1_main.c diff --git a/tests/tcg/mipsel/test_dsp_runner.h b/tests/tcg/mipsel/test_dsp= _runner.h new file mode 100644 index 000000000000..23ef17428b2e --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_runner.h @@ -0,0 +1,26 @@ +/* + * Helpers to run several DSP ASE tests from the same process: assert() is + * mapped to tap_assert() which only counts failures, and RUN_TEST() repor= ts + * one TAP result per test, after resetting DSPControl. A test calling + * RUN_TEST() must end with "return tap_done();". + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ +#ifndef TEST_DSP_RUNNER_H +#define TEST_DSP_RUNNER_H + +#include "../include/tap.h" + +#undef assert +#define assert(cond) tap_assert(cond) + +#define RUN_TEST(fn) \ + do { \ + int ret_; \ + tap_assert_failures =3D 0; \ + __asm__ volatile("wrdsp $zero, 0x3f\n\t"); \ + ret_ =3D fn(); \ + tap_report(!(ret_ || tap_assert_failures), "%s", #fn); \ + } while (0) + +#endif diff --git a/tests/tcg/mipsel/test_dsp_acc.c b/tests/tcg/mipsel/test_dsp_ac= c.c new file mode 100644 index 000000000000..fe5abb5050b3 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_acc.c @@ -0,0 +1,109 @@ +/* + * MIPS DSP ASE tests: Accumulator access and Extract instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_extp +#include "test_dsp_r1_extp.c" +#undef main + +#define main test_dsp_r1_extpdp +#include "test_dsp_r1_extpdp.c" +#undef main + +#define main test_dsp_r1_extpdpv +#include "test_dsp_r1_extpdpv.c" +#undef main + +#define main test_dsp_r1_extpv +#include "test_dsp_r1_extpv.c" +#undef main + +#define main test_dsp_r1_extr_r_w +#include "test_dsp_r1_extr_r_w.c" +#undef main + +#define main test_dsp_r1_extr_rs_w +#include "test_dsp_r1_extr_rs_w.c" +#undef main + +#define main test_dsp_r1_extr_s_h +#include "test_dsp_r1_extr_s_h.c" +#undef main + +#define main test_dsp_r1_extr_w +#include "test_dsp_r1_extr_w.c" +#undef main + +#define main test_dsp_r1_extrv_r_w +#include "test_dsp_r1_extrv_r_w.c" +#undef main + +#define main test_dsp_r1_extrv_rs_w +#include "test_dsp_r1_extrv_rs_w.c" +#undef main + +#define main test_dsp_r1_extrv_s_h +#include "test_dsp_r1_extrv_s_h.c" +#undef main + +#define main test_dsp_r1_extrv_w +#include "test_dsp_r1_extrv_w.c" +#undef main + +#define main test_dsp_r1_mfhi +#include "test_dsp_r1_mfhi.c" +#undef main + +#define main test_dsp_r1_mflo +#include "test_dsp_r1_mflo.c" +#undef main + +#define main test_dsp_r1_mthi +#include "test_dsp_r1_mthi.c" +#undef main + +#define main test_dsp_r1_mthlip +#include "test_dsp_r1_mthlip.c" +#undef main + +#define main test_dsp_r1_mtlo +#include "test_dsp_r1_mtlo.c" +#undef main + +#define main test_dsp_r1_shilo +#include "test_dsp_r1_shilo.c" +#undef main + +#define main test_dsp_r1_shilov +#include "test_dsp_r1_shilov.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_extp); + RUN_TEST(test_dsp_r1_extpdp); + RUN_TEST(test_dsp_r1_extpdpv); + RUN_TEST(test_dsp_r1_extpv); + RUN_TEST(test_dsp_r1_extr_r_w); + RUN_TEST(test_dsp_r1_extr_rs_w); + RUN_TEST(test_dsp_r1_extr_s_h); + RUN_TEST(test_dsp_r1_extr_w); + RUN_TEST(test_dsp_r1_extrv_r_w); + RUN_TEST(test_dsp_r1_extrv_rs_w); + RUN_TEST(test_dsp_r1_extrv_s_h); + RUN_TEST(test_dsp_r1_extrv_w); + RUN_TEST(test_dsp_r1_mfhi); + RUN_TEST(test_dsp_r1_mflo); + RUN_TEST(test_dsp_r1_mthi); + RUN_TEST(test_dsp_r1_mthlip); + RUN_TEST(test_dsp_r1_mtlo); + RUN_TEST(test_dsp_r1_shilo); + RUN_TEST(test_dsp_r1_shilov); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_extp.c b/tests/tcg/mipsel/test_ds= p_r1_extp.c index b18bdb34c872..5f9e81f51e97 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extp.c +++ b/tests/tcg/mipsel/test_dsp_r1_extp.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extpdp.c b/tests/tcg/mipsel/test_= dsp_r1_extpdp.c index 79ee16e8b87c..6dec2bb31617 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extpdp.c +++ b/tests/tcg/mipsel/test_dsp_r1_extpdp.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extpdpv.c b/tests/tcg/mipsel/test= _dsp_r1_extpdpv.c index f5774eed3cae..80c5a7fa3ee8 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extpdpv.c +++ b/tests/tcg/mipsel/test_dsp_r1_extpdpv.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extpv.c b/tests/tcg/mipsel/test_d= sp_r1_extpv.c index 401b94afadfc..d575750b7ffd 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extpv.c +++ b/tests/tcg/mipsel/test_dsp_r1_extpv.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extr_r_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_extr_r_w.c index 489c1931b475..d3244b730297 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extr_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extr_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c b/tests/tcg/mipsel/te= st_dsp_r1_extr_rs_w.c index f9d2ed646fa3..6e899ccd4c4b 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extr_s_h.c b/tests/tcg/mipsel/tes= t_dsp_r1_extr_s_h.c index 9bc2a63cc2d1..aa36b4e9f31c 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extr_s_h.c +++ b/tests/tcg/mipsel/test_dsp_r1_extr_s_h.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extr_w.c b/tests/tcg/mipsel/test_= dsp_r1_extr_w.c index cf926146d54c..f82e38e34fb7 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extr_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extr_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c b/tests/tcg/mipsel/te= st_dsp_r1_extrv_r_w.c index 2403b3afe40f..6af471076904 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c b/tests/tcg/mipsel/t= est_dsp_r1_extrv_rs_w.c index 10c182a54b23..9a4f5fac7a59 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c b/tests/tcg/mipsel/te= st_dsp_r1_extrv_s_h.c index feac3e2e334a..d0747331f9ed 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c +++ b/tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_extrv_w.c b/tests/tcg/mipsel/test= _dsp_r1_extrv_w.c index 9e8b238a04d4..b1caee3ff085 100644 --- a/tests/tcg/mipsel/test_dsp_r1_extrv_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_extrv_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_main.c b/tests/tcg/mipsel/test_ds= p_r1_main.c deleted file mode 100644 index b296b20c9254..000000000000 --- a/tests/tcg/mipsel/test_dsp_r1_main.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -int main() -{ - printf("hello world\n"); -} diff --git a/tests/tcg/mipsel/test_dsp_r1_mfhi.c b/tests/tcg/mipsel/test_ds= p_r1_mfhi.c index 43a80669d1ea..5d2233d6eea5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mfhi.c +++ b/tests/tcg/mipsel/test_dsp_r1_mfhi.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mflo.c b/tests/tcg/mipsel/test_ds= p_r1_mflo.c index caeafdb05ce4..3e4046c57ffe 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mflo.c +++ b/tests/tcg/mipsel/test_dsp_r1_mflo.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mthi.c b/tests/tcg/mipsel/test_ds= p_r1_mthi.c index 43a80669d1ea..5d2233d6eea5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mthi.c +++ b/tests/tcg/mipsel/test_dsp_r1_mthi.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mthlip.c b/tests/tcg/mipsel/test_= dsp_r1_mthlip.c index 85f94d8450ea..9c96751c8cbe 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mthlip.c +++ b/tests/tcg/mipsel/test_dsp_r1_mthlip.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mtlo.c b/tests/tcg/mipsel/test_ds= p_r1_mtlo.c index caeafdb05ce4..3e4046c57ffe 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mtlo.c +++ b/tests/tcg/mipsel/test_dsp_r1_mtlo.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shilo.c b/tests/tcg/mipsel/test_d= sp_r1_shilo.c index ce8ebc69c2ac..e1b3292c3d42 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shilo.c +++ b/tests/tcg/mipsel/test_dsp_r1_shilo.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shilov.c b/tests/tcg/mipsel/test_= dsp_r1_shilov.c index e1d6cea4b6de..18e3ee1f213e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shilov.c +++ b/tests/tcg/mipsel/test_dsp_r1_shilov.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index c9e869b000f4..77f210a47a70 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -4,6 +4,7 @@ tests =3D [] tests +=3D tcg_tests['multiarch-linux-user']['tests'] =20 tests_dsp =3D [ + 'test_dsp_acc.c', 'test_dsp_r1_absq_s_ph.c', 'test_dsp_r1_absq_s_w.c', 'test_dsp_r1_addq_ph.c', @@ -32,37 +33,19 @@ tests_dsp =3D [ 'test_dsp_r1_dpsq_sa_l_w.c', 'test_dsp_r1_dpsu_h_qbl.c', 'test_dsp_r1_dpsu_h_qbr.c', - 'test_dsp_r1_extp.c', - 'test_dsp_r1_extpdp.c', - 'test_dsp_r1_extpdpv.c', - 'test_dsp_r1_extpv.c', - 'test_dsp_r1_extr_r_w.c', - 'test_dsp_r1_extr_rs_w.c', - 'test_dsp_r1_extr_s_h.c', - 'test_dsp_r1_extr_w.c', - 'test_dsp_r1_extrv_r_w.c', - 'test_dsp_r1_extrv_rs_w.c', - 'test_dsp_r1_extrv_s_h.c', - 'test_dsp_r1_extrv_w.c', 'test_dsp_r1_insv.c', 'test_dsp_r1_lbux.c', 'test_dsp_r1_lhx.c', 'test_dsp_r1_lwx.c', 'test_dsp_r1_madd.c', 'test_dsp_r1_maddu.c', - 'test_dsp_r1_main.c', 'test_dsp_r1_maq_s_w_phl.c', 'test_dsp_r1_maq_s_w_phr.c', 'test_dsp_r1_maq_sa_w_phl.c', 'test_dsp_r1_maq_sa_w_phr.c', - 'test_dsp_r1_mfhi.c', - 'test_dsp_r1_mflo.c', 'test_dsp_r1_modsub.c', 'test_dsp_r1_msub.c', 'test_dsp_r1_msubu.c', - 'test_dsp_r1_mthi.c', - 'test_dsp_r1_mthlip.c', - 'test_dsp_r1_mtlo.c', 'test_dsp_r1_muleq_s_w_phl.c', 'test_dsp_r1_muleq_s_w_phr.c', 'test_dsp_r1_muleu_s_ph_qbl.c', @@ -93,8 +76,6 @@ tests_dsp =3D [ 'test_dsp_r1_repl_qb.c', 'test_dsp_r1_replv_ph.c', 'test_dsp_r1_replv_qb.c', - 'test_dsp_r1_shilo.c', - 'test_dsp_r1_shilov.c', 'test_dsp_r1_shll_ph.c', 'test_dsp_r1_shll_qb.c', 'test_dsp_r1_shll_s_ph.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382943; cv=none; d=zohomail.com; s=zohoarc; b=U5xv9vny7RFrylkd34prwO7jY/pRkhseEBj3q28TJtvO9I3eRx24ELiqkzHhL/P/ItInP9g9oOxo5S77GrxPFOxh6DCXVNGt2P6oBNbphgQh10Z/fFWyrqRjSp2n+9YdLC79jUNPbfSBuWIg3o/o3WYZv5tdPEhSIXF+muuBImQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382943; 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=OA+hj8FOtL9V8x3Yl7yoEXZsgekfgXDFiSfCKsX9tBU=; b=CFcLXOs0tVYGbY+2wqmV5SokmV7pDUuyQkD7X8JG4jnCIgyQPJYuNboZ6jFep53qvRjU6SYpg5Y9Ze7bGNRrvLT4JaqsjIfPjMZOkTXhII1XmGn0NSSfMtBnXvVswQHdbyyC1ioGLzHfyuhQWH0Z7Wf5x/qKdDYhVpDc2zcgvsI= 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 1793382943729352.3889829513912; Fri, 30 Oct 2026 10:55:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqoq-0005jC-Qp; Fri, 30 Oct 2026 13:55:14 -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 1xMqo9-0005Vj-6h for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:31 -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 1xMqo5-0007oa-FF for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:27 -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 69UERKvB2495308 for ; Fri, 30 Oct 2026 17:54:24 GMT Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6p4btj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:24 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7bf5c02f7a3so224181137.2 for ; Fri, 30 Oct 2026 10:54:24 -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-48e71b80ecbsm4545852f8f.35.2026.10.30.10.54.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:21 -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= OA+hj8FOtL9V8x3Yl7yoEXZsgekfgXDFiSfCKsX9tBU=; b=mquF3fB1oniaEYCk SnI5T1lj6lZLHMaMq373PYQcYdxrL5bWd8SZZzfvr5wUQ7fnm07u3KaCE/aOBF3q xtnVpsD8XzIfFJ+J07UnyUrNszGbPXJMbqoLWVXHuzkm9LtLzaQULbETey2Wok6d BWxswvaHl/OlYNhk2A4IC0h32v6wul6Ix/f18Teqr8Zje0VLp28DpOVQdOuF/Fdd Dq6lX4J+zQI9un1Uf/EncWmaQ7byf+9wLJeVH2u92DyVq9x4LtrI3jSlL79VO+sl dbt3sMnq6Rc20QMGOXx7jKWalUvFLzlgM8ayv9RFez8CafLC8nN8HB/wiU/uTq7F nBYhPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382864; x=1793987664; 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=OA+hj8FOtL9V8x3Yl7yoEXZsgekfgXDFiSfCKsX9tBU=; b=VpAvxeHBjmp0Sr6gjqxcwzH4zpnkXc+JH6WPffRMwmeuWiIxmRWanOU5WzZaUKkHq5 O3CAOzMv4Ouz0G1myUedR8D/r3Yo47ohCeR55b+uS0jZixx7i1kAhlcOYZyQwY4bHrpq UR6Dq7Y3s3RWo4Wi2D6mhFZe4R2DUIQJcLkR6dgVtr1m0XQ4f1oKHyTD357BtmMLNjva 0VEYqvOhYl4iqhf5XNM8Qwo8NHkR1+Vy/oFeGr2kAtmJz4r01wiGNQvqtga60vdKuClb VbdH3X09TC2x0T48D7ASHLN0Rt2lj73HrvmH3RYd73uwNdsdQ7DhJ+r+OJ0QcIVegMWW XsGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382864; x=1793987664; 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=OA+hj8FOtL9V8x3Yl7yoEXZsgekfgXDFiSfCKsX9tBU=; b=b5gAKPAJLh6yLgkgOrzxg6qdDC9gN4v+6JFdc27Wd9ml8AnawjsbcIdOYk/nCSvz8A 1n69ac3VarKuRB5vJjrtsrGIj55u35IxWUm1vMRFKcAsHd5eX4DPmCm5oURiK8rdE19g LhwwSItBKIeLGLZt4cWSts0UWf1sca36+XPTktZl74NML3/NM7JAGNmMDxIumhwEty00 PlwnTAlHwqDifdS0EwUvWsZVGb8KnZTkn88kAxOqVIy+EKa/3civvpnafpPOaw4z1ATu EybGkPdnzvBqH43OjEBTnYYGIOPFVfLyTx+sVD8S4GA6XheqOmsS7XChz//8PY2yXf8P SLFg== X-Gm-Message-State: AFq9FYIBZyZI+1lB3JtsX1llYDoeEWrsW1sVQVBrzroA7jBRDiAjt8mN +1qEFwh5EemUF7lqv/CtaEdoNq4WF4Em2M+KV2mx6uptekYerd5d3A/qf+KVWT+U9ixTN2WWyZb MOnqbcqOvwTUCLqYM6a9VZ8gV5WMiYgp+vNxHY0ZXV7nJW+PZXQRUMJ9FGyZctN+021da X-Gm-Gg: AYBFou2gMv39x03ES4SArqRhFF2h6rkBnuEig3EeW3iPlG2bmqyay+QWVecz1FD/PsP 4somIlrioVQa2M13hfcJPZx6c98x2hp6F1zJYade1SMFuvL8oM8IDm/sOdwmVjemENG0QEn5kPz 5IL7fkvbls0Lc4B4fIgmHIAHpb//T+MhTTvIgEBA7YLl4e4Rj8e3KBrV4rswQGUwORvZ/6CQNo6 KXVLaH5QkVKK17nSiPIT9AkD79GUNmmZhjx9/X+izApXU7Zf7JBX6xK4Bj2GJGsAK+efpq/Rm0f 1xrntSlEv0PpNXlQByH4AYeH3Vv+rwiDXgAlzwBKl1rf97rezbnATrKedfIZe8GDVYrIZFvjk+A KlwnWNCWCZJRAXtEhZznBPLii8PLjNJpRhxpNVwicMQkpg1BaNwG2sta3aEGGWXIGxtKV8lebT5 N1DANg9iYU/tJgSL/s7khF2AWQZ80lAA== X-Received: by 2002:a05:6102:509e:b0:7a7:366c:92b1 with SMTP id ada2fe7eead31-7d072605b45mr1413277137.23.1793382863421; Fri, 30 Oct 2026 10:54:23 -0700 (PDT) X-Received: by 2002:a05:6102:509e:b0:7a7:366c:92b1 with SMTP id ada2fe7eead31-7d072605b45mr1413260137.23.1793382862731; Fri, 30 Oct 2026 10:54:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 03/32] tests/tcg/mips: Group DSP arith tests Date: Fri, 30 Oct 2026 18:53:25 +0100 Message-ID: <20261030175357.99684-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXyXFMMrQSKyXg tE1Hcpzn1GYaoByNtfL2y5jEcmysGUoje6D+T9BO667ru1Xk4eNo7JRz1Iim7DRv4hfyHzeztuG ZsxqPoAmj7LjPo97bANk2gm5KgwnWT4bIFduu8po1uzgwpCxIkqSaVTprSMr17Exs33BHf/hAoQ kkepb4E8rx5YaooBrg72keyT/UmtHzVhaFjB6Rz6RIKAAyuARCOPzHeAxlBp2aW+4ceHGDEamOC 47aBP8GcSouevZqadFAZvSWnsL5NaWTNS91BoiPV43tnxbiN+YJnsLDdXzi59WCnDcGfRacad/U t86qggwyqXPQsMm53XyBB0sTShHMpoymQmWZRqSMCWe02vqjg5sUYaBXC1bcMLIDQ9nFJeHuxad l+cYhD8sAjESybeIPMqB4R3R5x47UD20XOPQYDxAPAkLv6PpVaB4/zFmU0V9QH/zxMlmbGzQYQA nVCBHPYGmTf4oSv8uOQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX+8XufHp3AJq6 b+Kc57jdlUKJQpCpkx57DB4SjjWi20SXV0GTtmg5Jo+NUS/VsRdECGkWTvlk+Dd9Mb4p6vLZls7 Gy5X21xxM/FtzbQDuCrQVU7Aov4kC6M= X-Proofpoint-ORIG-GUID: gGxQNMgSEnqlr6LoJstwFScQ41ldbpFD X-Proofpoint-GUID: gGxQNMgSEnqlr6LoJstwFScQ41ldbpFD X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4d9d0 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==: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=QcVZmDX5zYVA5dVMsrUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n: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-2610300071 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: 1793382946526154100 Build the 33 per-opcode arith tests as a single executable, test_dsp_arith.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_arith.c | 179 ++++++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_absq_s_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_addq_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_addq_s_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_addsc.c | 1 - tests/tcg/mipsel/test_dsp_r1_addu_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_addwc.c | 1 - tests/tcg/mipsel/test_dsp_r1_modsub.c | 1 - tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_subq_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_subq_s_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_subu_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_addqh_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_addqh_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_addu_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_adduh_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_subqh_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_subqh_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_subu_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_subuh_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c | 1 - tests/tcg/mipsel/meson.build | 34 +--- 35 files changed, 180 insertions(+), 66 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_arith.c diff --git a/tests/tcg/mipsel/test_dsp_arith.c b/tests/tcg/mipsel/test_dsp_= arith.c new file mode 100644 index 000000000000..77f7f0600367 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_arith.c @@ -0,0 +1,179 @@ +/* + * MIPS DSP ASE tests: Add, Subtract and Absolute value instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_absq_s_ph +#include "test_dsp_r1_absq_s_ph.c" +#undef main + +#define main test_dsp_r1_absq_s_w +#include "test_dsp_r1_absq_s_w.c" +#undef main + +#define main test_dsp_r1_addq_ph +#include "test_dsp_r1_addq_ph.c" +#undef main + +#define main test_dsp_r1_addq_s_ph +#include "test_dsp_r1_addq_s_ph.c" +#undef main + +#define main test_dsp_r1_addq_s_w +#include "test_dsp_r1_addq_s_w.c" +#undef main + +#define main test_dsp_r1_addsc +#include "test_dsp_r1_addsc.c" +#undef main + +#define main test_dsp_r1_addu_qb +#include "test_dsp_r1_addu_qb.c" +#undef main + +#define main test_dsp_r1_addu_s_qb +#include "test_dsp_r1_addu_s_qb.c" +#undef main + +#define main test_dsp_r1_addwc +#include "test_dsp_r1_addwc.c" +#undef main + +#define main test_dsp_r1_modsub +#include "test_dsp_r1_modsub.c" +#undef main + +#define main test_dsp_r1_raddu_w_qb +#include "test_dsp_r1_raddu_w_qb.c" +#undef main + +#define main test_dsp_r1_subq_ph +#include "test_dsp_r1_subq_ph.c" +#undef main + +#define main test_dsp_r1_subq_s_ph +#include "test_dsp_r1_subq_s_ph.c" +#undef main + +#define main test_dsp_r1_subq_s_w +#include "test_dsp_r1_subq_s_w.c" +#undef main + +#define main test_dsp_r1_subu_qb +#include "test_dsp_r1_subu_qb.c" +#undef main + +#define main test_dsp_r1_subu_s_qb +#include "test_dsp_r1_subu_s_qb.c" +#undef main + +#define main test_dsp_r2_absq_s_qb +#include "test_dsp_r2_absq_s_qb.c" +#undef main + +#define main test_dsp_r2_addqh_ph +#include "test_dsp_r2_addqh_ph.c" +#undef main + +#define main test_dsp_r2_addqh_r_ph +#include "test_dsp_r2_addqh_r_ph.c" +#undef main + +#define main test_dsp_r2_addqh_r_w +#include "test_dsp_r2_addqh_r_w.c" +#undef main + +#define main test_dsp_r2_addqh_w +#include "test_dsp_r2_addqh_w.c" +#undef main + +#define main test_dsp_r2_addu_ph +#include "test_dsp_r2_addu_ph.c" +#undef main + +#define main test_dsp_r2_addu_s_ph +#include "test_dsp_r2_addu_s_ph.c" +#undef main + +#define main test_dsp_r2_adduh_qb +#include "test_dsp_r2_adduh_qb.c" +#undef main + +#define main test_dsp_r2_adduh_r_qb +#include "test_dsp_r2_adduh_r_qb.c" +#undef main + +#define main test_dsp_r2_subqh_ph +#include "test_dsp_r2_subqh_ph.c" +#undef main + +#define main test_dsp_r2_subqh_r_ph +#include "test_dsp_r2_subqh_r_ph.c" +#undef main + +#define main test_dsp_r2_subqh_r_w +#include "test_dsp_r2_subqh_r_w.c" +#undef main + +#define main test_dsp_r2_subqh_w +#include "test_dsp_r2_subqh_w.c" +#undef main + +#define main test_dsp_r2_subu_ph +#include "test_dsp_r2_subu_ph.c" +#undef main + +#define main test_dsp_r2_subu_s_ph +#include "test_dsp_r2_subu_s_ph.c" +#undef main + +#define main test_dsp_r2_subuh_qb +#include "test_dsp_r2_subuh_qb.c" +#undef main + +#define main test_dsp_r2_subuh_r_qb +#include "test_dsp_r2_subuh_r_qb.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_absq_s_ph); + RUN_TEST(test_dsp_r1_absq_s_w); + RUN_TEST(test_dsp_r1_addq_ph); + RUN_TEST(test_dsp_r1_addq_s_ph); + RUN_TEST(test_dsp_r1_addq_s_w); + RUN_TEST(test_dsp_r1_addsc); + RUN_TEST(test_dsp_r1_addu_qb); + RUN_TEST(test_dsp_r1_addu_s_qb); + RUN_TEST(test_dsp_r1_addwc); + RUN_TEST(test_dsp_r1_modsub); + RUN_TEST(test_dsp_r1_raddu_w_qb); + RUN_TEST(test_dsp_r1_subq_ph); + RUN_TEST(test_dsp_r1_subq_s_ph); + RUN_TEST(test_dsp_r1_subq_s_w); + RUN_TEST(test_dsp_r1_subu_qb); + RUN_TEST(test_dsp_r1_subu_s_qb); + RUN_TEST(test_dsp_r2_absq_s_qb); + RUN_TEST(test_dsp_r2_addqh_ph); + RUN_TEST(test_dsp_r2_addqh_r_ph); + RUN_TEST(test_dsp_r2_addqh_r_w); + RUN_TEST(test_dsp_r2_addqh_w); + RUN_TEST(test_dsp_r2_addu_ph); + RUN_TEST(test_dsp_r2_addu_s_ph); + RUN_TEST(test_dsp_r2_adduh_qb); + RUN_TEST(test_dsp_r2_adduh_r_qb); + RUN_TEST(test_dsp_r2_subqh_ph); + RUN_TEST(test_dsp_r2_subqh_r_ph); + RUN_TEST(test_dsp_r2_subqh_r_w); + RUN_TEST(test_dsp_r2_subqh_w); + RUN_TEST(test_dsp_r2_subu_ph); + RUN_TEST(test_dsp_r2_subu_s_ph); + RUN_TEST(test_dsp_r2_subuh_qb); + RUN_TEST(test_dsp_r2_subuh_r_qb); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_absq_s_ph.c index aa8411202e20..ba32ddeeb498 100644 --- a/tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 =20 int main() diff --git a/tests/tcg/mipsel/test_dsp_r1_absq_s_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_absq_s_w.c index 3f52a48039cd..699f1adf967e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_absq_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_absq_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addq_ph.c b/tests/tcg/mipsel/test= _dsp_r1_addq_ph.c index 96a549637b41..4bb955a9565d 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addq_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_addq_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_addq_s_ph.c index 5f865f6cffd5..47b1c19e77d9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addq_s_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_addq_s_w.c index 1e13acf68fb9..bb3cbf836aa3 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addq_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_addq_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 =20 int main() diff --git a/tests/tcg/mipsel/test_dsp_r1_addsc.c b/tests/tcg/mipsel/test_d= sp_r1_addsc.c index ace749f667c4..f348a081e76e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addsc.c +++ b/tests/tcg/mipsel/test_dsp_r1_addsc.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addu_qb.c b/tests/tcg/mipsel/test= _dsp_r1_addu_qb.c index 23ba2e90d1c9..b9c1cca392c6 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addu_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_addu_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c b/tests/tcg/mipsel/te= st_dsp_r1_addu_s_qb.c index fe7fd3e6aa2d..4c2fcb9aedc9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_addwc.c b/tests/tcg/mipsel/test_d= sp_r1_addwc.c index 8a8d81fab4ca..71f9cf49c9e7 100644 --- a/tests/tcg/mipsel/test_dsp_r1_addwc.c +++ b/tests/tcg/mipsel/test_dsp_r1_addwc.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_modsub.c b/tests/tcg/mipsel/test_= dsp_r1_modsub.c index c294eebb519d..05278a2323cc 100644 --- a/tests/tcg/mipsel/test_dsp_r1_modsub.c +++ b/tests/tcg/mipsel/test_dsp_r1_modsub.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c b/tests/tcg/mipsel/t= est_dsp_r1_raddu_w_qb.c index 77a983c0d20f..d131bd6ca7f3 100644 --- a/tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_subq_ph.c b/tests/tcg/mipsel/test= _dsp_r1_subq_ph.c index fdd7b38b647e..19cc84d9fd17 100644 --- a/tests/tcg/mipsel/test_dsp_r1_subq_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_subq_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_subq_s_ph.c index 64c89ebd5114..08742e926dea 100644 --- a/tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_subq_s_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_subq_s_w.c index 9d456a90f417..9844b250d9d2 100644 --- a/tests/tcg/mipsel/test_dsp_r1_subq_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_subq_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_subu_qb.c b/tests/tcg/mipsel/test= _dsp_r1_subu_qb.c index 420909615526..2ec61e819f02 100644 --- a/tests/tcg/mipsel/test_dsp_r1_subu_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_subu_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c b/tests/tcg/mipsel/te= st_dsp_r1_subu_s_qb.c index 3d650533d171..2ce247cd7a86 100644 --- a/tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c b/tests/tcg/mipsel/te= st_dsp_r2_absq_s_qb.c index af4683f30475..9944cc18f075 100644 --- a/tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addqh_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_addqh_ph.c index 921f0eaf33c7..82827f33f6e4 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addqh_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_addqh_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c b/tests/tcg/mipsel/t= est_dsp_r2_addqh_r_ph.c index 213ba3725006..064e2bbda707 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c b/tests/tcg/mipsel/te= st_dsp_r2_addqh_r_w.c index 75a75c50f32d..867fe0bc7f05 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addqh_w.c b/tests/tcg/mipsel/test= _dsp_r2_addqh_w.c index de6926ebbb72..2539e4c178ec 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addqh_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_addqh_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addu_ph.c b/tests/tcg/mipsel/test= _dsp_r2_addu_ph.c index 1d7a25a2a773..a547341c8b58 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addu_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_addu_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r2_addu_s_ph.c index 979651bfc9ac..d47faece052e 100644 --- a/tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_adduh_qb.c b/tests/tcg/mipsel/tes= t_dsp_r2_adduh_qb.c index a1f5d631b52e..108a348456eb 100644 --- a/tests/tcg/mipsel/test_dsp_r2_adduh_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_adduh_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c b/tests/tcg/mipsel/t= est_dsp_r2_adduh_r_qb.c index 81e98c190d2b..892513a4af7c 100644 --- a/tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subqh_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_subqh_ph.c index dbc096734ceb..64c754777838 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subqh_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_subqh_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c b/tests/tcg/mipsel/t= est_dsp_r2_subqh_r_ph.c index 24ef0f1aeb91..717c3931e4df 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c b/tests/tcg/mipsel/te= st_dsp_r2_subqh_r_w.c index d460f8630fae..3d20a87b5a94 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subqh_w.c b/tests/tcg/mipsel/test= _dsp_r2_subqh_w.c index 42be3deb80a3..9d41911233c2 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subqh_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_subqh_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subu_ph.c b/tests/tcg/mipsel/test= _dsp_r2_subu_ph.c index 0d39a017c79d..702eb141d833 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subu_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_subu_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r2_subu_s_ph.c index 8e4da4f3e544..86afcdc0d660 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subuh_qb.c b/tests/tcg/mipsel/tes= t_dsp_r2_subuh_qb.c index 92cfc764b8c9..ae9ea3f72a36 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subuh_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_subuh_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c b/tests/tcg/mipsel/t= est_dsp_r2_subuh_r_qb.c index dac81d47db60..fc90b9cce0e8 100644 --- a/tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 77f210a47a70..e7e576ad6c19 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -5,15 +5,7 @@ tests +=3D tcg_tests['multiarch-linux-user']['tests'] =20 tests_dsp =3D [ 'test_dsp_acc.c', - 'test_dsp_r1_absq_s_ph.c', - 'test_dsp_r1_absq_s_w.c', - 'test_dsp_r1_addq_ph.c', - 'test_dsp_r1_addq_s_ph.c', - 'test_dsp_r1_addq_s_w.c', - 'test_dsp_r1_addsc.c', - 'test_dsp_r1_addu_qb.c', - 'test_dsp_r1_addu_s_qb.c', - 'test_dsp_r1_addwc.c', + 'test_dsp_arith.c', 'test_dsp_r1_bitrev.c', 'test_dsp_r1_bposge32.c', 'test_dsp_r1_cmp_eq_ph.c', @@ -43,7 +35,6 @@ tests_dsp =3D [ 'test_dsp_r1_maq_s_w_phr.c', 'test_dsp_r1_maq_sa_w_phl.c', 'test_dsp_r1_maq_sa_w_phr.c', - 'test_dsp_r1_modsub.c', 'test_dsp_r1_msub.c', 'test_dsp_r1_msubu.c', 'test_dsp_r1_muleq_s_w_phl.c', @@ -70,7 +61,6 @@ tests_dsp =3D [ 'test_dsp_r1_precrq_qb_ph.c', 'test_dsp_r1_precrq_rs_ph_w.c', 'test_dsp_r1_precrqu_s_qb_ph.c', - 'test_dsp_r1_raddu_w_qb.c', 'test_dsp_r1_rddsp.c', 'test_dsp_r1_repl_ph.c', 'test_dsp_r1_repl_qb.c', @@ -92,21 +82,7 @@ tests_dsp =3D [ 'test_dsp_r1_shrav_r_w.c', 'test_dsp_r1_shrl_qb.c', 'test_dsp_r1_shrlv_qb.c', - 'test_dsp_r1_subq_ph.c', - 'test_dsp_r1_subq_s_ph.c', - 'test_dsp_r1_subq_s_w.c', - 'test_dsp_r1_subu_qb.c', - 'test_dsp_r1_subu_s_qb.c', 'test_dsp_r1_wrdsp.c', - 'test_dsp_r2_absq_s_qb.c', - 'test_dsp_r2_addqh_ph.c', - 'test_dsp_r2_addqh_r_ph.c', - 'test_dsp_r2_addqh_r_w.c', - 'test_dsp_r2_addqh_w.c', - 'test_dsp_r2_addu_ph.c', - 'test_dsp_r2_addu_s_ph.c', - 'test_dsp_r2_adduh_qb.c', - 'test_dsp_r2_adduh_r_qb.c', 'test_dsp_r2_append.c', 'test_dsp_r2_balign.c', 'test_dsp_r2_cmpgdu_eq_qb.c', @@ -137,14 +113,6 @@ tests_dsp =3D [ 'test_dsp_r2_shrav_r_qb.c', 'test_dsp_r2_shrl_ph.c', 'test_dsp_r2_shrlv_ph.c', - 'test_dsp_r2_subqh_ph.c', - 'test_dsp_r2_subqh_r_ph.c', - 'test_dsp_r2_subqh_r_w.c', - 'test_dsp_r2_subqh_w.c', - 'test_dsp_r2_subu_ph.c', - 'test_dsp_r2_subu_s_ph.c', - 'test_dsp_r2_subuh_qb.c', - 'test_dsp_r2_subuh_r_qb.c', ] =20 foreach src: tests_dsp --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382967; cv=none; d=zohomail.com; s=zohoarc; b=eILfyDG/qdClt6hqikOHsVrbubv6tZjvAAwXvwLxKlnE8E+fykEpd+qbq8dER3XxGyz1eqw66nPZysce3E6QeoNf7g2LEwc44PpVPNK/R+ZaWc/gmtEhDrM7IbGBCLAuMGQ3JUtRnXnyMmmDlQvYIAecxEN4dFHG4o2PM6P4u9c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382967; 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=HM6vi2lDOXYcS+gRuUlUqXd4T0sR6PkiPD61VsQgo0k=; b=DYRf5SxdByduOtNXp+VLgm27YmVWf8gCT9OwJRg+GkThFcoK/2nqETbEGSBea/IAIPolGCc5Mt/cnpgwDesj1gRVf8IjvnJSIKFVmRDM4vkuMxpZm7spvxxE8khJU93t6XDMnf0gntiFdFBsndfzzs8PbHqh/Ji7dZGvI9vEh1k= 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 1793382967583583.9431865701578; Fri, 30 Oct 2026 10:56:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpB-000605-O0; Fri, 30 Oct 2026 13:55:37 -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 1xMqoE-0005WN-Vr for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:41 -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 1xMqoC-0007pC-Tc for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:34 -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 69UERBuA2494578 for ; Fri, 30 Oct 2026 17:54:32 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 4hme6p4bu4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:31 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f32050e72so249149485a.1 for ; Fri, 30 Oct 2026 10:54:31 -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-4abf5b27e46sm116749595e9.3.2026.10.30.10.54.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:29 -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= HM6vi2lDOXYcS+gRuUlUqXd4T0sR6PkiPD61VsQgo0k=; b=dbxttDm0F8/3Bqrk E8eTPdIlxARFeL3RfVmGVYqgIDeGURNA6XuOlKYKl0ws/CRQYGhq5R3dSOuwwU1A TeFADyx9Km3V14Tb9QoLnVZbqkCbvZIb28otLY36i+f6TFWOhwFnJpYqwoAo/FEa fXSmQurIgqWvUvAEo2VgDHXLDveReJDafpjLgnS3qxfm2Dds2QXpP7rI5A/e5cea BmGMuZ49FV/67nZCy0qGfL1FRwGm7sRIdJhjxCpi8unMqfyHU+roZHhwn9bGGX/6 EQA+/5Lq5RJPTLJjL42bi8LUcocZiKxrnFI+a/YdQ7zNZUGr1WrV9s7IFxkG6bMx 6fpBIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382871; x=1793987671; 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=HM6vi2lDOXYcS+gRuUlUqXd4T0sR6PkiPD61VsQgo0k=; b=eOHEMMstpNdTTEFX4eTuffmeV7zR6dEqW0LSNUkzqelBRg48nS3w4IWJKi19O3xRHy uPoUAnTu8t+k7sDIOTKqQEULhCdJFKMFWTtpYgCgUQupMbJciENqJcP5MGnBzQCSIxso HnoFlFhxVx4FoF1M8AeXAKvVeuoQoch9dJxQvXZX7a1GToWIOUjJp/ZUQeIeab/PVcSo PT6V/eTXoXtB/JyVso+NhMI7YFb2uqTayqQpJLE6pk8X8AWkkRtT4O9sarRCtMxySJFe 075uvQ1e5jSwWXOITOgZEdrWGMOmaGUky1XWhNdjNC6hX59782N/pjzXCTNyc5yWLxEw eZ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382871; x=1793987671; 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=HM6vi2lDOXYcS+gRuUlUqXd4T0sR6PkiPD61VsQgo0k=; b=g9zADjl0doeAAcRC77OkIa08vEJx9IJaKVgq6jkyDqP1/m5CYMUfjuzW7kFU1h928D BwHbjchOrt55sqodmfNf6tMT2ZxWblIbUiHpv+CbicMUQcowUjqBTHvGlMNhz50nlAhk ZwMpjmEDiEg4Kv1hQEb/1fgF3OEjhUWqLC7Scz17Lon9vlqW7EqtYqyBQypjsnSF8WDi VJJm8NEu0Bm93FEZl7HoRfEavO8XK10TcxDvRQDW5srxexcghrfl8MEEwTj8MH6GTqCs luO/jgb5bIybQVah7NrKiiRT9MGcANqNKso3ls9b8g192/hbwrRZ69JnmOatSsldcwvp d5ww== X-Gm-Message-State: AFq9FYLrirIzXkpfCG9TPLopdVPS4/de42PpHkBfA2ojrZjxST5rJi4b Gsst8KL+H10DvIk6tfNbZY9LwVvvNKmMMi9oolvOgoN4iXVvNdWlArKwbG6C4Rf20FcWNUBLZn4 20dxdGIJADOwvLBnuFbcdqNq1e3raNxapT7iAwi28mfSmJjcpih6NNeH58Fezm4jUdXy8 X-Gm-Gg: AYBFou0sxZvGPsIeX0oHYEdPR6dTt3/KkTdNFTH+23nUFvR4+G0vivAhK/jTInmZV1Z m5CUrDTKCLDGqbQESurPGTcHGWIBnPGTOXL0vaHIQgyKnXpkGHiv4YaYt6OMacQZFUCY4hmrN2e X74vuiBK0Tc282/JHSD7N+wFZvTwNSktQLCr1k5s+Z6djSt87zjQkEEhIzF+Sd4w4S6ZDW0JOtV rhyoaZMDGmQjhMpZ7ytDYYMKOPoGOIe7vXXGfIDgGvoPceZzkf8jy8z4cYBPbuf0t6aXPUzYeSf jyqmf4cGrclKlvDFH/VFEgF1Q2D55cO+rN7CH43zYniF2MUy1qIKBowBjstTf4sy1y42VW3uSXE srLjgL0WeGLXxPr1iYts2Z7uN5XbELo3RyMC8Hp9wZ0AXe+7dD+OqrfrJN2rlK9e3+kPtkxMNuq Wv61nkhBvnc1cbT5nkXolwv+dC1s2o6Q== X-Received: by 2002:a05:620a:31a2:b0:93e:c12c:fbb7 with SMTP id af79cd13be357-94421729bf3mr494352585a.68.1793382871151; Fri, 30 Oct 2026 10:54:31 -0700 (PDT) X-Received: by 2002:a05:620a:31a2:b0:93e:c12c:fbb7 with SMTP id af79cd13be357-94421729bf3mr494349685a.68.1793382870606; Fri, 30 Oct 2026 10:54:30 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 04/32] tests/tcg/mips: Group DSP cmp tests Date: Fri, 30 Oct 2026 18:53:26 +0100 Message-ID: <20261030175357.99684-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX05XsdA5EmIgC q0D2oJwwFOZXWlO3iFYYGl8zF8e0PQEN5slco0CoPZmWyW7HVK8xdFlx5oWd7FdCgk1kdivyUsy JofzWs7/hWIqxPAySQOXRvjhlukHkgodxgj/PSVyhUVx+yp+Umq4kUR6pdYmZoTtx3L0BM/lMgX n3H29QOz+mgruXyOnrlKnH5IDP05aozgtFtaLUswrbQpolYNcuGnRAOfyJ+Na1tT1tGixVtABqU b0Xe7NJo6lOY4ciYz/0z1P9a8voG4TiYMH4nCZRsncqzDLfAWmP3FGImG3nO8utPC1QU8YOdoG3 Mz4eM3fmiTjQ4zsi/NV8e59uKYH4QAT937XrsCPxaNNJpSNKAd0m2dFUGLgkFPV6SfTB3rq7ZWC KI8u186yszUvEfib6sQQU1/huP+pFPeCIrb9zuGUflNL94dhHAACEzG7ZuwXgB61QXnNddbL16v auR8FkaAdjwnfk/Sjcg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX7BKs8s7ISx8Z vGfLaQTA1U/dh4KWqLlkYrxXjcGiJOPT3axMGygX0URYcOEywhtEs3go2WHkbEaUvJ5hsQK6ewZ O2qwnlj2tY9wz3BBHV8WBwNa+SyxH8I= X-Proofpoint-ORIG-GUID: DTnPtR7QKKmcvyDuoQHHQ77li9nb4hjD X-Proofpoint-GUID: DTnPtR7QKKmcvyDuoQHHQ77li9nb4hjD X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4d9d7 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=TrVlaqBlz6Hw94NMQc4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O: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-2610300071 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: 1793382968849154100 Build the 14 per-opcode cmp tests as a single executable, test_dsp_cmp.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_cmp.c | 84 +++++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_pick_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_pick_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c | 1 - tests/tcg/mipsel/meson.build | 15 +--- 16 files changed, 85 insertions(+), 28 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_cmp.c diff --git a/tests/tcg/mipsel/test_dsp_cmp.c b/tests/tcg/mipsel/test_dsp_cm= p.c new file mode 100644 index 000000000000..de59f2819792 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_cmp.c @@ -0,0 +1,84 @@ +/* + * MIPS DSP ASE tests: Compare and Pick instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_cmp_eq_ph +#include "test_dsp_r1_cmp_eq_ph.c" +#undef main + +#define main test_dsp_r1_cmp_le_ph +#include "test_dsp_r1_cmp_le_ph.c" +#undef main + +#define main test_dsp_r1_cmp_lt_ph +#include "test_dsp_r1_cmp_lt_ph.c" +#undef main + +#define main test_dsp_r1_cmpgu_eq_qb +#include "test_dsp_r1_cmpgu_eq_qb.c" +#undef main + +#define main test_dsp_r1_cmpgu_le_qb +#include "test_dsp_r1_cmpgu_le_qb.c" +#undef main + +#define main test_dsp_r1_cmpgu_lt_qb +#include "test_dsp_r1_cmpgu_lt_qb.c" +#undef main + +#define main test_dsp_r1_cmpu_eq_qb +#include "test_dsp_r1_cmpu_eq_qb.c" +#undef main + +#define main test_dsp_r1_cmpu_le_qb +#include "test_dsp_r1_cmpu_le_qb.c" +#undef main + +#define main test_dsp_r1_cmpu_lt_qb +#include "test_dsp_r1_cmpu_lt_qb.c" +#undef main + +#define main test_dsp_r1_pick_ph +#include "test_dsp_r1_pick_ph.c" +#undef main + +#define main test_dsp_r1_pick_qb +#include "test_dsp_r1_pick_qb.c" +#undef main + +#define main test_dsp_r2_cmpgdu_eq_qb +#include "test_dsp_r2_cmpgdu_eq_qb.c" +#undef main + +#define main test_dsp_r2_cmpgdu_le_qb +#include "test_dsp_r2_cmpgdu_le_qb.c" +#undef main + +#define main test_dsp_r2_cmpgdu_lt_qb +#include "test_dsp_r2_cmpgdu_lt_qb.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_cmp_eq_ph); + RUN_TEST(test_dsp_r1_cmp_le_ph); + RUN_TEST(test_dsp_r1_cmp_lt_ph); + RUN_TEST(test_dsp_r1_cmpgu_eq_qb); + RUN_TEST(test_dsp_r1_cmpgu_le_qb); + RUN_TEST(test_dsp_r1_cmpgu_lt_qb); + RUN_TEST(test_dsp_r1_cmpu_eq_qb); + RUN_TEST(test_dsp_r1_cmpu_le_qb); + RUN_TEST(test_dsp_r1_cmpu_lt_qb); + RUN_TEST(test_dsp_r1_pick_ph); + RUN_TEST(test_dsp_r1_pick_qb); + RUN_TEST(test_dsp_r2_cmpgdu_eq_qb); + RUN_TEST(test_dsp_r2_cmpgdu_le_qb); + RUN_TEST(test_dsp_r2_cmpgdu_lt_qb); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_cmp_eq_ph.c index 957bd88ce01f..47406f77c59e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_cmp_le_ph.c index 356f156c5d1f..811646d78e84 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_cmp_lt_ph.c index 3fb4827ad761..430953a77215 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c b/tests/tcg/mipsel/= test_dsp_r1_cmpgu_eq_qb.c index 2615c84c75c7..1fd5b523a44e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c b/tests/tcg/mipsel/= test_dsp_r1_cmpgu_le_qb.c index 65d0813c3b19..da1277065246 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c b/tests/tcg/mipsel/= test_dsp_r1_cmpgu_lt_qb.c index 7dddad98532c..9317f9a3fa44 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c b/tests/tcg/mipsel/t= est_dsp_r1_cmpu_eq_qb.c index 680f2a1999d8..8736e7fc45ad 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c b/tests/tcg/mipsel/t= est_dsp_r1_cmpu_le_qb.c index 43cfa509ca3c..fbc620adf95d 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c b/tests/tcg/mipsel/t= est_dsp_r1_cmpu_lt_qb.c index 074ca5b402de..8132b13a97c2 100644 --- a/tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_pick_ph.c b/tests/tcg/mipsel/test= _dsp_r1_pick_ph.c index 929a002e7544..0a11b5d12ce3 100644 --- a/tests/tcg/mipsel/test_dsp_r1_pick_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_pick_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_pick_qb.c b/tests/tcg/mipsel/test= _dsp_r1_pick_qb.c index a79047524662..8def9559d632 100644 --- a/tests/tcg/mipsel/test_dsp_r1_pick_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_pick_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c b/tests/tcg/mipsel= /test_dsp_r2_cmpgdu_eq_qb.c index 2d6340d6fb12..cfc71839591a 100644 --- a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c b/tests/tcg/mipsel= /test_dsp_r2_cmpgdu_le_qb.c index a0ecdca2ac2e..9e7d8260cfa7 100644 --- a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c b/tests/tcg/mipsel= /test_dsp_r2_cmpgdu_lt_qb.c index dba99e392c29..ec964e39074f 100644 --- a/tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index e7e576ad6c19..e8737308c40d 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -6,17 +6,9 @@ tests +=3D tcg_tests['multiarch-linux-user']['tests'] tests_dsp =3D [ 'test_dsp_acc.c', 'test_dsp_arith.c', + 'test_dsp_cmp.c', 'test_dsp_r1_bitrev.c', 'test_dsp_r1_bposge32.c', - 'test_dsp_r1_cmp_eq_ph.c', - 'test_dsp_r1_cmp_le_ph.c', - 'test_dsp_r1_cmp_lt_ph.c', - 'test_dsp_r1_cmpgu_eq_qb.c', - 'test_dsp_r1_cmpgu_le_qb.c', - 'test_dsp_r1_cmpgu_lt_qb.c', - 'test_dsp_r1_cmpu_eq_qb.c', - 'test_dsp_r1_cmpu_le_qb.c', - 'test_dsp_r1_cmpu_lt_qb.c', 'test_dsp_r1_dpaq_s_w_ph.c', 'test_dsp_r1_dpaq_sa_l_w.c', 'test_dsp_r1_dpau_h_qbl.c', @@ -45,8 +37,6 @@ tests_dsp =3D [ 'test_dsp_r1_mult.c', 'test_dsp_r1_multu.c', 'test_dsp_r1_packrl_ph.c', - 'test_dsp_r1_pick_ph.c', - 'test_dsp_r1_pick_qb.c', 'test_dsp_r1_preceq_w_phl.c', 'test_dsp_r1_preceq_w_phr.c', 'test_dsp_r1_precequ_ph_qbl.c', @@ -85,9 +75,6 @@ tests_dsp =3D [ 'test_dsp_r1_wrdsp.c', 'test_dsp_r2_append.c', 'test_dsp_r2_balign.c', - 'test_dsp_r2_cmpgdu_eq_qb.c', - 'test_dsp_r2_cmpgdu_le_qb.c', - 'test_dsp_r2_cmpgdu_lt_qb.c', 'test_dsp_r2_dpa_w_ph.c', 'test_dsp_r2_dpaqx_s_w_ph.c', 'test_dsp_r2_dpaqx_sa_w_ph.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382947; cv=none; d=zohomail.com; s=zohoarc; b=B83uRo5zChySBRV4nlcOls9xgc3nxvmGWTpii/hS6TSRHwRsUF7F61BRvF2dxzf+hBggyilUgN53GDDVXCLI0WzJu6hkRrLpkQ0B37EZ9rKepthuPclK0vIdX7GrCNLc0f9kRWU+MVx6JdRAx1+H8n2Jaabq16dBfkk6PfD9hrM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382947; 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=944e6IXe1zC+n4TQQdlRlGpKLAVFF/LXu1eo7WhasrY=; b=R2xX9Y3WKbRAgPAg9267lcIrgxNnoEdTR4KbMVLNSHCK1Vn+5GetqOCnzAzA8xEK6sb+IbZ6HTyBzbBYPbVbpjEiWH67R2sPLIdGX4sE7avoz9+vtO4TIzlFmRIEhdbI75qHL8sdY+kFiZQl9WMyyLfpuK2O+CboYv2Of6AnPTk= 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 1793382947854796.1348624609657; Fri, 30 Oct 2026 10:55:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqp5-0005rW-3L; Fri, 30 Oct 2026 13:55:28 -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 1xMqoM-0005X0-JP for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:46 -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 1xMqoK-0007ph-Kl for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:42 -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 69UERF7n378152 for ; Fri, 30 Oct 2026 17:54:39 GMT Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme754a1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:39 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-99076c676cbso235929241.3 for ; Fri, 30 Oct 2026 10:54:39 -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-48e71bae25dsm3834906f8f.59.2026.10.30.10.54.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:36 -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= 944e6IXe1zC+n4TQQdlRlGpKLAVFF/LXu1eo7WhasrY=; b=cXN0wpcIz7vO2a82 qSjjRs3JrJ0zo+pYi0SffUe6/Ecblav/qBo79PPqFqb/wIkWi6ovtbxyLzJ41naR 6C6GY7WZlA0dRHA+qmpg9Omgs7zUdgT/NudgqDSkqQVKflNJ2ZhFi3D0cpjr3YLq 0NvprsHVXxKCpE6h8XkGuySi0qypRlozJpiG9jrhlcMGwltx9HoO/JjA+gNgxYjh rFbrnTj7nAt26UIYwfXvlx/EMIlB0MBvFCxZehMQZNwvnksC3GBbItmguT2eaHfR fOV+X/AB7akV/jLYABXs+r9ouCIgF+pj0On2BxgDW9zjPzuxNE0TKnf1U7pMoi09 KlSrhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382878; x=1793987678; 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=944e6IXe1zC+n4TQQdlRlGpKLAVFF/LXu1eo7WhasrY=; b=bd/DLjN70oPwQC9K14J6EnBBSQUNu265ZSBe+Fh+oKCwQ24+CqRNjp7xuXnb9Zx2+f rAWzO59D4+IUWMN5pTFlF0ggXCLP6jYvD5CyhJ++FYfRFoSMD+W0OEhpJqVEL1qbsTIK E2mkPst3PfjYVHGqlrw+MdAXMC4tPoZvQBbgX7UM+wTAmcTCYwVdSmFnP14d8YY3IPfz LW/SUqXctc3ShZIJ6tmlEoXhVaJ5D9UJbXLilO44RYcKEZ4SxH3vcR/lF+eSpPrIgLYH Z0aVHUlfD/mZSRqEjU8d+f8zYQp97LeA+QOugW+/Vh5utQUsIYx+CBQIrUrbngmleggq r18A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382878; x=1793987678; 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=944e6IXe1zC+n4TQQdlRlGpKLAVFF/LXu1eo7WhasrY=; b=At485RTCNeq+G7nA8NhxsWJCS65OGsK8ao0x7KQXGW1OxG/PZlGwyYdc54OwDudomf +1BiuTm5EEcOyPJu0cZ5GLkEuVGm+1lOl1WTEzE9eAUludjWI+DPzGb0YvmnKE+UjwHJ dT4ouAb+kW6aOxJi7wfO28IeW+gKsu3k6J7Bn8PLM3PPnVR8nGJHhD9psq6hQpBqF49e C4T7ICco+k7q42V9/HNlYlrYAZL1i8Dk+g4wrwV9hUHZBbAPh6DiMY/qxjVKIL51vPUj UpeseDNY81/hCwUVw8aOrL8i6xTXK04TaX9GlTxtWxEL0pu1BbFHxOu0konWhEGtlRxJ WnMQ== X-Gm-Message-State: AFq9FYKOZFS58YJkUUVgJgsaQlZmEEEhb0LTQqabC6QRgF280RO3oPbX 3NDsJosYg18O9xdEOYahGIk67iBjzn3YQ7hHvP5zuFilfMN5xs0AoC2zEyPpBviAwX0FdQtJhci unSQjKzisWFMze6gVNf3OyDAxWrwxI+XKRgMLqlbvcRtIBh+WtsFBrBQhklwW3dEQ4Myq X-Gm-Gg: AYBFou3felwpWUp7LYbApL8tn/UAh21E8XPnqSuAfxrq8SSFjQx5Uep1wwBZYa3yTcN dul6bvIFksw7Pl9JbjT76mhZv5BMuzDvjuZLpnDJ6h3GU3taoGcQXv4mAXTwzcowVr9r/6HolNf 5x3obKdhQAl81QUT8ob5SaSr10JHO7JDgmLcAi5jQZ2GsnqMqFG8nVMeylhgB41T3trptrgaTpC 3eKF7E85iPpuhrpGE4wY9N3RqDQLRX2lVAoL0WGnt+g46kbqQMV6Hu8n3aYDYwHrEqcGKsQJfoL VDJakO+s1EsNm1uuODJ3HE4+j81dnAnvTeqwaKFCN9SgdyMHYGa8e4VlB9YIZ7+0EvhQANOJgCq aH406qvVsVB/n129VctIBMRVZFvf1cskSRFZjGa75TT9A3FlYEU2EBB3ChL1TFSXUWwKKFMacn6 WMd0wFc9KYV8/d8e3nnZHhGCAr8FiwJQ== X-Received: by 2002:a05:6102:3707:b0:7c2:799c:9031 with SMTP id ada2fe7eead31-7d072d11c63mr1470733137.30.1793382878198; Fri, 30 Oct 2026 10:54:38 -0700 (PDT) X-Received: by 2002:a05:6102:3707:b0:7c2:799c:9031 with SMTP id ada2fe7eead31-7d072d11c63mr1470721137.30.1793382877669; Fri, 30 Oct 2026 10:54:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 05/32] tests/tcg/mips: Group DSP ctrl tests Date: Fri, 30 Oct 2026 18:53:27 +0100 Message-ID: <20261030175357.99684-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: CPU_mCX6W7rt56yesOQ1s02AUZj-_xYZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXzPwleKQS2jus 43SZ2st6XsQapiFDkiji6j5MQP2BX/IevcV8FNXLb6dNIJfDiQsVx7hunnWxaS+E1B2O4R3Kmun D36VHYH3oujKyEzIZuDETpVzMNcsaATFEZ/GqRhJUZnRHZ2aB9cqZ8trNXQG5NYVlwmWc85BQM6 33fyE8JK7HzZ47PY70cv9eCr/9FnuTN1VZjQce32UWGDIsnp1PD7xFdxVt5vyFJfTBablmRdpEz 5+3M/eiH7gYGsoWcEOcTmwtqRAcGHezFBoP6I2xVo/QdMgbRbHWtGbzF8ImjnEzw1fEGlrMwdYw jhKIqf/wx4GZ2SWrw1n6TZOKRyQg63VrDC7dyARJN1DF1Yr+a50yVsKMsIXOk56VqPDF4pkYbKF SDMhTODjO5QLl3gYYD49Foe8aj3DozVc7FAeswDLc8019MUqEW2xEpvx9ezw5hWxKHuOSgUcQEz 1jJuHZfN/sNkYHmztwg== X-Proofpoint-ORIG-GUID: CPU_mCX6W7rt56yesOQ1s02AUZj-_xYZ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6yKz17ym5nb7 4CcsVciQjPvfoTnf1tEwYu7483flWoGWQWj48YW0TCqohfViigq9suL7+6OLjoJ17FvpHdR4ENV vVPUUu8IPATU2oZ/N3v/ZAjl22Ko6Go= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4d9df cx=c_pps a=R6oCqFB+Yf/t2GF8e0/dFg==: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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-: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-2610300071 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: 1793382950471154100 Build the 6 per-opcode ctrl tests as a single executable, test_dsp_ctrl.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_ctrl.c | 44 +++++++++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_bposge32.c | 1 - tests/tcg/mipsel/test_dsp_r1_lbux.c | 1 - tests/tcg/mipsel/test_dsp_r1_lhx.c | 1 - tests/tcg/mipsel/test_dsp_r1_lwx.c | 1 - tests/tcg/mipsel/test_dsp_r1_rddsp.c | 1 - tests/tcg/mipsel/test_dsp_r1_wrdsp.c | 1 - tests/tcg/mipsel/meson.build | 7 +--- 8 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_ctrl.c diff --git a/tests/tcg/mipsel/test_dsp_ctrl.c b/tests/tcg/mipsel/test_dsp_c= trl.c new file mode 100644 index 000000000000..08186e22f1f1 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_ctrl.c @@ -0,0 +1,44 @@ +/* + * MIPS DSP ASE tests: Indexed Load and DSPControl access instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_bposge32 +#include "test_dsp_r1_bposge32.c" +#undef main + +#define main test_dsp_r1_lbux +#include "test_dsp_r1_lbux.c" +#undef main + +#define main test_dsp_r1_lhx +#include "test_dsp_r1_lhx.c" +#undef main + +#define main test_dsp_r1_lwx +#include "test_dsp_r1_lwx.c" +#undef main + +#define main test_dsp_r1_rddsp +#include "test_dsp_r1_rddsp.c" +#undef main + +#define main test_dsp_r1_wrdsp +#include "test_dsp_r1_wrdsp.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_bposge32); + RUN_TEST(test_dsp_r1_lbux); + RUN_TEST(test_dsp_r1_lhx); + RUN_TEST(test_dsp_r1_lwx); + RUN_TEST(test_dsp_r1_rddsp); + RUN_TEST(test_dsp_r1_wrdsp); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_bposge32.c b/tests/tcg/mipsel/tes= t_dsp_r1_bposge32.c index d25417ea77b2..f39eae531c8f 100644 --- a/tests/tcg/mipsel/test_dsp_r1_bposge32.c +++ b/tests/tcg/mipsel/test_dsp_r1_bposge32.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_lbux.c b/tests/tcg/mipsel/test_ds= p_r1_lbux.c index 2337abea2acb..3436289b5a65 100644 --- a/tests/tcg/mipsel/test_dsp_r1_lbux.c +++ b/tests/tcg/mipsel/test_dsp_r1_lbux.c @@ -1,5 +1,4 @@ #include -#include =20 int main(void) { diff --git a/tests/tcg/mipsel/test_dsp_r1_lhx.c b/tests/tcg/mipsel/test_dsp= _r1_lhx.c index 10be3b385fee..28795dbf701a 100644 --- a/tests/tcg/mipsel/test_dsp_r1_lhx.c +++ b/tests/tcg/mipsel/test_dsp_r1_lhx.c @@ -1,5 +1,4 @@ #include -#include =20 int main(void) { diff --git a/tests/tcg/mipsel/test_dsp_r1_lwx.c b/tests/tcg/mipsel/test_dsp= _r1_lwx.c index e6543c9e7eae..ac15edb7cf94 100644 --- a/tests/tcg/mipsel/test_dsp_r1_lwx.c +++ b/tests/tcg/mipsel/test_dsp_r1_lwx.c @@ -1,5 +1,4 @@ #include -#include =20 int main(void) { diff --git a/tests/tcg/mipsel/test_dsp_r1_rddsp.c b/tests/tcg/mipsel/test_d= sp_r1_rddsp.c index 2f3028503324..a0e413614d58 100644 --- a/tests/tcg/mipsel/test_dsp_r1_rddsp.c +++ b/tests/tcg/mipsel/test_dsp_r1_rddsp.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_wrdsp.c b/tests/tcg/mipsel/test_d= sp_r1_wrdsp.c index dc54943a99e8..57869203102e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_wrdsp.c +++ b/tests/tcg/mipsel/test_dsp_r1_wrdsp.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index e8737308c40d..1c2851f56369 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -7,8 +7,8 @@ tests_dsp =3D [ 'test_dsp_acc.c', 'test_dsp_arith.c', 'test_dsp_cmp.c', + 'test_dsp_ctrl.c', 'test_dsp_r1_bitrev.c', - 'test_dsp_r1_bposge32.c', 'test_dsp_r1_dpaq_s_w_ph.c', 'test_dsp_r1_dpaq_sa_l_w.c', 'test_dsp_r1_dpau_h_qbl.c', @@ -18,9 +18,6 @@ tests_dsp =3D [ 'test_dsp_r1_dpsu_h_qbl.c', 'test_dsp_r1_dpsu_h_qbr.c', 'test_dsp_r1_insv.c', - 'test_dsp_r1_lbux.c', - 'test_dsp_r1_lhx.c', - 'test_dsp_r1_lwx.c', 'test_dsp_r1_madd.c', 'test_dsp_r1_maddu.c', 'test_dsp_r1_maq_s_w_phl.c', @@ -51,7 +48,6 @@ tests_dsp =3D [ 'test_dsp_r1_precrq_qb_ph.c', 'test_dsp_r1_precrq_rs_ph_w.c', 'test_dsp_r1_precrqu_s_qb_ph.c', - 'test_dsp_r1_rddsp.c', 'test_dsp_r1_repl_ph.c', 'test_dsp_r1_repl_qb.c', 'test_dsp_r1_replv_ph.c', @@ -72,7 +68,6 @@ tests_dsp =3D [ 'test_dsp_r1_shrav_r_w.c', 'test_dsp_r1_shrl_qb.c', 'test_dsp_r1_shrlv_qb.c', - 'test_dsp_r1_wrdsp.c', 'test_dsp_r2_append.c', 'test_dsp_r2_balign.c', 'test_dsp_r2_dpa_w_ph.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383106; cv=none; d=zohomail.com; s=zohoarc; b=NuWUMUJBXSrGd3+R+V+7miKSQCSi7amG12Fj+KjYf5BYSNIJujcyMVOOg4eS6m2r8Jtj5LWD7/QSDWM5+Riu1/DbP9mywlRD9uBt540BkGsbsw8tywc/3PnVdNZYJYX7e+8of9qinguTcZmJ1usehpZOS8oVSas6fJsp9MENUE0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383106; 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=nx03ZgXsxMjkKRARk2M6M4nCvJAxxWZ8UsJ53jyDZN4=; b=AkEiLJq9+3buP/TifUyep0pqieq6zzLNgpG8M++Bi/42GR0JGm+ds9dEaRttcGzqeyPp0wLh1vI0rNu3JOOKiSu8Aa9+8rTPkGN1TI1NocD2o3jqgDxLrB7yooHIB9fFU9VuOvfuk7EjYJKjUuEhNgEhq76ZcaZgNGWjmBKdvtQ= 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 17933831065311017.7473822238051; Fri, 30 Oct 2026 10:58:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqq2-0007GF-9s; Fri, 30 Oct 2026 13:56:26 -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 1xMqoW-0005eh-Ob for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:56 -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 1xMqoS-0007ra-TE for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:52 -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 69UER70X2596688 for ; Fri, 30 Oct 2026 17:54:47 GMT Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pcb7m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:47 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-7cb9d27ddcfso108340137.1 for ; Fri, 30 Oct 2026 10:54:47 -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-48e71b8011csm5057798f8f.31.2026.10.30.10.54.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:44 -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= nx03ZgXsxMjkKRARk2M6M4nCvJAxxWZ8UsJ53jyDZN4=; b=iCGOSqiJqivpqvhF w2W5f1RzV5NESC9GRogxbEnASB36mQrxkhUTqge6m4a1JxypurGhVg+apgz4sOo1 K+gvKAwwde6M63x/8drXfPF6hjqmManDGDtLxzrxsBfuuGGusBl25FqqWQ4ShxhP xjgYnHg+SUY67Wx/5Bk+yPd2/KaKvb6wsQde7y+4gbLVN6kG06DoKp0tVxw2BeAs be2wPOA0ta+l6NiTcW8zUfkcgrdYbOpqIphwCZnPe/t5k1rFrbTeLG+DR1FoqnGP B7lMjNFRAu6USOqIIXebd8yT4tzmV5Slgye5j1tYWaJkU95733RBGzKycxI5Hz8q n9AZCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382886; x=1793987686; 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=nx03ZgXsxMjkKRARk2M6M4nCvJAxxWZ8UsJ53jyDZN4=; b=W1o6aAcxaPOtP8+3RfN/LKxiZqRw+k29jRsizmmkHdSdDTg4Lgst0ATjNMOBP3CfS2 TkfdLblODiy8kagrn3AahPtU6w7o3wOzOjWXwu3Rdm7v05R/8heCubhPoooSZqHxw5hf 2jX5RUzxxEs+5Bbz6+rscuIyKoCv3r/gmBfm5ej3fD5laBfEu6sJV+ATCtTtbDoT2HRC xU43blaxLDhU8iWJ62kW0cS1FIuPxa55/aPKmD51ECI8JQbh3H/b8/ksCFyDiUnU+W5V KOJFEb9Dj/DgOjl1F10Y1VbFrWc2crAxXTejrKpNbd3yu7uBuQDHZp1olhYp2LWshXjQ aLvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382886; x=1793987686; 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=nx03ZgXsxMjkKRARk2M6M4nCvJAxxWZ8UsJ53jyDZN4=; b=cqqIY5qO1P/r18aG1VqICTj0ngFI/sGnIiEaxyXmKITZI1DbR3DoXG1O8N/ZzaxEcm CN2UySYW4/FpH7ekfppkvhT6NpNS8zFvMU1hTpevVrDgjLv/bFEh/x9B6X3xRS3pMZLs g9bkZLhE6OCHpEj04M9wqqUlFqUZtUTH1sV/F7HwnkjDZlinjgDisrIbcIsN8IROM77M u7FltBt9X9/3PQE7KYSPiqVyDdcZHRCIDXISI/Jn7uQF1RY/SMnOJ6mJVJ5X7p9M09Ea E2ik+MuP0aAuJ2953r9D1yH3QfxQAJjqLq2OxZU5OnvkpHnETpy3MRj6DA5prWK9JyrU cvew== X-Gm-Message-State: AFq9FYI7imFBPgRmaPYxCyIgV0ivVA0w3M57NUxBYABxs3RLd+WvsWkd b90PFvUp7kFE0XhFJ9W/8T//PY0sJmwdT84Phe6p8Az9jKTky15B3LUZ2d83M9sFYoQGlotlTye UPhf9w5sNFkaCTkUBp0D0d33JV8nWATLoUp3iEgURDtluYDHEhk6sOo6k/7ASXP8bNTsi X-Gm-Gg: AYBFou0BdkBeWO4uykmQ/rVXUViisGlmU1HcJmP1Za3pgqhG8wpLYaYhAXK+bvY8Wj3 mqJ37kwzheME4k2VWIzH5Cz2IK4RyF1d0xUR2r1y0q34ggvVUo3eksgF1syEkvVjTpZATkEmWYd /Napdy2AiP9Q0TlX34mN+FlPtVMBAO1xPhj/oOtyG13gWv4xpxlzAzDAxIWm90fZCU1s9DuzkHv fFuvO9u32DsZESo9TNWswcdtBU8BMQjk8qbW9JUH5D3hybwckKk5R6TrmHhU/wfqo9lZ80YD5Y2 uWqvg3mJQqa/8cLPFqCL09hf6jk6bibQ2V0dUgJZWu1VnNYkDM2VQpqhlQ3mjavSz7OXwtcWkRw cDCZOTNo3dHQ/sfq7Al/UEHWakuUHRMbPa/fyy3AuHO7MR13QWgTadrED8T+k7QxZSn6jVgW0De Ym+XFOiKvcK9E3jK5jruutvdRfO7c7Ig== X-Received: by 2002:a05:6102:14a3:b0:7be:37d8:1567 with SMTP id ada2fe7eead31-7d0725cefa6mr1552996137.10.1793382886320; Fri, 30 Oct 2026 10:54:46 -0700 (PDT) X-Received: by 2002:a05:6102:14a3:b0:7be:37d8:1567 with SMTP id ada2fe7eead31-7d0725cefa6mr1552981137.10.1793382885674; Fri, 30 Oct 2026 10:54:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 06/32] tests/tcg/mips: Group DSP dot tests Date: Fri, 30 Oct 2026 18:53:28 +0100 Message-ID: <20261030175357.99684-7-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX4VIr24jSEhaQ CxL4hTs4gwSoIVtGGGk82BeZZg2XgrQUy91umtI3LzKsvch1reNoH2MbyVdsCELOdWQQTYgFvkI GBoPwcsNbajdi/ftoLOnwLuLQqCGqD1v92v983cHE1HKs/J7LGIbNwZvDr5OHxKD/Nfx9DqtT4G 8vq4/4UFd+jYyZs9egys4g9bwpFZzKD2Bk5ciB/vCf1LMhWZhW5GxxQe0J9gyrLp+6DOLr5VsZI iDewyaww6Dz3MlCPvCvx51KOTIQ4I5enN12KnJewRJRAhT5ob5qVUkmPcpOcQ4q8MU8+1S6J4Pd WlBqf4p/NIcIU98qNOpe0LWgeZatGTWF2no1TRHfqaKBZ9/gUL2kDTQRvqXsuHeESZuJLRgzuU4 uHu/YMBvhoW534aWxnt3bcwrC2RIIss7g5ZTa0lRyuRn6uKhWEfms/xr8o6NCevsndNBvFFqGkA iAjmeZHOsVcag3mKzGg== X-Proofpoint-GUID: iahEuEiH_IpjoPruQQzdoIjuEryY6_P_ X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4d9e7 cx=c_pps a=P2rfLEam3zuxRRdjJWA2cw==: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=Ss58A6hLZCuk7yZQP4AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 X-Proofpoint-ORIG-GUID: iahEuEiH_IpjoPruQQzdoIjuEryY6_P_ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2Yx/47Otjsol ywteZy/W802BjzYVc5b0UOWedHq/Fb3TEzooMUN9EEVKrXRts2myIfKaXXvt4wAb4yi+Rr6bjRS z1G1RoCBMQmN9pOkaQXvrFLS8GGUcYA= 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-2610300071 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: 1793383107579158500 Build the 28 per-opcode dot tests as a single executable, test_dsp_dot.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_dot.c | 154 +++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c | 1 - tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c | 1 - tests/tcg/mipsel/test_dsp_r1_madd.c | 1 - tests/tcg/mipsel/test_dsp_r1_maddu.c | 1 - tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c | 1 - tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c | 1 - tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c | 1 - tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c | 1 - tests/tcg/mipsel/test_dsp_r1_msub.c | 1 - tests/tcg/mipsel/test_dsp_r1_msubu.c | 1 - tests/tcg/mipsel/test_dsp_r1_mult.c | 1 - tests/tcg/mipsel/test_dsp_r1_multu.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c | 1 - tests/tcg/mipsel/meson.build | 29 +--- 30 files changed, 155 insertions(+), 56 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_dot.c diff --git a/tests/tcg/mipsel/test_dsp_dot.c b/tests/tcg/mipsel/test_dsp_do= t.c new file mode 100644 index 000000000000..2aeba5402ded --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_dot.c @@ -0,0 +1,154 @@ +/* + * MIPS DSP ASE tests: Dot Product and Multiply-Accumulate instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_dpaq_s_w_ph +#include "test_dsp_r1_dpaq_s_w_ph.c" +#undef main + +#define main test_dsp_r1_dpaq_sa_l_w +#include "test_dsp_r1_dpaq_sa_l_w.c" +#undef main + +#define main test_dsp_r1_dpau_h_qbl +#include "test_dsp_r1_dpau_h_qbl.c" +#undef main + +#define main test_dsp_r1_dpau_h_qbr +#include "test_dsp_r1_dpau_h_qbr.c" +#undef main + +#define main test_dsp_r1_dpsq_s_w_ph +#include "test_dsp_r1_dpsq_s_w_ph.c" +#undef main + +#define main test_dsp_r1_dpsq_sa_l_w +#include "test_dsp_r1_dpsq_sa_l_w.c" +#undef main + +#define main test_dsp_r1_dpsu_h_qbl +#include "test_dsp_r1_dpsu_h_qbl.c" +#undef main + +#define main test_dsp_r1_dpsu_h_qbr +#include "test_dsp_r1_dpsu_h_qbr.c" +#undef main + +#define main test_dsp_r1_maq_s_w_phl +#include "test_dsp_r1_maq_s_w_phl.c" +#undef main + +#define main test_dsp_r1_maq_s_w_phr +#include "test_dsp_r1_maq_s_w_phr.c" +#undef main + +#define main test_dsp_r1_maq_sa_w_phl +#include "test_dsp_r1_maq_sa_w_phl.c" +#undef main + +#define main test_dsp_r1_maq_sa_w_phr +#include "test_dsp_r1_maq_sa_w_phr.c" +#undef main + +#define main test_dsp_r1_madd +#include "test_dsp_r1_madd.c" +#undef main + +#define main test_dsp_r1_maddu +#include "test_dsp_r1_maddu.c" +#undef main + +#define main test_dsp_r1_msub +#include "test_dsp_r1_msub.c" +#undef main + +#define main test_dsp_r1_msubu +#include "test_dsp_r1_msubu.c" +#undef main + +#define main test_dsp_r1_mult +#include "test_dsp_r1_mult.c" +#undef main + +#define main test_dsp_r1_multu +#include "test_dsp_r1_multu.c" +#undef main + +#define main test_dsp_r2_dpa_w_ph +#include "test_dsp_r2_dpa_w_ph.c" +#undef main + +#define main test_dsp_r2_dpaqx_s_w_ph +#include "test_dsp_r2_dpaqx_s_w_ph.c" +#undef main + +#define main test_dsp_r2_dpaqx_sa_w_ph +#include "test_dsp_r2_dpaqx_sa_w_ph.c" +#undef main + +#define main test_dsp_r2_dpax_w_ph +#include "test_dsp_r2_dpax_w_ph.c" +#undef main + +#define main test_dsp_r2_dps_w_ph +#include "test_dsp_r2_dps_w_ph.c" +#undef main + +#define main test_dsp_r2_dpsqx_s_w_ph +#include "test_dsp_r2_dpsqx_s_w_ph.c" +#undef main + +#define main test_dsp_r2_dpsqx_sa_w_ph +#include "test_dsp_r2_dpsqx_sa_w_ph.c" +#undef main + +#define main test_dsp_r2_dpsx_w_ph +#include "test_dsp_r2_dpsx_w_ph.c" +#undef main + +#define main test_dsp_r2_mulsa_w_ph +#include "test_dsp_r2_mulsa_w_ph.c" +#undef main + +#define main test_dsp_r2_mulsaq_s_w_ph +#include "test_dsp_r2_mulsaq_s_w_ph.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_dpaq_s_w_ph); + RUN_TEST(test_dsp_r1_dpaq_sa_l_w); + RUN_TEST(test_dsp_r1_dpau_h_qbl); + RUN_TEST(test_dsp_r1_dpau_h_qbr); + RUN_TEST(test_dsp_r1_dpsq_s_w_ph); + RUN_TEST(test_dsp_r1_dpsq_sa_l_w); + RUN_TEST(test_dsp_r1_dpsu_h_qbl); + RUN_TEST(test_dsp_r1_dpsu_h_qbr); + RUN_TEST(test_dsp_r1_maq_s_w_phl); + RUN_TEST(test_dsp_r1_maq_s_w_phr); + RUN_TEST(test_dsp_r1_maq_sa_w_phl); + RUN_TEST(test_dsp_r1_maq_sa_w_phr); + RUN_TEST(test_dsp_r1_madd); + RUN_TEST(test_dsp_r1_maddu); + RUN_TEST(test_dsp_r1_msub); + RUN_TEST(test_dsp_r1_msubu); + RUN_TEST(test_dsp_r1_mult); + RUN_TEST(test_dsp_r1_multu); + RUN_TEST(test_dsp_r2_dpa_w_ph); + RUN_TEST(test_dsp_r2_dpaqx_s_w_ph); + RUN_TEST(test_dsp_r2_dpaqx_sa_w_ph); + RUN_TEST(test_dsp_r2_dpax_w_ph); + RUN_TEST(test_dsp_r2_dps_w_ph); + RUN_TEST(test_dsp_r2_dpsqx_s_w_ph); + RUN_TEST(test_dsp_r2_dpsqx_sa_w_ph); + RUN_TEST(test_dsp_r2_dpsx_w_ph); + RUN_TEST(test_dsp_r2_mulsa_w_ph); + RUN_TEST(test_dsp_r2_mulsaq_s_w_ph); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c b/tests/tcg/mipsel/= test_dsp_r1_dpaq_s_w_ph.c index a6425b6edc84..3818ba7c2a48 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c b/tests/tcg/mipsel/= test_dsp_r1_dpaq_sa_l_w.c index cbf900713f33..56a3c2f6e1d1 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c b/tests/tcg/mipsel/t= est_dsp_r1_dpau_h_qbl.c index 6017b5e73ab2..b90a9e9e72cc 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c b/tests/tcg/mipsel/t= est_dsp_r1_dpau_h_qbr.c index e4abb2e2af03..7828182f3151 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c b/tests/tcg/mipsel/= test_dsp_r1_dpsq_s_w_ph.c index 74058fe7ecd0..14698262d589 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c b/tests/tcg/mipsel/= test_dsp_r1_dpsq_sa_l_w.c index eda3b14e2be2..900f3f90bcb8 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c b/tests/tcg/mipsel/t= est_dsp_r1_dpsu_h_qbl.c index 94e2bf625499..6958bbeb753b 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c b/tests/tcg/mipsel/t= est_dsp_r1_dpsu_h_qbr.c index a1e66356310d..f127d1662714 100644 --- a/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c +++ b/tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_madd.c b/tests/tcg/mipsel/test_ds= p_r1_madd.c index af4bfcfe9df3..f724fd9a27c0 100644 --- a/tests/tcg/mipsel/test_dsp_r1_madd.c +++ b/tests/tcg/mipsel/test_dsp_r1_madd.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_maddu.c b/tests/tcg/mipsel/test_d= sp_r1_maddu.c index af4bfcfe9df3..f724fd9a27c0 100644 --- a/tests/tcg/mipsel/test_dsp_r1_maddu.c +++ b/tests/tcg/mipsel/test_dsp_r1_maddu.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c b/tests/tcg/mipsel/= test_dsp_r1_maq_s_w_phl.c index 0f7c070155a8..aa29fd5e3821 100644 --- a/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c +++ b/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c b/tests/tcg/mipsel/= test_dsp_r1_maq_s_w_phr.c index 942722a530c2..42833686936c 100644 --- a/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c +++ b/tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c b/tests/tcg/mipsel= /test_dsp_r1_maq_sa_w_phl.c index d83dce6f3272..9dda4ebdbbe9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c +++ b/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c b/tests/tcg/mipsel= /test_dsp_r1_maq_sa_w_phr.c index d2331118abb8..1b34664280dc 100644 --- a/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c +++ b/tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_msub.c b/tests/tcg/mipsel/test_ds= p_r1_msub.c index 5779e6f47ac7..74146284ffe2 100644 --- a/tests/tcg/mipsel/test_dsp_r1_msub.c +++ b/tests/tcg/mipsel/test_dsp_r1_msub.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_msubu.c b/tests/tcg/mipsel/test_d= sp_r1_msubu.c index e0f9b5a77ae3..2eb728af64b4 100644 --- a/tests/tcg/mipsel/test_dsp_r1_msubu.c +++ b/tests/tcg/mipsel/test_dsp_r1_msubu.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mult.c b/tests/tcg/mipsel/test_ds= p_r1_mult.c index 15e6fde92c0e..c0509396de72 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mult.c +++ b/tests/tcg/mipsel/test_dsp_r1_mult.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_multu.c b/tests/tcg/mipsel/test_d= sp_r1_multu.c index 85d36c1b621a..1c8a7f1e01e7 100644 --- a/tests/tcg/mipsel/test_dsp_r1_multu.c +++ b/tests/tcg/mipsel/test_dsp_r1_multu.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_dpa_w_ph.c index fae49f10eb95..68eae5a08346 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c b/tests/tcg/mipsel= /test_dsp_r2_dpaqx_s_w_ph.c index ce8783024685..06b1a0a0d7e8 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c b/tests/tcg/mipse= l/test_dsp_r2_dpaqx_sa_w_ph.c index d551d64ae293..6dd106d74cae 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c b/tests/tcg/mipsel/te= st_dsp_r2_dpax_w_ph.c index 514797cfd1b4..a812c8a7f854 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_dps_w_ph.c index f51f9b9d13d7..a656d219d89f 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c b/tests/tcg/mipsel= /test_dsp_r2_dpsqx_s_w_ph.c index e40543fd8292..960f2bbbdf36 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c b/tests/tcg/mipse= l/test_dsp_r2_dpsqx_sa_w_ph.c index 7da278eacc0e..68f20348c2c9 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c b/tests/tcg/mipsel/te= st_dsp_r2_dpsx_w_ph.c index bb49a4031d34..d85b504b402e 100644 --- a/tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c b/tests/tcg/mipsel/t= est_dsp_r2_mulsa_w_ph.c index a6940939ca50..842233b2785b 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c b/tests/tcg/mipse= l/test_dsp_r2_mulsaq_s_w_ph.c index 06c91a43e7ea..c0f8e51ad389 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 1c2851f56369..c26f5fba06b7 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -8,31 +8,14 @@ tests_dsp =3D [ 'test_dsp_arith.c', 'test_dsp_cmp.c', 'test_dsp_ctrl.c', + 'test_dsp_dot.c', 'test_dsp_r1_bitrev.c', - 'test_dsp_r1_dpaq_s_w_ph.c', - 'test_dsp_r1_dpaq_sa_l_w.c', - 'test_dsp_r1_dpau_h_qbl.c', - 'test_dsp_r1_dpau_h_qbr.c', - 'test_dsp_r1_dpsq_s_w_ph.c', - 'test_dsp_r1_dpsq_sa_l_w.c', - 'test_dsp_r1_dpsu_h_qbl.c', - 'test_dsp_r1_dpsu_h_qbr.c', 'test_dsp_r1_insv.c', - 'test_dsp_r1_madd.c', - 'test_dsp_r1_maddu.c', - 'test_dsp_r1_maq_s_w_phl.c', - 'test_dsp_r1_maq_s_w_phr.c', - 'test_dsp_r1_maq_sa_w_phl.c', - 'test_dsp_r1_maq_sa_w_phr.c', - 'test_dsp_r1_msub.c', - 'test_dsp_r1_msubu.c', 'test_dsp_r1_muleq_s_w_phl.c', 'test_dsp_r1_muleq_s_w_phr.c', 'test_dsp_r1_muleu_s_ph_qbl.c', 'test_dsp_r1_muleu_s_ph_qbr.c', 'test_dsp_r1_mulq_rs_ph.c', - 'test_dsp_r1_mult.c', - 'test_dsp_r1_multu.c', 'test_dsp_r1_packrl_ph.c', 'test_dsp_r1_preceq_w_phl.c', 'test_dsp_r1_preceq_w_phr.c', @@ -70,21 +53,11 @@ tests_dsp =3D [ 'test_dsp_r1_shrlv_qb.c', 'test_dsp_r2_append.c', 'test_dsp_r2_balign.c', - 'test_dsp_r2_dpa_w_ph.c', - 'test_dsp_r2_dpaqx_s_w_ph.c', - 'test_dsp_r2_dpaqx_sa_w_ph.c', - 'test_dsp_r2_dpax_w_ph.c', - 'test_dsp_r2_dps_w_ph.c', - 'test_dsp_r2_dpsqx_s_w_ph.c', - 'test_dsp_r2_dpsqx_sa_w_ph.c', - 'test_dsp_r2_dpsx_w_ph.c', 'test_dsp_r2_mul_ph.c', 'test_dsp_r2_mul_s_ph.c', 'test_dsp_r2_mulq_rs_w.c', 'test_dsp_r2_mulq_s_ph.c', 'test_dsp_r2_mulq_s_w.c', - 'test_dsp_r2_mulsa_w_ph.c', - 'test_dsp_r2_mulsaq_s_w_ph.c', 'test_dsp_r2_precr_qb_ph.c', 'test_dsp_r2_precr_sra_ph_w.c', 'test_dsp_r2_precr_sra_r_ph_w.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382957; cv=none; d=zohomail.com; s=zohoarc; b=kn8ovHwABwJV2WCaeUPVvhhF5K3XUBOCezBPpBgOyYGCywm6IcWbmI90bOLhTBbNJ/O502T98ER0Ik4Wp0uTe10KglcT/jTdLUoXWxM24K+js4iK804pc7ahCmTEjjSqZtWIm1CGXj1ZJ0CUrkt7y1HDZ5ayBi+ht4wSlpO/w4M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382957; 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=15OmZNYbzQCt2QVv5Xk4bwOjKMAb5Lq5EeNJyDejFnY=; b=lvEqW+NidkKveAjgizZDnB0flOgRnT2mdLMIes4FKEE14Mq2nr7JFcTrMuhhW9DFJRPe/CX2S89vgdHVBi0gB36fvgBJUEWg6EEpEDFPImr1Amjtv7Hmyd9b1V8/sfyNKd518KqAU2tI+N6cmzasb2ednOtveziOmt6DxIBUlhk= 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 1793382957699861.1642671593643; Fri, 30 Oct 2026 10:55:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpB-0005yr-Lf; Fri, 30 Oct 2026 13:55:37 -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 1xMqoc-0005fP-JF for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:00 -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 1xMqoa-0007w0-Ki for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:54:58 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERRjF2968389 for ; Fri, 30 Oct 2026 17:54:55 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 4hme6qmbpu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:54:55 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93f6f4fe531so162487885a.0 for ; Fri, 30 Oct 2026 10:54:55 -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-4abea533a1esm51239635e9.1.2026.10.30.10.54.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:54:52 -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= 15OmZNYbzQCt2QVv5Xk4bwOjKMAb5Lq5EeNJyDejFnY=; b=VRzmRzaC5jnJG6GF wNJ1LbZPSP30NSbPQ8LFmJDJejlE5YFxhbPutHSDEJ3dbCCFx8PRZSYIxt+RPNqX tbSSHnJn6VNUtgyOR9wUBrik/MNj7Uxwii7t9BMeoU6TQfx120AGFu/zeVo00kDJ c1n1hNuI8WjymwVtz7M7JA73Z1OmF98iZTuvHGGh3Mtxm2A+zToAiGJAerrWmGIu rY5RSJdwvLcODDdh1stHbRtOSv4xekLX30cr2Uf6xkR88fNFnU0LM73BFaZX0czb Ww/q+zTreJwLIlsk2gTwMLwCXPxVF8CY9LlWhMS1pqzNZKFeEUHEFH1aHe/fIBRr Ya2sSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382894; x=1793987694; 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=15OmZNYbzQCt2QVv5Xk4bwOjKMAb5Lq5EeNJyDejFnY=; b=fNPv58Mps+0p+T/BIkRn1vMPUqm5gPqdiqy1QdkpWxB4nTGVLDS3Qf5+ia/NSxXE9g iBQSE6xpSN0WTbKgN66lS+XyAEj/lMcX1XMtQLoVx98qDoPd1leMI8t7v+/qh9z9AVN6 9ZxCG+MvRzP6onBdz8A1CWMz+Yqew0teCAhF+p7C58OZbchHq0bi7UcJ9m8Hf6RwiU5N 7dvFeu1bI76N/5O5LdNiIaYwMSMY83vmal94z9ZiUQGMZRT5astv6zujBBH04iBH8aeQ ELOiUiBuBA1rrL5/3dj26TJABaweQw/tSoZEf+S9zQ16EyT5Up5kueJIQhVUqoWSFnwS 1RPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382894; x=1793987694; 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=15OmZNYbzQCt2QVv5Xk4bwOjKMAb5Lq5EeNJyDejFnY=; b=RmnXYHbVl0s2UtIhyHwU7m7qFhHzQDpe2wokKPVP7KATP5zBpvS0PzTkfM+dTergqh SN3nfLiv2rA68M9QH/cZI/uc0stmdr5Pzm9eWHKfwFem41EkYp/ZDmjbaSACZz5OQN1h oYWHH7MatjxjFu0KFWPAveJcbkIf84TneJcspeG9qkp71Vj+0ffJ1KPP//DyFi47D1IA 1FGm13+UrwvdEFTOQJjKpi0dFR3xuKvxZ28TDfg6/IQ9ysBDZf+RjRzK6dvGGMnxtA0c +kxMkxHNuopKRmTzUPENV7Z0MjO0ln4RRStaw5PZgF7EzMHYXALx0PUoOSZIvjQjNG5J 5hqQ== X-Gm-Message-State: AFq9FYL/+H8b53XdkWHA0epXN0NzWa5THEsYM/yUNK39LcgR6j5EhLgq ECOUZUZ2CWGmK5tq9t3CiPE6xIByl3hBEzaaQew3JHemnzO/cYOcicOQaOeIeIw522pipXt+dwK 09GCcC00AW05L1/57erbg2HPIKkUOrseWakAL4RTdBhqtWuWjVKkmxIqsKe21E81lcQEZ X-Gm-Gg: AYBFou3QuHQICDyBrCeClQybXowOb2ipfz3A/FmtW0PNPNly8Em3H+wxzSBKpeHsYL4 W1x6LhaACormgUMwVeGf9U1VtkBkINKTVG8VgJkbChNBJU6beF21tmKDz7FLdZvEWOnF2E/xRfc EAv5XJYYeXCrj7CXSsS7N2fPFVWGg+maIogmLrC/LTr+yB8npWoJy+3vWpP9kiP0wP0f1Hw6KLT IrMPKFfTaDnmH7AijOhXPCG7S8fzt8wfoYSrJtv+BDEnR7LfaMqnsMvLQtmfirIkZKYAGHOJhoQ NhKTqHtr+A9gZYgZH85kz5obExgsnSNpAyv/2evFd9rTefxwjr8l/ieZdk7V7PhUolUwtWzWOVe 7TA2cmNl50NgvXe57h57TGahBbHVajVxf74tp2ad8srKdnreyXxAVb4dePk2+f9/45m9XQ+hrvG cEqDM5j4Njd7vzPpFpf51cscPTfBRtVQ== X-Received: by 2002:a05:620a:608e:b0:93f:2bca:2cd8 with SMTP id af79cd13be357-94421796040mr499788085a.57.1793382894150; Fri, 30 Oct 2026 10:54:54 -0700 (PDT) X-Received: by 2002:a05:620a:608e:b0:93f:2bca:2cd8 with SMTP id af79cd13be357-94421796040mr499784385a.57.1793382893627; Fri, 30 Oct 2026 10:54:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 07/32] tests/tcg/mips: Group DSP mul tests Date: Fri, 30 Oct 2026 18:53:29 +0100 Message-ID: <20261030175357.99684-8-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX1NVIdOgH15bu LdJVO5aDiGVwYthmvBAa29u27opLImqYLRDrL5Qfnx3FGaJCxGGx+jPzGyUulmNV2E0TjY1HG7G XaJ2CptnENhO9wl/IVSo0O42qH3OKEbXXlax4pEqDrtl8xISr8cBA4gkOfpr+qGJ1GIRm5LPj2g 25A/SseBaz0IZ8VCJ++eO1bl3tcuhPwhW5j2d1xUvdgM1/eQ95FyoXihAU9ogSAqmh/gGGi9N2b 24idaePUvELJi/3eo99pgL9mbQq48zEvWv9xVNOMnF5291yo5Lytjx70qH29FpTE86Dv8HIM7DX RlP8j16+pXQY72vJ5S7vCFnSs4FtA+/qD5Omasvfwqs58YHfWMka7aGJC7j9ZmYtz9KzloF8jiR 6oGnr8A7Rn3l2ykzOK5C790B+ABsu1h7hnn6RNfDUu4Ab8/MWRAeky9pFWJt+9Cze6aitOJoiT8 CE5p6BjiXiS/uVyjlaw== X-Proofpoint-GUID: BedqOy8zkwVnnVmKtfugDjDd9lc2tZLw X-Proofpoint-ORIG-GUID: BedqOy8zkwVnnVmKtfugDjDd9lc2tZLw X-Authority-Analysis: v=2.4 cv=IumL47/g c=1 sm=1 tr=0 ts=6ae4d9ef 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=MrkvrxfUm_GaFPyPbecA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX8uV2NQIfd8vn NMd2bz+HHsXf5p79jM5ZSjdJfgPFfYohHMlJaAT6mDzevumXDKNBiRkD85Dc2FrMIoL1+njFfsC vMqgYeWaPiYyrNQzRjzsE9E36Gf4f3k= 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 priorityscore=1501 adultscore=0 clxscore=1015 spamscore=0 bulkscore=0 malwarescore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793382958641154100 Build the 10 per-opcode mul tests as a single executable, test_dsp_mul.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_mul.c | 64 +++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c | 1 - tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c | 1 - tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c | 1 - tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c | 1 - tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mul_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c | 1 - tests/tcg/mipsel/meson.build | 11 +--- 12 files changed, 65 insertions(+), 20 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_mul.c diff --git a/tests/tcg/mipsel/test_dsp_mul.c b/tests/tcg/mipsel/test_dsp_mu= l.c new file mode 100644 index 000000000000..4d1127c05b1f --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_mul.c @@ -0,0 +1,64 @@ +/* + * MIPS DSP ASE tests: Multiply instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_muleq_s_w_phl +#include "test_dsp_r1_muleq_s_w_phl.c" +#undef main + +#define main test_dsp_r1_muleq_s_w_phr +#include "test_dsp_r1_muleq_s_w_phr.c" +#undef main + +#define main test_dsp_r1_muleu_s_ph_qbl +#include "test_dsp_r1_muleu_s_ph_qbl.c" +#undef main + +#define main test_dsp_r1_muleu_s_ph_qbr +#include "test_dsp_r1_muleu_s_ph_qbr.c" +#undef main + +#define main test_dsp_r1_mulq_rs_ph +#include "test_dsp_r1_mulq_rs_ph.c" +#undef main + +#define main test_dsp_r2_mul_ph +#include "test_dsp_r2_mul_ph.c" +#undef main + +#define main test_dsp_r2_mul_s_ph +#include "test_dsp_r2_mul_s_ph.c" +#undef main + +#define main test_dsp_r2_mulq_rs_w +#include "test_dsp_r2_mulq_rs_w.c" +#undef main + +#define main test_dsp_r2_mulq_s_ph +#include "test_dsp_r2_mulq_s_ph.c" +#undef main + +#define main test_dsp_r2_mulq_s_w +#include "test_dsp_r2_mulq_s_w.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_muleq_s_w_phl); + RUN_TEST(test_dsp_r1_muleq_s_w_phr); + RUN_TEST(test_dsp_r1_muleu_s_ph_qbl); + RUN_TEST(test_dsp_r1_muleu_s_ph_qbr); + RUN_TEST(test_dsp_r1_mulq_rs_ph); + RUN_TEST(test_dsp_r2_mul_ph); + RUN_TEST(test_dsp_r2_mul_s_ph); + RUN_TEST(test_dsp_r2_mulq_rs_w); + RUN_TEST(test_dsp_r2_mulq_s_ph); + RUN_TEST(test_dsp_r2_mulq_s_w); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c b/tests/tcg/mipse= l/test_dsp_r1_muleq_s_w_phl.c index b3a5370fe59e..e9b0dc55071b 100644 --- a/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c +++ b/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c b/tests/tcg/mipse= l/test_dsp_r1_muleq_s_w_phr.c index 8066d7d02a1e..a8238c673293 100644 --- a/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c +++ b/tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c b/tests/tcg/mips= el/test_dsp_r1_muleu_s_ph_qbl.c index 66a382806a21..ce16164bc853 100644 --- a/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c +++ b/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c b/tests/tcg/mips= el/test_dsp_r1_muleu_s_ph_qbr.c index 4cc6c8f7cfe1..2baedb9f53a5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c +++ b/tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c b/tests/tcg/mipsel/t= est_dsp_r1_mulq_rs_ph.c index 370c2a801832..bd2ab49b0717 100644 --- a/tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mul_ph.c b/tests/tcg/mipsel/test_= dsp_r2_mul_ph.c index c7e9d60d12e2..bb92f6cbc0f1 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mul_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_mul_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_mul_s_ph.c index 33da110de869..092dd531f421 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c b/tests/tcg/mipsel/te= st_dsp_r2_mulq_rs_w.c index 7ba633bc17f7..f94c1678af09 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r2_mulq_s_ph.c index 00e015542e69..8c944c6ea3fa 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c b/tests/tcg/mipsel/tes= t_dsp_r2_mulq_s_w.c index 9c2be06cc08a..caa8e8d76193 100644 --- a/tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index c26f5fba06b7..4991c14b7bf8 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -9,13 +9,9 @@ tests_dsp =3D [ 'test_dsp_cmp.c', 'test_dsp_ctrl.c', 'test_dsp_dot.c', + 'test_dsp_mul.c', 'test_dsp_r1_bitrev.c', 'test_dsp_r1_insv.c', - 'test_dsp_r1_muleq_s_w_phl.c', - 'test_dsp_r1_muleq_s_w_phr.c', - 'test_dsp_r1_muleu_s_ph_qbl.c', - 'test_dsp_r1_muleu_s_ph_qbr.c', - 'test_dsp_r1_mulq_rs_ph.c', 'test_dsp_r1_packrl_ph.c', 'test_dsp_r1_preceq_w_phl.c', 'test_dsp_r1_preceq_w_phr.c', @@ -53,11 +49,6 @@ tests_dsp =3D [ 'test_dsp_r1_shrlv_qb.c', 'test_dsp_r2_append.c', 'test_dsp_r2_balign.c', - 'test_dsp_r2_mul_ph.c', - 'test_dsp_r2_mul_s_ph.c', - 'test_dsp_r2_mulq_rs_w.c', - 'test_dsp_r2_mulq_s_ph.c', - 'test_dsp_r2_mulq_s_w.c', 'test_dsp_r2_precr_qb_ph.c', 'test_dsp_r2_precr_sra_ph_w.c', 'test_dsp_r2_precr_sra_r_ph_w.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382987; cv=none; d=zohomail.com; s=zohoarc; b=MisDrjXvzAYXCyXf5LQeslzuS3TqyPlJyH90mivkHm47qIHlfvis0rn03PTTVlZEP8dLx8aIz0GEibeUUQWl1NhhapogCmcl1Ck5LwMVRCvl9tNrXdD+hEscG9Tz+E9w5DabSyW6Sq4zCuJ2tg02ipDE0ScsC1zDz3ZY4BKqn1Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382987; 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=x7FDklgo7cBmsbxVuU/0MnVEqX01qOy/B6aEnLw1L0g=; b=n2V25wJt0L2LkvDwK9U8UHHGG2xiJvWBuvSFMXW+nhLIcJJgDnEQsU1lTBy/jP6p68z+jv4LY3Ni7+YYxDhBCobQTgEcmTB6xVkK7TuyNLxRYKP10ZBZgYkPG/ZTRlqr2zZqQH/ANgt+KG7w1rbro3+nhiQpa1oQBj7X0uMQWWQ= 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 1793382987524176.0457979913516; Fri, 30 Oct 2026 10:56:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpw-0006jD-TU; Fri, 30 Oct 2026 13:56:21 -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 1xMqon-0005lp-DG for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:11 -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 1xMqok-00080f-DJ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:09 -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 69UERn8b1953698 for ; Fri, 30 Oct 2026 17:55:04 GMT Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pmb9v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:55:04 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7cc1bb97ff8so215530137.2 for ; Fri, 30 Oct 2026 10:55:04 -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-48e71b7815fsm4237019f8f.22.2026.10.30.10.54.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:00 -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= x7FDklgo7cBmsbxVuU/0MnVEqX01qOy/B6aEnLw1L0g=; b=HXT+6pqmnHom70aQ uREJdFcOsRAVGmuXTjj1fSof+BeYNu+xR6VMWuS8D7tyQaSvQRIvhHv1L3Kuvn0D 0BFp48aFykNwtSxzxVcFwKbyzj8T9FeyRAbWvUac2BSfeB6VLdjixDgNh5vWCDRQ p34/8dR8za3YfsLoZcWd9bybvGc1RPfeJgGdz7SM7DCL3AR1zF3y+Fc+JUD6uxZp aLX/jeAV4nWheeMYlHeWFKsX4nhkorVCTFCKzNO8dcWo1zM+x0KsG9Bytfp+K26b FcrvbHLVC87dhtCGRYemPPn0ICVGYDMyuNDcVRyiuCvqnyykRGItwm7ZGhhKoKJ7 bNaq3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382903; x=1793987703; 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=x7FDklgo7cBmsbxVuU/0MnVEqX01qOy/B6aEnLw1L0g=; b=J5YSBrb/m6LS3JU2zWU7yT5WcdT5HAsGboyo1k0EoWM+4QtWHUridCNUMryN+y72OJ OPN5fUf53iylx0FLqhuT9Xx595ApDbqWerejClwWCFIsuPQb7glOHX6YIq/SfX+7iP9Y ZfUn2igLblc6LhR8L5eaNoTrVCBaH5AyQXqK6A11CoiORPddYKQOTXdHWv37+n0ORxzy 3QYUtYytfAs/xlI34fYJ0iM0J6YvNFmOE0X3xLba5TjcEHchRt0zODUjsS2ERI92khoT WXJIjXRBphrTsznJ38YNFO9juGoM1zKurJW2d2eKNfz7is5m2wvIjDpb5chT+GVukgKL YHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382903; x=1793987703; 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=x7FDklgo7cBmsbxVuU/0MnVEqX01qOy/B6aEnLw1L0g=; b=QVFKh/T1FSVOT0naaSBTVP5ELFR2LIpQ0etkd4pj6zocwJImaQArr4xDHy56F7MLVY ts0znA3/dnrHrfygeA4H3Vn+SrfBOinNxnFCcuki8RJb4Cwv5ZlTphXjc7hp+696vmp9 NA3NnRUul0mu2ZAplDNW3y+Bu+sw7KljCp5L+CsUJKnmJPFJ5xC5J9dbyNoeV7HkVSUI WvjX+gNHuGwOwoGAV/wYhDzWk30zBGjEDZjegjGHXEup3mAfGm+BmDbjdGDPT3UcVYyZ a6csmVIvgWuCeD09Y/kPNaoLPIa7nvH9UstJOyCDY/W2zCi1kQyYTlbiFzDylRKxllwq UHfw== X-Gm-Message-State: AFq9FYIjnt99r1CUfgrg3P/T/aeRYPSxfbovXm03XaN+lcoU+QXZ2epx VumR4rzHuu/7yCbWxFd16w/GCvwLC5EUtIEtwtTPyY4DAxNUEKzcPac/u9IkDkWpv42sPBTIwMa LvDg8KShNuwctoQa3iT/2A3pl9PRjPxQk7D6gqrrY8o5L9Y2+EHPI8TbcNIWYJ2a2gQT4 X-Gm-Gg: AYBFou3WGSj5y0xWZGwtZjzLt6MICbaSBq+0MMTFWv1FGTjOyCLV6BK50tnjjjtDXnq fIaQwVI8lxXpos+attlpR3IklLwKlpKOB3bgfxSQO0b88bUn0Qo9zOi72TjQPiZ5XV3IhFUUCMT 6eZ+d1wADtdWap7Ek13SmzPiOE/vY75LN3wVzTDeeJoGIktvRg3MOpfcLf1pbBakBy31727n5JZ +DP1jXHMmvXJPZc00pe4rEHvbuGWqvS4y7FMd6y4tt61z2AVHOmgRas4Am26x5ZLs919hXCpwkn D4wk14iMCYycxu/aGd0q9EUpCjkPvm/zB7pm5tErdiaU3QuQ4YrTlCeJedN8RzL1PjwOxEidD2O Agxd/IZnlDCLIIZprO034MuEsop8/UzrOZ1Zvwg5PJrNqGxoImBx3nLOvX8waXHFi4/AOMe17Ae f7BQWkQKis5SmL9Yzj2jWSluNOyhmtgg== X-Received: by 2002:a05:6102:3e84:b0:7cc:26e4:1943 with SMTP id ada2fe7eead31-7d072ce1bd2mr1380117137.28.1793382903204; Fri, 30 Oct 2026 10:55:03 -0700 (PDT) X-Received: by 2002:a05:6102:3e84:b0:7cc:26e4:1943 with SMTP id ada2fe7eead31-7d072ce1bd2mr1380105137.28.1793382902605; Fri, 30 Oct 2026 10:55:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 08/32] tests/tcg/mips: Group DSP pack tests Date: Fri, 30 Oct 2026 18:53:30 +0100 Message-ID: <20261030175357.99684-9-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX/amWrBAQ//oL 6T9JcMZOm0sm2u/GzsasQAfVpzaQpqJHwDfkPhndEKxSnLHsKVQKJTA3sBRaMF2D9LdFjhiXZgi lM3U1pid/Lz33BO/IqGURJ8+PQzGPIlS7iAkuTCiwBYQNCgcbvoj8gYaudajrDItR0187JacsZZ qRupELDeqFKoI4XaHO4Owd66qd3EG5cYdMkGsQMcoJSsB31z3OJ4w4XBgDL5BLO47pwC3yM3F9r YKnnXy4b84/ln1g+OllVAdo41RarWKkSY0OXLZGp5Ios5gYdbPTAFJZxXRJlT69L7+3YLUVIXEp l2vUdhPhJt4/b570K7bTAeyNzVSC92FiSQCOVuFqgZecRz3v6EpBHWkQ7BaeeFOxYjUjl86wWxX 9qnxZVmn/LFiX0x7CZK5fxzlrDmNVMlGH94jGj4yNlRIhl9HP7+ZWHicXKR/Gs1dD2B91T1vj4X lN4BpFmfeCH/0hUFl8A== X-Proofpoint-ORIG-GUID: oYd8xU22GcebP1RMevzyuf7NR7RyHyDm X-Proofpoint-GUID: oYd8xU22GcebP1RMevzyuf7NR7RyHyDm X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4d9f8 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==: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=wx96bOdwd-L99dZWacAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6GV1mVtcYmVN 3LbNJKWJNc534icGWzjnwQk+9jlLiRysjJnKIIYeo23rO2sRBMvvohr93rUFZnNVuyLyeNNmcOQ om9LBIHJuj45Ps4pDI6dRrU4ZBsbsdU= 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 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793382989133154100 Build the 27 per-opcode pack tests as a single executable, test_dsp_pack.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_pack.c | 149 ++++++++++++++++++ tests/tcg/mipsel/test_dsp_r1_bitrev.c | 1 - tests/tcg/mipsel/test_dsp_r1_insv.c | 1 - tests/tcg/mipsel/test_dsp_r1_packrl_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c | 1 - tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c | 1 - .../tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c | 1 - tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c | 1 - .../tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c | 1 - tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c | 1 - tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c | 1 - .../tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_repl_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_repl_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_replv_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_replv_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_append.c | 1 - tests/tcg/mipsel/test_dsp_r2_balign.c | 1 - tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c | 1 - .../tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c | 1 - tests/tcg/mipsel/test_dsp_r2_prepend.c | 1 - tests/tcg/mipsel/meson.build | 28 +--- 29 files changed, 150 insertions(+), 54 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_pack.c diff --git a/tests/tcg/mipsel/test_dsp_pack.c b/tests/tcg/mipsel/test_dsp_p= ack.c new file mode 100644 index 000000000000..915742aebdd0 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_pack.c @@ -0,0 +1,149 @@ +/* + * MIPS DSP ASE tests: Precision, Pack, Replicate and bit Insert instructi= ons + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_bitrev +#include "test_dsp_r1_bitrev.c" +#undef main + +#define main test_dsp_r1_insv +#include "test_dsp_r1_insv.c" +#undef main + +#define main test_dsp_r1_packrl_ph +#include "test_dsp_r1_packrl_ph.c" +#undef main + +#define main test_dsp_r1_preceq_w_phl +#include "test_dsp_r1_preceq_w_phl.c" +#undef main + +#define main test_dsp_r1_preceq_w_phr +#include "test_dsp_r1_preceq_w_phr.c" +#undef main + +#define main test_dsp_r1_precequ_ph_qbl +#include "test_dsp_r1_precequ_ph_qbl.c" +#undef main + +#define main test_dsp_r1_precequ_ph_qbla +#include "test_dsp_r1_precequ_ph_qbla.c" +#undef main + +#define main test_dsp_r1_precequ_ph_qbr +#include "test_dsp_r1_precequ_ph_qbr.c" +#undef main + +#define main test_dsp_r1_precequ_ph_qbra +#include "test_dsp_r1_precequ_ph_qbra.c" +#undef main + +#define main test_dsp_r1_preceu_ph_qbl +#include "test_dsp_r1_preceu_ph_qbl.c" +#undef main + +#define main test_dsp_r1_preceu_ph_qbla +#include "test_dsp_r1_preceu_ph_qbla.c" +#undef main + +#define main test_dsp_r1_preceu_ph_qbr +#include "test_dsp_r1_preceu_ph_qbr.c" +#undef main + +#define main test_dsp_r1_preceu_ph_qbra +#include "test_dsp_r1_preceu_ph_qbra.c" +#undef main + +#define main test_dsp_r1_precrq_ph_w +#include "test_dsp_r1_precrq_ph_w.c" +#undef main + +#define main test_dsp_r1_precrq_qb_ph +#include "test_dsp_r1_precrq_qb_ph.c" +#undef main + +#define main test_dsp_r1_precrq_rs_ph_w +#include "test_dsp_r1_precrq_rs_ph_w.c" +#undef main + +#define main test_dsp_r1_precrqu_s_qb_ph +#include "test_dsp_r1_precrqu_s_qb_ph.c" +#undef main + +#define main test_dsp_r1_repl_ph +#include "test_dsp_r1_repl_ph.c" +#undef main + +#define main test_dsp_r1_repl_qb +#include "test_dsp_r1_repl_qb.c" +#undef main + +#define main test_dsp_r1_replv_ph +#include "test_dsp_r1_replv_ph.c" +#undef main + +#define main test_dsp_r1_replv_qb +#include "test_dsp_r1_replv_qb.c" +#undef main + +#define main test_dsp_r2_append +#include "test_dsp_r2_append.c" +#undef main + +#define main test_dsp_r2_balign +#include "test_dsp_r2_balign.c" +#undef main + +#define main test_dsp_r2_precr_qb_ph +#include "test_dsp_r2_precr_qb_ph.c" +#undef main + +#define main test_dsp_r2_precr_sra_ph_w +#include "test_dsp_r2_precr_sra_ph_w.c" +#undef main + +#define main test_dsp_r2_precr_sra_r_ph_w +#include "test_dsp_r2_precr_sra_r_ph_w.c" +#undef main + +#define main test_dsp_r2_prepend +#include "test_dsp_r2_prepend.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_bitrev); + RUN_TEST(test_dsp_r1_insv); + RUN_TEST(test_dsp_r1_packrl_ph); + RUN_TEST(test_dsp_r1_preceq_w_phl); + RUN_TEST(test_dsp_r1_preceq_w_phr); + RUN_TEST(test_dsp_r1_precequ_ph_qbl); + RUN_TEST(test_dsp_r1_precequ_ph_qbla); + RUN_TEST(test_dsp_r1_precequ_ph_qbr); + RUN_TEST(test_dsp_r1_precequ_ph_qbra); + RUN_TEST(test_dsp_r1_preceu_ph_qbl); + RUN_TEST(test_dsp_r1_preceu_ph_qbla); + RUN_TEST(test_dsp_r1_preceu_ph_qbr); + RUN_TEST(test_dsp_r1_preceu_ph_qbra); + RUN_TEST(test_dsp_r1_precrq_ph_w); + RUN_TEST(test_dsp_r1_precrq_qb_ph); + RUN_TEST(test_dsp_r1_precrq_rs_ph_w); + RUN_TEST(test_dsp_r1_precrqu_s_qb_ph); + RUN_TEST(test_dsp_r1_repl_ph); + RUN_TEST(test_dsp_r1_repl_qb); + RUN_TEST(test_dsp_r1_replv_ph); + RUN_TEST(test_dsp_r1_replv_qb); + RUN_TEST(test_dsp_r2_append); + RUN_TEST(test_dsp_r2_balign); + RUN_TEST(test_dsp_r2_precr_qb_ph); + RUN_TEST(test_dsp_r2_precr_sra_ph_w); + RUN_TEST(test_dsp_r2_precr_sra_r_ph_w); + RUN_TEST(test_dsp_r2_prepend); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/test_dsp_r1_bitrev.c b/tests/tcg/mipsel/test_= dsp_r1_bitrev.c index 04d8a3844eb8..08b49aff8353 100644 --- a/tests/tcg/mipsel/test_dsp_r1_bitrev.c +++ b/tests/tcg/mipsel/test_dsp_r1_bitrev.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_insv.c b/tests/tcg/mipsel/test_ds= p_r1_insv.c index 9d674697ccaa..58e1404b36ec 100644 --- a/tests/tcg/mipsel/test_dsp_r1_insv.c +++ b/tests/tcg/mipsel/test_dsp_r1_insv.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_packrl_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_packrl_ph.c index 1f8e69992503..32fdb27fa5cd 100644 --- a/tests/tcg/mipsel/test_dsp_r1_packrl_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_packrl_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c b/tests/tcg/mipsel= /test_dsp_r1_preceq_w_phl.c index bf70bf7d3aec..2d03bb8615e9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c b/tests/tcg/mipsel= /test_dsp_r1_preceq_w_phr.c index 3f885ef584e6..75a68d75e079 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c b/tests/tcg/mips= el/test_dsp_r1_precequ_ph_qbl.c index 63b7a9568345..644799d16671 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c +++ b/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c b/tests/tcg/mip= sel/test_dsp_r1_precequ_ph_qbla.c index 31627f0bd606..8825e696f39e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c +++ b/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c b/tests/tcg/mips= el/test_dsp_r1_precequ_ph_qbr.c index b6f72d3cbfde..fda12bb5e591 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c +++ b/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c b/tests/tcg/mip= sel/test_dsp_r1_precequ_ph_qbra.c index 4764fd031d8a..98cef45cc865 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c +++ b/tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c b/tests/tcg/mipse= l/test_dsp_r1_preceu_ph_qbl.c index fa95c26cc48f..f5a2b9ec9a6f 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c b/tests/tcg/mips= el/test_dsp_r1_preceu_ph_qbla.c index 021f21a74440..9eb9800b2323 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c b/tests/tcg/mipse= l/test_dsp_r1_preceu_ph_qbr.c index 03df18c72ca5..81d470de2347 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c b/tests/tcg/mips= el/test_dsp_r1_preceu_ph_qbra.c index 634327618cce..1698ff2c837a 100644 --- a/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c +++ b/tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c b/tests/tcg/mipsel/= test_dsp_r1_precrq_ph_w.c index 25d45f1a9aa8..1f04c644c44a 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c b/tests/tcg/mipsel= /test_dsp_r1_precrq_qb_ph.c index fe23acce8c47..e5512cd82106 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c b/tests/tcg/mips= el/test_dsp_r1_precrq_rs_ph_w.c index da6845bf2423..807f33c7ad73 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c b/tests/tcg/mip= sel/test_dsp_r1_precrqu_s_qb_ph.c index 7481d5af3a5b..a24b066056d5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_repl_ph.c b/tests/tcg/mipsel/test= _dsp_r1_repl_ph.c index 21074953bdde..13375231b54b 100644 --- a/tests/tcg/mipsel/test_dsp_r1_repl_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_repl_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_repl_qb.c b/tests/tcg/mipsel/test= _dsp_r1_repl_qb.c index 6631393ea131..2e65fb715485 100644 --- a/tests/tcg/mipsel/test_dsp_r1_repl_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_repl_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_replv_ph.c b/tests/tcg/mipsel/tes= t_dsp_r1_replv_ph.c index 07fb15f1f795..64a5c1b334f5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_replv_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_replv_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_replv_qb.c b/tests/tcg/mipsel/tes= t_dsp_r1_replv_qb.c index dd1271fedff0..5aecf82f50a5 100644 --- a/tests/tcg/mipsel/test_dsp_r1_replv_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_replv_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_append.c b/tests/tcg/mipsel/test_= dsp_r2_append.c index 9a91e1650dbd..62cf0e76a196 100644 --- a/tests/tcg/mipsel/test_dsp_r2_append.c +++ b/tests/tcg/mipsel/test_dsp_r2_append.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_balign.c b/tests/tcg/mipsel/test_= dsp_r2_balign.c index 537cf0451cc8..62cc0359e21b 100644 --- a/tests/tcg/mipsel/test_dsp_r2_balign.c +++ b/tests/tcg/mipsel/test_dsp_r2_balign.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c b/tests/tcg/mipsel/= test_dsp_r2_precr_qb_ph.c index 3a2b3fde0573..dce58816c815 100644 --- a/tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c b/tests/tcg/mips= el/test_dsp_r2_precr_sra_ph_w.c index 5c9baab03d00..9e65e7d2575b 100644 --- a/tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c b/tests/tcg/mi= psel/test_dsp_r2_precr_sra_r_ph_w.c index 6474a108c057..bb7bb97a231f 100644 --- a/tests/tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c +++ b/tests/tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_prepend.c b/tests/tcg/mipsel/test= _dsp_r2_prepend.c index f6bcd47b2da9..a77efa4d6208 100644 --- a/tests/tcg/mipsel/test_dsp_r2_prepend.c +++ b/tests/tcg/mipsel/test_dsp_r2_prepend.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 4991c14b7bf8..247db7d10d79 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -10,27 +10,7 @@ tests_dsp =3D [ 'test_dsp_ctrl.c', 'test_dsp_dot.c', 'test_dsp_mul.c', - 'test_dsp_r1_bitrev.c', - 'test_dsp_r1_insv.c', - 'test_dsp_r1_packrl_ph.c', - 'test_dsp_r1_preceq_w_phl.c', - 'test_dsp_r1_preceq_w_phr.c', - 'test_dsp_r1_precequ_ph_qbl.c', - 'test_dsp_r1_precequ_ph_qbla.c', - 'test_dsp_r1_precequ_ph_qbr.c', - 'test_dsp_r1_precequ_ph_qbra.c', - 'test_dsp_r1_preceu_ph_qbl.c', - 'test_dsp_r1_preceu_ph_qbla.c', - 'test_dsp_r1_preceu_ph_qbr.c', - 'test_dsp_r1_preceu_ph_qbra.c', - 'test_dsp_r1_precrq_ph_w.c', - 'test_dsp_r1_precrq_qb_ph.c', - 'test_dsp_r1_precrq_rs_ph_w.c', - 'test_dsp_r1_precrqu_s_qb_ph.c', - 'test_dsp_r1_repl_ph.c', - 'test_dsp_r1_repl_qb.c', - 'test_dsp_r1_replv_ph.c', - 'test_dsp_r1_replv_qb.c', + 'test_dsp_pack.c', 'test_dsp_r1_shll_ph.c', 'test_dsp_r1_shll_qb.c', 'test_dsp_r1_shll_s_ph.c', @@ -47,12 +27,6 @@ tests_dsp =3D [ 'test_dsp_r1_shrav_r_w.c', 'test_dsp_r1_shrl_qb.c', 'test_dsp_r1_shrlv_qb.c', - 'test_dsp_r2_append.c', - 'test_dsp_r2_balign.c', - 'test_dsp_r2_precr_qb_ph.c', - 'test_dsp_r2_precr_sra_ph_w.c', - 'test_dsp_r2_precr_sra_r_ph_w.c', - 'test_dsp_r2_prepend.c', 'test_dsp_r2_shra_qb.c', 'test_dsp_r2_shra_r_qb.c', 'test_dsp_r2_shrav_qb.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383060; cv=none; d=zohomail.com; s=zohoarc; b=FzWL6NN0lPQ1WlzqWOeHc9YOTWykch4m8uIbh1cWPH52vn4yrJdbehpquVSPQAo5GqTj4KQmO2aeb+VfvwhFmWrMmi37JpaCqRETPQsEPxu0mOvCeltD7FayQoHSEqjj4zx+ysBUe9WBAztWhvHuKqcRXg9/HTK/R2aCyaTfX2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383060; 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=zNT2nx81bVOW17acmjHr+AdOddr+C76UPQEnes4fLbU=; b=L5QePvSk/DkDLVwdG8icenPr5vD3xZDHhgKuDzNjMSX2BHQvTVAM60bHtJZ98eBWtJeBI+Ax8qYGwevXeEMwSzyz4sJsmmNf5gc6xPeRvP9S6kGlce5tJy+fo6HIOm6iLVWpVy0hX552SDZx5snBNXT1x+dF3dDMBA1qdEeZ0H4= 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 1793383060580361.9565666429993; Fri, 30 Oct 2026 10:57:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpv-0006cp-JW; Fri, 30 Oct 2026 13:56:19 -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 1xMqov-0005pw-EZ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:19 -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 1xMqos-00082N-JC for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:16 -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 69UERCOM3515438 for ; Fri, 30 Oct 2026 17:55:13 GMT Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qmcuy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:55:12 +0000 (GMT) Received: by mail-vs1-f72.google.com with SMTP id ada2fe7eead31-7cc175cb172so762716137.1 for ; Fri, 30 Oct 2026 10:55:12 -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-48e77409821sm100762f8f.0.2026.10.30.10.55.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:09 -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= zNT2nx81bVOW17acmjHr+AdOddr+C76UPQEnes4fLbU=; b=NgyjEfI5pEx8KvrZ h5p566B1PlnPF4qOc4gN7C97QKbFIgm8xYxULZOzTCwLeFM83QUxn3cPHRAzwr45 4MauOKDJe+nj2AKOGTy8bR7jmJ9k4txtoWA5MpfC2P+3MIE+/kXd+YN0j49HacQe BLzwzmMZp60lQt1CtaQ2x9iZXdwe/wDGtn8QP3NFUUlwhqWlzjrTcNtcF2pswQJP /xZYqHvau4d5vt/qA2c/Wz0KciIO7d5haNdAn2PWa7ZIc4GdkWUynFL2zco802Xf haFhMhDeJ53vgnZ3WObKPGMLFiwL2gGp9ygkmEE1eCauMxvCRBuhVHjE1phs19tL qBr99Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382912; x=1793987712; 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=zNT2nx81bVOW17acmjHr+AdOddr+C76UPQEnes4fLbU=; b=CVYiga4OsYSkiJZTHgKg5G31ZLBHeunZanDkIW0iWLITCPMrXeIcgF3HNlwSJZWWsU RtzgstHjZs8T3PhLeiNNnkn8AlBJneMhgDsXBZsOG/iho3siy9EIQFYhZucIIt2x3a7I TbXh4cJ3DuOiX94rRp8Tmcrn/+/OF5sS/BbEXcjb7mvhzMFR5I0mtFihHn2B3trxX+15 HI8Iqm84RDXlIPkOq5NPOt4seHt+2k8NV26ldhvkU0458OhSKs6y+0nQd/C4yGxBBGcE T6QGABXLAKMTStO1fjFFb+Y3JhCAdY/KCKRdOvla8ufP6Vn5bXkNpSGHNKdmawrhaDGO wtqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382912; x=1793987712; 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=zNT2nx81bVOW17acmjHr+AdOddr+C76UPQEnes4fLbU=; b=ZZUvsqwqf15JXEst53VfEFUNSgthUlelGQ4hTLeb+tBDm+Efdnj82xtJ8w7ZI+8O/g 9+kC+Y4/zefxk1eCB+GkaFNb4E0Kp3bJLeUrWB6ivHnXF40hBBd9YeQ6H/P9ixePYAsR O1m4KBoPV5HGKTgUdgZvdifHKXpcsU6d21tFPZx9c8iyoPi+8K0jFRtGt+FFzVPsytgs M+Tc/vUggF5Qaei73KiaFaUJvRtQK5IKLJnmWdN8hoMMXnTfUXa5Zl3yV8zGiVjyaWCM /DCOI6eOtByO7QfkoIrbmGCfuVDpb3ST2qhXZ36GDfdJGfCtut+uJpNLsVaph/+Oh8Zu DmwA== X-Gm-Message-State: AFq9FYKC5FWc1gnYUssMcqwxlvIU7ZOyLR+Sj+2c4ac1gO1HKak5UeWS Bshm5BeUvoMXGelbTfHFZqqHom9QtSpKI8G32Jo5NbhcWSCt92vHXC0mVse58scpGCRy/b2lFOd 2/HIR8qvvkZ9QfhYuZPtXSXlY7kLR7yBjjg9VlNxF8mJ6CK+IhRjr0+AwB5O0D9MSFvw0 X-Gm-Gg: AYBFou1rjkWwosD4jhrt3RFU+jUN6PqnWrIIjJGOcnchYnBVXmo9nI0p4WDsz+oi33y V3b4Ia2lvfSuY0j/urJs86S0vKYwA/saK2+CByW7FLvQaSQg1nN67tNr/1O6CA19VTWmnTiEPMg G5tmyg/SfWy4vwiX9Zb2Fba7naePi4O3gBVVRqs+BedMdbz14PfDbVReCw6g8QmoMSoLTN/bBb7 oGrlJhBVHrzTt8aNQEoKhwdW6Y+2XFz2RDgFS/2x491wR0d0QHwh9iJ02eUNJpIOb5uEU9YcvS3 OqbTTjVXp2MJ9/Vce+X27LuJSVcbclfBnLXtkUxVh01g6LM72SatpjdiT39EvWxddLAr1pQEBEq Qzjfca24XjYpO8GfFibfqsIvixRvtxy2qnOEF4D95wXmE/x/dvFyL80mq367/OIyEGEET8l9cFo CG0Wp5fjgVE/9MBQ5d9lTH1DvlCoX2wg== X-Received: by 2002:a05:6102:3ec7:b0:7cc:1967:5e3a with SMTP id ada2fe7eead31-7d072740592mr1734225137.32.1793382911417; Fri, 30 Oct 2026 10:55:11 -0700 (PDT) X-Received: by 2002:a05:6102:3ec7:b0:7cc:1967:5e3a with SMTP id ada2fe7eead31-7d072740592mr1734214137.32.1793382910859; Fri, 30 Oct 2026 10:55:10 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 09/32] tests/tcg/mips: Group DSP shift tests Date: Fri, 30 Oct 2026 18:53:31 +0100 Message-ID: <20261030175357.99684-10-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: yzhkETBzc-v1DjDj50vN3U_YYu1vh8yV X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4da00 cx=c_pps a=DUEm7b3gzWu7BqY5nP7+9g==: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=PBVPcx0-DJstsYKfvf4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=-aSRE8QhW-JAV6biHavz:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXyPy+sFHRPm5Z vS2coovuwDU20Iurpv8h2HZLRNiPjGRcqKeZ496fyJziN4BbNnLDaRtoeBwHdC4RIASguUuHQ4Z I8OKtutnd79o6E3LAopj5zeSaa0T4m/DS4fBoTqNBXbsmF3WNs8EUNLHoJsY12Bhq5BpIoBRokB 4UtGEXjHKPvx5iO3c8FyzpQuq/ox0Ve7s3D6pL/CbSjU0C6DAgqlz6XEJEf5wATX8ZJZgr3acum wM4t1N9lEJ/Bw+znnlDexi6rEpxvmPJjICZ9OVFAOCTxN5DL7e6jUcncLPkTQqOI/mzqa0mesnF Ax8LGnEk7y4Ih6kSVmQ0k8nYEVi83VI7NsMH+J7MbZfAuKb58tFklbIKZwmONBS1bNX92TOfw2c J7DwfnI6xsiLbLdlcy+ipvL5NtWH2PKLaNJCAlTtSlZHUaP1VJSQNbW/4aQ62zZvAou0cRsu82n YYV6xg+SvOoM+ksZy4w== X-Proofpoint-ORIG-GUID: yzhkETBzc-v1DjDj50vN3U_YYu1vh8yV X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX0VoN/nwdaW3P HO+beDwfMzzMEMIIqd59BeoIiu/qmfg1Zcmrqq6pJ7CFzdIuUmthfh1/w9qxB5f36e/TJgDs3SH cQJZjwIsDx+eVdgnAsC6YYHqO+F1fHE= 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 spamscore=0 malwarescore=0 impostorscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383062284154100 Build the 22 per-opcode shift tests as a single executable, test_dsp_shift.c, to reduce the number of test binaries. Each opcode reports one TAP line. All DSP tests now emit TAP: select it in the meson setup. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mipsel/test_dsp_r1_shll_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shll_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shll_s_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_shllv_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shllv_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_shra_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shra_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_shrav_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c | 1 - tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c | 1 - tests/tcg/mipsel/test_dsp_r1_shrl_qb.c | 1 - tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_shra_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_shrav_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c | 1 - tests/tcg/mipsel/test_dsp_r2_shrl_ph.c | 1 - tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c | 1 - tests/tcg/mipsel/test_dsp_shift.c | 124 ++++++++++++++++++++++ tests/tcg/mipsel/meson.build | 24 +---- 24 files changed, 126 insertions(+), 44 deletions(-) create mode 100644 tests/tcg/mipsel/test_dsp_shift.c diff --git a/tests/tcg/mipsel/test_dsp_r1_shll_ph.c b/tests/tcg/mipsel/test= _dsp_r1_shll_ph.c index 5fa58ccf6374..336ef50ca8a6 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shll_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shll_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shll_qb.c b/tests/tcg/mipsel/test= _dsp_r1_shll_qb.c index 729716d62618..60cd916766ed 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shll_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_shll_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_shll_s_ph.c index 910fea3b317e..833b1d5673c8 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shll_s_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_shll_s_w.c index 628c7521027b..1848afb21323 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shll_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_shll_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shllv_ph.c b/tests/tcg/mipsel/tes= t_dsp_r1_shllv_ph.c index f98a6322dc1d..bc1664d70d12 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shllv_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shllv_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shllv_qb.c b/tests/tcg/mipsel/tes= t_dsp_r1_shllv_qb.c index 6d8ff4a259ba..84600fc7fb36 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shllv_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_shllv_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c b/tests/tcg/mipsel/t= est_dsp_r1_shllv_s_ph.c index fc9bd32765b8..4c84f3b94164 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c b/tests/tcg/mipsel/te= st_dsp_r1_shllv_s_w.c index 350c25617adc..5c06b4411a0e 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shra_ph.c b/tests/tcg/mipsel/test= _dsp_r1_shra_ph.c index 5b2d840a6bc5..38fdc66e5b66 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shra_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shra_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c b/tests/tcg/mipsel/te= st_dsp_r1_shra_r_ph.c index adc4ae68bdc3..c838f8a32fe2 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shra_r_w.c b/tests/tcg/mipsel/tes= t_dsp_r1_shra_r_w.c index ec0cf2c72ccb..d722cdecd166 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shra_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_shra_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shrav_ph.c b/tests/tcg/mipsel/tes= t_dsp_r1_shrav_ph.c index 6e42aaf8e1a7..c2cad6e67309 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shrav_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shrav_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c b/tests/tcg/mipsel/t= est_dsp_r1_shrav_r_ph.c index f03b978d0544..ec2eea36b947 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c +++ b/tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c b/tests/tcg/mipsel/te= st_dsp_r1_shrav_r_w.c index 2ab03bb5daae..af50a92af2a9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c +++ b/tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shrl_qb.c b/tests/tcg/mipsel/test= _dsp_r1_shrl_qb.c index a7e4e6a5e4f5..bf6fab4ceb81 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shrl_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_shrl_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c b/tests/tcg/mipsel/tes= t_dsp_r1_shrlv_qb.c index db77f6d0e117..99d7aba6dde9 100644 --- a/tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c +++ b/tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shra_qb.c b/tests/tcg/mipsel/test= _dsp_r2_shra_qb.c index 48193de87ad0..d4ca7430fdba 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shra_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_shra_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c b/tests/tcg/mipsel/te= st_dsp_r2_shra_r_qb.c index 29afa0e4b07b..08d22fd4cd6f 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shrav_qb.c b/tests/tcg/mipsel/tes= t_dsp_r2_shrav_qb.c index b21e1b7ca64a..5015a124b89d 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shrav_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_shrav_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c b/tests/tcg/mipsel/t= est_dsp_r2_shrav_r_qb.c index 9ea8aa0cbb90..1bfc66ec3676 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c +++ b/tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shrl_ph.c b/tests/tcg/mipsel/test= _dsp_r2_shrl_ph.c index 724b9a7a4691..ea53113568e0 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shrl_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_shrl_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c b/tests/tcg/mipsel/tes= t_dsp_r2_shrlv_ph.c index ac79aa69acf0..40edd7cab67f 100644 --- a/tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c +++ b/tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c @@ -1,5 +1,4 @@ #include -#include =20 int main() { diff --git a/tests/tcg/mipsel/test_dsp_shift.c b/tests/tcg/mipsel/test_dsp_= shift.c new file mode 100644 index 000000000000..5b1884188587 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_shift.c @@ -0,0 +1,124 @@ +/* + * MIPS DSP ASE tests: Shift instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "test_dsp_runner.h" + +#define main test_dsp_r1_shll_ph +#include "test_dsp_r1_shll_ph.c" +#undef main + +#define main test_dsp_r1_shll_qb +#include "test_dsp_r1_shll_qb.c" +#undef main + +#define main test_dsp_r1_shll_s_ph +#include "test_dsp_r1_shll_s_ph.c" +#undef main + +#define main test_dsp_r1_shll_s_w +#include "test_dsp_r1_shll_s_w.c" +#undef main + +#define main test_dsp_r1_shllv_ph +#include "test_dsp_r1_shllv_ph.c" +#undef main + +#define main test_dsp_r1_shllv_qb +#include "test_dsp_r1_shllv_qb.c" +#undef main + +#define main test_dsp_r1_shllv_s_ph +#include "test_dsp_r1_shllv_s_ph.c" +#undef main + +#define main test_dsp_r1_shllv_s_w +#include "test_dsp_r1_shllv_s_w.c" +#undef main + +#define main test_dsp_r1_shra_ph +#include "test_dsp_r1_shra_ph.c" +#undef main + +#define main test_dsp_r1_shra_r_ph +#include "test_dsp_r1_shra_r_ph.c" +#undef main + +#define main test_dsp_r1_shra_r_w +#include "test_dsp_r1_shra_r_w.c" +#undef main + +#define main test_dsp_r1_shrav_ph +#include "test_dsp_r1_shrav_ph.c" +#undef main + +#define main test_dsp_r1_shrav_r_ph +#include "test_dsp_r1_shrav_r_ph.c" +#undef main + +#define main test_dsp_r1_shrav_r_w +#include "test_dsp_r1_shrav_r_w.c" +#undef main + +#define main test_dsp_r1_shrl_qb +#include "test_dsp_r1_shrl_qb.c" +#undef main + +#define main test_dsp_r1_shrlv_qb +#include "test_dsp_r1_shrlv_qb.c" +#undef main + +#define main test_dsp_r2_shra_qb +#include "test_dsp_r2_shra_qb.c" +#undef main + +#define main test_dsp_r2_shra_r_qb +#include "test_dsp_r2_shra_r_qb.c" +#undef main + +#define main test_dsp_r2_shrav_qb +#include "test_dsp_r2_shrav_qb.c" +#undef main + +#define main test_dsp_r2_shrav_r_qb +#include "test_dsp_r2_shrav_r_qb.c" +#undef main + +#define main test_dsp_r2_shrl_ph +#include "test_dsp_r2_shrl_ph.c" +#undef main + +#define main test_dsp_r2_shrlv_ph +#include "test_dsp_r2_shrlv_ph.c" +#undef main + +int main(void) +{ + TAP_START(); + RUN_TEST(test_dsp_r1_shll_ph); + RUN_TEST(test_dsp_r1_shll_qb); + RUN_TEST(test_dsp_r1_shll_s_ph); + RUN_TEST(test_dsp_r1_shll_s_w); + RUN_TEST(test_dsp_r1_shllv_ph); + RUN_TEST(test_dsp_r1_shllv_qb); + RUN_TEST(test_dsp_r1_shllv_s_ph); + RUN_TEST(test_dsp_r1_shllv_s_w); + RUN_TEST(test_dsp_r1_shra_ph); + RUN_TEST(test_dsp_r1_shra_r_ph); + RUN_TEST(test_dsp_r1_shra_r_w); + RUN_TEST(test_dsp_r1_shrav_ph); + RUN_TEST(test_dsp_r1_shrav_r_ph); + RUN_TEST(test_dsp_r1_shrav_r_w); + RUN_TEST(test_dsp_r1_shrl_qb); + RUN_TEST(test_dsp_r1_shrlv_qb); + RUN_TEST(test_dsp_r2_shra_qb); + RUN_TEST(test_dsp_r2_shra_r_qb); + RUN_TEST(test_dsp_r2_shrav_qb); + RUN_TEST(test_dsp_r2_shrav_r_qb); + RUN_TEST(test_dsp_r2_shrl_ph); + RUN_TEST(test_dsp_r2_shrlv_ph); + + return tap_done(); +} diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 247db7d10d79..9e446eed0f6e 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -11,28 +11,7 @@ tests_dsp =3D [ 'test_dsp_dot.c', 'test_dsp_mul.c', 'test_dsp_pack.c', - 'test_dsp_r1_shll_ph.c', - 'test_dsp_r1_shll_qb.c', - 'test_dsp_r1_shll_s_ph.c', - 'test_dsp_r1_shll_s_w.c', - 'test_dsp_r1_shllv_ph.c', - 'test_dsp_r1_shllv_qb.c', - 'test_dsp_r1_shllv_s_ph.c', - 'test_dsp_r1_shllv_s_w.c', - 'test_dsp_r1_shra_ph.c', - 'test_dsp_r1_shra_r_ph.c', - 'test_dsp_r1_shra_r_w.c', - 'test_dsp_r1_shrav_ph.c', - 'test_dsp_r1_shrav_r_ph.c', - 'test_dsp_r1_shrav_r_w.c', - 'test_dsp_r1_shrl_qb.c', - 'test_dsp_r1_shrlv_qb.c', - 'test_dsp_r2_shra_qb.c', - 'test_dsp_r2_shra_r_qb.c', - 'test_dsp_r2_shrav_qb.c', - 'test_dsp_r2_shrav_r_qb.c', - 'test_dsp_r2_shrl_ph.c', - 'test_dsp_r2_shrlv_ph.c', + 'test_dsp_shift.c', ] =20 foreach src: tests_dsp @@ -41,6 +20,7 @@ foreach src: tests_dsp 'cflags': ['-EL', '-mabi=3D32', '-march=3Dmips32r2', '-mgp32', '-mds= p', '-mdspr2', '-Wno-unused-but-set-variable', '-Wno-unused-variable'], 'qemu_args': ['-cpu', '74Kf'], + 'protocol': 'tap', } } endforeach --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383107; cv=none; d=zohomail.com; s=zohoarc; b=a5QCfKKxp+BAN9JR9SYsERIpRdNlFzVKkOvlTgPs1YCylgQBP6gX0VO1ZmXy2R10ypA3nHngPrW/mp2z7Vli1EAIxRgUkoxMZgynokHLViFGhdBYMtPmmY3y/x/FXtNqv382c9T8y1jyHJ2VlIekAybx/J7nXMdViyDjJIUUOK0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383107; 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=JiltmVjvphjPKdqNsV3APiZpcs3L3Po8Q5s6YD1Kcpw=; b=KDFx3yRBd2tBiUAQHhWR/O0fHTiWebYrMVygYKwYdhGvbmCbJ5UjSXYVYkxrQh1bNAJxEEOAPxyJcb6lKzAXP9nSvnHZmXXpo57HvfX1UseHzARYEGhWfz1XDaJcQcMXrIaHDaAjrDXidiomKmfdLjmhzPmqStzphD5/qfE9hHI= 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 1793383107358862.1881899288791; Fri, 30 Oct 2026 10:58:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpv-0006ec-Rj; Fri, 30 Oct 2026 13:56:19 -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 1xMqp5-0005yt-6n for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:28 -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 1xMqp2-0008Dd-Ue for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:26 -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 69UERnLQ1953689 for ; Fri, 30 Oct 2026 17:55:23 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 4hme6pmbaq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:55:23 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93f2c0e6653so164326685a.1 for ; Fri, 30 Oct 2026 10:55:23 -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-4aa7f322c46sm145747135e9.2.2026.10.30.10.55.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55: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= JiltmVjvphjPKdqNsV3APiZpcs3L3Po8Q5s6YD1Kcpw=; b=X6IcQxA+/UMhdXww rYusCeJw3LZul+0ei8R6T6QJjT0MVfCh36+jkFGFeHTaNqV+Ig4YuIKalZhkbUSC VjbvNcLndLyKsx5L8MF6gvDto8v4QiI47e57ysDZ1Q099CvT8o1n+SyRyF8nyll4 ddZSOGXyNXi3R9NSfSwxVWAXkUUULE5C/M7bZFAh4X05/bAfAT+gnBVTcMHFjD/e epyrylSTmNYN7gAs3Mzq6n21qeMyA9KVG9C3LBXDsOr5atnTL19UA8CH/yuWeox5 i9PzmTZJPv65sTxF3V9wnpqONruOXubnWltkx0cOrKRcOmUWN4QiLQuBs1orCI4P qe6KzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382922; x=1793987722; 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=JiltmVjvphjPKdqNsV3APiZpcs3L3Po8Q5s6YD1Kcpw=; b=HGkzg5O7FRoDTedqms8H/FCkSn45Q/SMzrhZWjzyaOhB7+zrXe6OXG6E6dvcqzTw9I aKNx7z8e+KCYlQRCMBI8xsvxPAoNIVqcqz/HpxkRZgLtTaPbwZp+7B0JfmYFfM55fiY6 l1+IA5rRWAs5yytc5XyZy+SWhBXrHOmButUWVgHDC8I1GZxmZfSRW0GzcJHKf62F16Ib sUjSJ3tG3me8qctKQ4NJhWt+AOeyq8S9TeCxNbd6VHE49mMYUqxEclLiz1JbwmHCF6yB 2nY6jpWqksvqOJgsDO5SBB8jIzJ1MqTLSi5fxJz1vPfi1ChieLSsnFRHNmH+6eIFVmHA WFpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382922; x=1793987722; 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=JiltmVjvphjPKdqNsV3APiZpcs3L3Po8Q5s6YD1Kcpw=; b=QZmXNYWwjXuHTCfvBVyJVyDTuxyFiJjd5epRoOc8sMYt9p327n3neh6YdK+i8HtDB8 HxD0iYxkIwbTrGgq9It5saRPoySrkrJyqJ02uaPW8cmdgK/K0RBKhiEx0lkBbwqehqtD 6dRuWvYyt+UrtPzbBTHvxwTdQFYSoAiDJlSH3F5Nm6mA001h1IatM+/NqMbI0uXpsyt5 5nd0LC3VTB3Orck+p6cr8SNemLAotHTWmcWqNq4SuqR2uGy0sYUL8HKPEXG13qOznU4o onar+7Guak8WW5YjlPztWE4KJh6uC9MUf7RQID6+D5rjg+9jVxaknQLtSknITXY3Z77D tVaA== X-Gm-Message-State: AFq9FYILO8fKVIZTvRoAHdKFhUX3EmNwo8n4z1gRdjy2qiJ6pz3+1vCv pDi0imSThmlt+fZ9F2iARTT23WtntXOFJVq/Orom3Of7EKvtreh650EuzACn4V9+SvULWtaQ/wf Ja4vA0XgRLJpyg7Pgay8dKFM0vMmJP5QpmR48qbU/sB6fZKAH4pCGILkAOKlZTt1qvUwE X-Gm-Gg: AYBFou1E8709bLjChvabihlr7F4xBQNgRHhcsbL7RdIE2N8Q1wAZtO7E93ce/YrbnrN KKO6VufcJOMCLuI+/vnsd7JhBhueKBZt3BjyVCwHJ6q58ty/tUgW3WdG4Tz9MHlspKwCmwGogjy C+NaFKaedXMqUfsn48IO44/flddiOpUS21qknrslF929JLgwioZoi2aWVUHX+Dmbhq+ewfS130K +S5C3gxaxLdBWvASCVIRdjeFjLijbQFMMLwDKA/hdXB+VqE7a5F0hNPg1okfZqbOoK6XLhXfsqX H0BC53xOsiOpZA1p5iD/FhEIePjcuT6JnFlUP4HXWRWy6azgcPB+XR/sVMloCBzXJfuBoppp41j ELYTBALYPdK9ugZcvCOWvhewbiiMvL7PpE9SOCq1RL/9eC4gVBxibDRGLwir6iHlfpTlK86O3j2 LUVLWu7OwZdxWMpo/+yCwymrpc8UmPKg== X-Received: by 2002:a05:620a:3942:b0:93f:2eaf:64d6 with SMTP id af79cd13be357-9442178de0cmr516447185a.48.1793382922183; Fri, 30 Oct 2026 10:55:22 -0700 (PDT) X-Received: by 2002:a05:620a:3942:b0:93f:2eaf:64d6 with SMTP id af79cd13be357-9442178de0cmr516444385a.48.1793382921750; Fri, 30 Oct 2026 10:55:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 10/32] tests/tcg/mips: Group Release 6 bitops tests Date: Fri, 30 Oct 2026 18:53:32 +0100 Message-ID: <20261030175357.99684-11-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX/A6Dfg9NQ8Q4 YUDmOS+3WEWe5C1x1RH3reym8/7XpVmbf8vFJ9mVlCdK8J6QQKEVdVc/Jw5nvQDZ9nDv8YSU+Nr f7v6xTvieov1ThlEzyMlqPH6cFvJNgGNPktSTsoepJKvXNExYFHLV35n/FwIlv7HIrB2gnAv6ge ICyHRsEeRbklvUNnMrpOA81j4T4j0fYNJuAb2Oi50VFxTIiqeo56bd7WILjqLnJabxlq8OqU1G0 SH32Fp18stWX66ody+4DjJ3ebeyk5LWHbOcBczsGxxRRI86JJ6AOaW7r+oKDB3Io9Kc7M2XTp/H ZXOh4o/7odJ3I7dBb5oXEkcqXmGStc9NQBfNZI3YS+Fvd2MY3Q8pzIPKRh/8jn2RvCJvRHtByuu JHt+HQbvAiu/eAfBmu26cK5pIaLKbXqzxl/EE9zck/SOH8/7t/85RNa2WMTgJ4r/pqmIJrEZwha qgOePNNppwEaAzNAGbw== X-Proofpoint-ORIG-GUID: GPv12AK1-KDAVLRNiV3pWa8n_71qgW7V X-Proofpoint-GUID: GPv12AK1-KDAVLRNiV3pWa8n_71qgW7V X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4da0b 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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=8Gv3jznxhxm61yiCS8AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXx2ZqtyqgtYZu mUE9iUyrjuk6kaDB6FDGoXdEINtUSnMozcOnp8l1zDUjdGSeeETHkpH3NooMhbH3j5ryHvHjRQD CJIfM1r5FdOyaUr5x1VctuSGQ8passY= 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 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383108954154100 Build the 6 per-opcode bitops tests as a single executable, test_mips64r6_bitops.c, to reduce the number of test binaries. Each opcode reports one TAP line. Prefix the per-case output of test_utils_64.h with '# ' so TAP parsers treat it as a comment. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/include/test_utils_64.h | 24 +++++----- tests/tcg/mips64/test_mips64r6_bitops.c | 60 +++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 7 +-- 3 files changed, 73 insertions(+), 18 deletions(-) create mode 100644 tests/tcg/mips64/test_mips64r6_bitops.c diff --git a/tests/tcg/mips/include/test_utils_64.h b/tests/tcg/mips/includ= e/test_utils_64.h index b785c26d0934..7767ee1a32a2 100644 --- a/tests/tcg/mips/include/test_utils_64.h +++ b/tests/tcg/mips/include/test_utils_64.h @@ -28,6 +28,8 @@ #include #include =20 +#include "../../include/tap.h" + #define PRINT_RESULTS 0 =20 =20 @@ -41,25 +43,21 @@ static inline int32_t check_results_64(const char *isa_= ase_name, { #if PRINT_RESULTS uint32_t ii; - printf("\n"); for (ii =3D 0; ii < test_count; ii++) { uint64_t a; memcpy(&a, (b64_result + ii), 8); if (ii % 8 !=3D 0) { - printf(" 0x%016llxULL,\n", a); + TAP_INFO(" 0x%016llxULL,", a); } else { - printf(" 0x%016llxULL, /* %3d */\n", - a, ii); + TAP_INFO(" 0x%016llxULL, /* %3d */", + a, ii); } } - printf("\n"); #endif uint32_t i; uint32_t pass_count =3D 0; uint32_t fail_count =3D 0; =20 - printf("| %-10s \t| %-20s\t| %-16s \t|", - isa_ase_name, group_name, instruction_name); for (i =3D 0; i < test_count; i++) { if (b64_result[i] =3D=3D b64_expect[i]) { pass_count++; @@ -68,8 +66,10 @@ static inline int32_t check_results_64(const char *isa_a= se_name, } } =20 - printf(" PASS: %3d \t| FAIL: %3d \t| elapsed time: %5.2f ms \t|\n", - pass_count, fail_count, elapsed_time); + TAP_INFO("%-10s \t| %-20s\t| %-16s \t| PASS: %3d \t| FAIL: %3d \t| " + "elapsed time: %5.2f ms \t|", + isa_ase_name, group_name, instruction_name, + pass_count, fail_count, elapsed_time); =20 if (fail_count > 0) { return -1; @@ -92,10 +92,10 @@ static inline bool check_binary_op_64_with_input(binary= _op_64 op, const char *op uint64_t expected =3D expect[i * cols + j]; uint64_t res =3D 0; op(&input1, &input2, &res); - printf("assert(0x%"PRIx64" =3D=3D %s(0x%"PRIx64", 0x%"PRIx64")= );\n", - res, op_str, input1, input2); + TAP_INFO("assert(0x%"PRIx64" =3D=3D %s(0x%"PRIx64", 0x%"PRIx64= "));", + res, op_str, input1, input2); if (expected !=3D res) { - printf("// error: expected 0x%"PRIx64"\n", expected); + TAP_INFO("error: expected 0x%"PRIx64, expected); ret =3D false; } } diff --git a/tests/tcg/mips64/test_mips64r6_bitops.c b/tests/tcg/mips64/tes= t_mips64r6_bitops.c new file mode 100644 index 000000000000..7b174afd6901 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_bitops.c @@ -0,0 +1,60 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: bit count and bit swap */ + +#include "../include/tap.h" + +#define main test_mips64r6_bitswap +#include "test_mips64r6_bitswap.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dbitswap +#include "test_mips64r6_dbitswap.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_clo +#include "test_mips64r6_clo.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_clz +#include "test_mips64r6_clz.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dclo +#include "test_mips64r6_dclo.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dclz +#include "test_mips64r6_dclz.c" +#undef main +#undef TEST_COUNT_TOTAL + +static const struct { + const char *name; + int32_t (*fn)(void); +} r6_tests[] =3D { + { "bitswap", test_mips64r6_bitswap }, + { "dbitswap", test_mips64r6_dbitswap }, + { "clo", test_mips64r6_clo }, + { "clz", test_mips64r6_clz }, + { "dclo", test_mips64r6_dclo }, + { "dclz", test_mips64r6_dclz }, +}; + +int main(void) +{ + unsigned count =3D sizeof(r6_tests) / sizeof(r6_tests[0]); + unsigned i; + + TAP_START(); + for (i =3D 0; i < count; i++) { + tap_report(!r6_tests[i].fn(), "MIPS64R6 bit count and bit swap %s", + r6_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 3b895a169758..cb9e09ed3c29 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -28,10 +28,8 @@ endif tests =3D [] =20 tests_mips64r6 =3D [ + '../mips64/test_mips64r6_bitops.c', '../mips64/test_mips64r6_and.c', - '../mips64/test_mips64r6_bitswap.c', - '../mips64/test_mips64r6_clo.c', - '../mips64/test_mips64r6_clz.c', '../mips64/test_mips64r6_crc32b.c', '../mips64/test_mips64r6_crc32cb.c', '../mips64/test_mips64r6_crc32cd.c', @@ -40,9 +38,6 @@ tests_mips64r6 =3D [ '../mips64/test_mips64r6_crc32d.c', '../mips64/test_mips64r6_crc32h.c', '../mips64/test_mips64r6_crc32w.c', - '../mips64/test_mips64r6_dbitswap.c', - '../mips64/test_mips64r6_dclo.c', - '../mips64/test_mips64r6_dclz.c', '../mips64/test_mips64r6_dmuh.c', '../mips64/test_mips64r6_dmuhu.c', '../mips64/test_mips64r6_dmul.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382992; cv=none; d=zohomail.com; s=zohoarc; b=Ve0H3R2raLOexEectDWHbusSey7rrjQ2v07/Mb1HVkMCwAQrIxdie9hsHfqMkSS9hH0oP7ICu5aDZjufITsyGpEeZP4CNHSkPngKAD03PjUuAWcdP1VIv00ByGn4u/NWX2xMDQCd5VpYHEb6qpM2gp+4ZSx0Ld8Zqu8zcAwitSg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382992; 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=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=QmB3XcLlodjRYNXoLL0ew226Ei3LklGskaKexU2odWWeHI1JTARvGjXObRCxSw9rCXwZb2g/qtCUBtQNXcOI20sB0zujRqTcO2UGGyUFx/g2gkwqoX3wokPARgLfU72WuCxai2+FVY7RsE6lAsjfsKJNkIhWUTTq2GgW9YFcRCw= 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 1793382992447677.5417945013172; Fri, 30 Oct 2026 10:56:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpx-0006m8-P7; Fri, 30 Oct 2026 13:56:22 -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 1xMqpE-00069R-1W for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:40 -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 1xMqpC-0008E6-8R for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:35 -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 69UERHOw378541 for ; Fri, 30 Oct 2026 17:55:32 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 4hme754a4y-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:55:32 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f37c94ceeso391500785a.1 for ; Fri, 30 Oct 2026 10:55:32 -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-4aa80f04723sm172789935e9.5.2026.10.30.10.55.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:29 -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= YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=jzEpR6FW0X5F7YVx iFAulwyzPDWpWr7FcDAy/ctrL2e+E/2/Rba7Tlivy0QCXnjeGLW2jEuirMScfBG1 iql2wFN//JO7XttwLU59Mi/3SOFEP1fqZRhXdH0y1yrXZ9hbjuOjlMVJMHYcaJV5 qqS/+41n63RcKfvB80KfL8c7sX4ya/+T5M3YGl4V97MCGqnDBzDkQVC96+TbjjIL wsqNzHwaEF95+OQ6gZ/lvKwZb5r+p4+VUrVXlBOAbduMrCd16EIlogVjbu7VusFj CYpj4eba3+QTaSBqK+Ez/NuAtOJAlpRdtjsNGUN93wMFRv87CibMuTi4uhieS6oX zuagAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382932; x=1793987732; 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=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=KWqkWPE37f73SYdrBJadikGhr4Gw2K0YIDhl3NO1mxKbvJt37ef1DDayHh7b7ATEke dul9rlM3utlua1CAyJ6DiqU4jCqWNvbNIHFekH056gmtd7CGLWEviJ1GCr4VLULPpp3V uR49+/wnZw4o9YlUsmakLRHsP3dYsVR5n3km5ZMx5jYSVux8JvdBDThmgED0IBrnEXR0 DoRxkKQOZQSxJT9zS22UU/rTjOXgItStc5FyklN0PedFMZtmzlzmgdhgff4pqKrQM9jH cx+LBwEAbeGcsVFzGBxHU2hRJgQWeZNTNQS2YOKc++C4yfnhgLenQeCtfdzqzB5/oI4T K1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382932; x=1793987732; 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=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=BN86sPwCXkl6nGUa51m6U16e1lHleDinuWmyH829ajHJlZlUwSM/PU3rcMehk+TpGa OVP9XlfMvRd6ZgK1BvcXui6L9qPIYFC/Fk3GNgCbOaV4Amq9loUDH86Z+sKUhrWNLIJZ TVck+jXYZTQjWaLYvLUPWA1ajKMEKFMsJxV+PDlXJIcFKnrWdfY6P6WYL3KzfWHCdU2R BwUBQGGI31LFUCFxdu5SxvFB7CWqmffu03IWx/Gc/nVzWg1bHoYjWmfxF3k9WcBqde7M xXUaaYeU60XtVAqgP9ZKwe0XmAM1uz3oM37m1ovF/UNLhHO5ZvSX88jjZLNBVTBy+BW+ ILmA== X-Gm-Message-State: AFq9FYIMtmoc12aKFP6KRETkaUBIB/6GAzp7wQH4PftNLojcuNs48DS2 6tNs+RKt/Ikgk68lBe5ojnCn4mzl6QJeY9opoGqk852qXckcwunaPru0sDmLopWQXkVWgq8Zqo2 kNQ7NXwnG99gSZM6M4cSonGDk+1bDXBqe6MhGrMHnB9avB+zH/AYWJ2FgmbjmStLl6FFB X-Gm-Gg: AYBFou2BsSvKa50UmuYJSxGIFG81orL9ymqTSN2HaHu9c4/PGCALcsrALOU892dyWZ2 +6u92Vl5E3CC9xI2k0vaZ2qR5l/5ypU1GiTe/5QgGgOpah/+tL0uGCWDZE4wqX1A7BYRNIjJLhr Y5apNa91JUS84kzl5/Hp+K0uqMiWcgLmpiB7mU9udtPyfTo9Q+0I0PpJnN6fQ4cXE6CkfPmZag+ Y73f3lEgPAzI0cgBq9QPKRFWw/r0VArSMBxa8mnl4GEbUREiLjRzgcOql/VChrRUuDERKr6Ev05 UYTbDGJcFeAUy0b/AUrbz9COu+RIlhv8cbRkd67EA88hixdxNwiGl954J+Xwa7gSsPycJKM/KUB lL3gtWVSeS59R7cICzcEje4sVFjAPU3vZnMDEMNUlFpG3GBRDqPDV10makcUsNTwlODC+WRTrfa uAeiqb0F26jfAb7r+c2f40cYLoYzjYgw== X-Received: by 2002:a05:620a:450f:b0:940:f224:5a66 with SMTP id af79cd13be357-944133b8d86mr993896285a.30.1793382931587; Fri, 30 Oct 2026 10:55:31 -0700 (PDT) X-Received: by 2002:a05:620a:450f:b0:940:f224:5a66 with SMTP id af79cd13be357-944133b8d86mr993891185a.30.1793382930661; Fri, 30 Oct 2026 10:55:30 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 11/32] tests/tcg/mips: Group Release 6 crc tests Date: Fri, 30 Oct 2026 18:53:33 +0100 Message-ID: <20261030175357.99684-12-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: -Xr59860Eq9-vMkSZVW3FUZ8li2VaTFA X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2DvZtbtM19FZ 9QYUf9FJNdncZbbggL7og8NI2oh6hX2uFCzJN+spdPD8tFIK2SSQx6Bz2r7chOFPYxGOa/zcuOs MzOKSeEGTArkH3co1xHltS+969pwTdLDijI61FLfOuRIoAlpjAJNa6x4eRltAIvqR7XPCUOU6MI HsQJ6xXueKViGmzw7Os8XCskCjcebZ5iEJk/Mooh3moSS0GLdStmx3f25WzsOembYvQ8+CIvYnL K2R5gAJWnYzMU1vD4iyMYhz0Wie3lfh+pp4BgWnUt0bsAT70w7U29z0p1iE5j1JJG0WMKWnikOj MsLBAUnH/KZ4rB0hrtfGiLsjLHkTC8X1V2B2FlJWKA+AxNehLFctCoM3YAgRMTuxk30ZGglZDeg Kv+emQcZ/XsKPEFMh3J/OyI+iVWwYgUjo9dZLEC3zLso2h5tM47Tu1XC2cxiUSTI0soH5I9v6P5 DpXpt0KNquPI0UOSlQw== X-Proofpoint-ORIG-GUID: -Xr59860Eq9-vMkSZVW3FUZ8li2VaTFA X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX5qu7PcDA1WVm QKEJpU/4N1PFTQa76LD9/fNxEqOVMUY2WSUfdxrSA53TiahO9C2rpP4Ls0S0D8QoDcpqQwlEAJZ 1pjBWAMgnBY5nDQxdqUnkXdyAsbEbC8= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4da14 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=mgfkhx_GbAYBFjwR9pIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO: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-2610300071 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: 1793382995162154100 Build the 8 per-opcode crc tests as a single executable, test_mips64r6_crc.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/test_mips64r6_crc.c | 72 ++++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +--- 2 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 tests/tcg/mips64/test_mips64r6_crc.c diff --git a/tests/tcg/mips64/test_mips64r6_crc.c b/tests/tcg/mips64/test_m= ips64r6_crc.c new file mode 100644 index 000000000000..75943cf21353 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_crc.c @@ -0,0 +1,72 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: CRC32 */ + +#include "../include/tap.h" + +#define main test_mips64r6_crc32b +#include "test_mips64r6_crc32b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32h +#include "test_mips64r6_crc32h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32w +#include "test_mips64r6_crc32w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32d +#include "test_mips64r6_crc32d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32cb +#include "test_mips64r6_crc32cb.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32ch +#include "test_mips64r6_crc32ch.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32cw +#include "test_mips64r6_crc32cw.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_crc32cd +#include "test_mips64r6_crc32cd.c" +#undef main +#undef TEST_COUNT_TOTAL + +static const struct { + const char *name; + int32_t (*fn)(void); +} r6_tests[] =3D { + { "crc32b", test_mips64r6_crc32b }, + { "crc32h", test_mips64r6_crc32h }, + { "crc32w", test_mips64r6_crc32w }, + { "crc32d", test_mips64r6_crc32d }, + { "crc32cb", test_mips64r6_crc32cb }, + { "crc32ch", test_mips64r6_crc32ch }, + { "crc32cw", test_mips64r6_crc32cw }, + { "crc32cd", test_mips64r6_crc32cd }, +}; + +int main(void) +{ + unsigned count =3D sizeof(r6_tests) / sizeof(r6_tests[0]); + unsigned i; + + TAP_START(); + for (i =3D 0; i < count; i++) { + tap_report(!r6_tests[i].fn(), "MIPS64R6 CRC32 %s", + r6_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index cb9e09ed3c29..0601ed52ab21 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -29,15 +29,8 @@ tests =3D [] =20 tests_mips64r6 =3D [ '../mips64/test_mips64r6_bitops.c', + '../mips64/test_mips64r6_crc.c', '../mips64/test_mips64r6_and.c', - '../mips64/test_mips64r6_crc32b.c', - '../mips64/test_mips64r6_crc32cb.c', - '../mips64/test_mips64r6_crc32cd.c', - '../mips64/test_mips64r6_crc32ch.c', - '../mips64/test_mips64r6_crc32cw.c', - '../mips64/test_mips64r6_crc32d.c', - '../mips64/test_mips64r6_crc32h.c', - '../mips64/test_mips64r6_crc32w.c', '../mips64/test_mips64r6_dmuh.c', '../mips64/test_mips64r6_dmuhu.c', '../mips64/test_mips64r6_dmul.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383134; cv=none; d=zohomail.com; s=zohoarc; b=OnC9PcAoQPBxhx/PD5zcH4HX/qdMJhiaKokmaJ/ucUcuOOab/e6O0utrbK6ouxw4s/da5wBSr4ODt5zNufA/Urfh5ECK6AfdshdcM8BD719o5P51HWW+VIidbcjTBwL13nNO5NJzKqBNX6CBHCAERxOUTRmzaQT778ulL17Vm4I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383134; 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=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=fzueKIWF7JLGAdrrdHBaksS5sAg8hG1sZU0rioDA1IPn+SYT211p6e94QO7Qb7O8M9D7O5RIuEMfvt50oUhkO1/o+pRx+rsrwp7RcDbvjyEJv+S+XOF+arkGVDnKiLe0bIMvWGCP2CGzwaWthQ4h7I2+RnYxtHnptl2CA2r1mxM= 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 179338313496771.8428032174902; Fri, 30 Oct 2026 10:58:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqq6-0007c5-BL; Fri, 30 Oct 2026 13:56:30 -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 1xMqpN-0006Dh-Iy for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:54 -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 1xMqpM-0008El-0e for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:55:45 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UERASS4102832 for ; Fri, 30 Oct 2026 17:55:43 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 4hme6qmb3w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:55:42 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7d06f3784e2so233127137.3 for ; Fri, 30 Oct 2026 10:55:42 -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-48e71b727c6sm4583046f8f.16.2026.10.30.10.55.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:37 -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= xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=HW2MCVs/1ktH3SRM No4Omh3cYMcinGTk5un8cGkiOpu7Fh/D4gN1yv6EhOCr6S0OGDu6kpEuvexWophO pOLqdiS5aect+m6LO0y4/KeCadwgzNigz0PG1GmGsQ/LiS6n/n01v427ygO3+XCn 2KV3vhP6mOoucaXZYoUHC4ZquWatHximwTlABehtwr8reKowE3b8LbMTQTcTtA+T VmE7QDa+hUI9NrjWdIWaYtTwmNsNpa7EWxo95goNfS8DigO8Zbu3xpS1C8I53Hue Fdd8OkNuCXdGXXs+/cJC4XXWEA87FDM57ZItW/8fY/MN6m3sgBB6L1foLSbDocJD rMWmJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382942; x=1793987742; 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=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=cXXGbWQwWie3pZhslfdltp5AUD6kdAEokiMCbwrq3f8Ytd8kVIOzkTB1qXRwZHJ8ID YnmjvcyUeDvAuIPKSc1TQzzerRsN0DeUBDDIcNnNL+0iLsJuYBxJ/a5x+ob1oHJE1AXn DSB1n14wUMMSxDKHIyJPBo/jDUi2jkRg4Ly1+FUQKIijJyzEhl4P9umcGmyrksbw01PG Rd//Xmphi13zrAhiFZSCFKKH1BVMiq0H5RzWHj467m7Tfjyf3DOAJkcCAU1qdMbgC95t cwboxCF4HlIOLIrhIk3N0QFjx40jxMsLFbCuX83NW3iVHXc/6636aVuH7baSLAUKdeX4 xhEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382942; x=1793987742; 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=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=B2j6twM6Mb8dsT43Ya5am8N+BTvrn77H3QF6N2wx/e+Xh/Op7vT3Q2f0L5gYeHqEUo RVSJqIXv1RIyw3lCplDiYAzT3yn6aSYowMrAJEAeUwD70+cnhc4vgHyY1Mu3m2aFmaTA MtOfJH2HjWTZmAxt3BnthBIYKfyTOCloYbBgbFBKluEEFbi+GkHSFWHsiL+bj/RZo23k u0gCL4tMTFJXn8aMQiTdh37NwotFp51JjFDhtX+EUFkbmQFQ5wHBFaYy97ZBp2g/zOlI k0lGldmVI/WLiQEL8zZxVgLj+WsfZ3HaI8wJWEjXTv3X5FwAOVNWFniOTU7AdZu9LYJs bwEQ== X-Gm-Message-State: AFq9FYIXjG3U+ixqBY5RgbFj3WdsZzlFMjuu/NiIdIvSgaSdYr3BZGw3 yj1EVsV6y+5AU/uFbvhdFI5p7Nsl5/7oLrWe8jJB6tu34fdQGjwPbmgWO5RZUDYMi4jq9NU7CVK PE9hjNHy7Vm+5l2/cPA4SPIjSjUO7Tcdw7snyXyrAS6v1rBlgSoSi6ZEOURZQBWYZ4AS5 X-Gm-Gg: AYBFou3RmmXKNQ0h3xBSLDPYm9gS8QgWxkRz1rRSDZEmevnAhrrwP+QLg947cPe6wAN /eZO0fZV8sN701I8ZKNLNwrnqgoVweexHvsQycNne0dCfny45h1J+VMhDs2JHALHIA/nEs5bSsL YDxG4yigtMr/vGW4yBPzf0TXA2hzbOP59MblYiOe/mcJGgFGONzilj6/tS5ee2opEj+L4XYh584 jSDPjvSnvqMj473FchGX1WUQV/U1BHO5aX+mQQrZOl7h/N/OJOvki+8EPuRXWe2R2YetLiIFTCF Qb1gHnNivLC5HPGJ4c19PmbU+mNvAjap5PUFY4b5zUNOsybwg9vyrmTPw9KDv/mXHRXrWQB49FG Vt+FpjNkeKv7I+/WmYUp+USSF6FXkVxSqTJYk27Dg0l2iNAG24dGllgPwyGUBTbUDyYNFrMFQA7 y71GCAHNVDUutAaa9IDh/pObzL7HgvQg== X-Received: by 2002:a05:6102:5712:b0:7c3:881f:b620 with SMTP id ada2fe7eead31-7d072c56c97mr1535977137.21.1793382942052; Fri, 30 Oct 2026 10:55:42 -0700 (PDT) X-Received: by 2002:a05:6102:5712:b0:7c3:881f:b620 with SMTP id ada2fe7eead31-7d072c56c97mr1535964137.21.1793382941593; Fri, 30 Oct 2026 10:55:41 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 12/32] tests/tcg/mips: Group Release 6 logic tests Date: Fri, 30 Oct 2026 18:53:34 +0100 Message-ID: <20261030175357.99684-13-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXxQbxv+eEOmXn NC9czcSYxwqo6EAh21szRxRZE7qGDL19iFgksEWI4X9582tuEYNyCkyN6/fa3oyHv/QYri2Cb3/ +x7xDrYb1EuBn/wZpQQfcZnsYaSr0h98/gkGTr4Js0Q5IIvIhx0R3pbBmXKp3SkGBzcV/70iuoo cRwvlvfJrueTQPIIUPB1uKvpePMvCeapNKZ3YaASUFKvUWa6EJjiC/66nQbjvXiw18VCFj3GZu1 5qsuRTdYozeZDVFCDqsbVbV2OZLL0l4qxH/0ELqzSfh+M74vgAKP9o1GihOQyHCzd2ViY0JuuAx bcj40yBPNkG/WvE/Zfq5qKjQLQfjLLdA4vkrZRaQdy1CWUdA/V9IahOdvkr8T4mtF/+Sk9s9jBS i8X1w3ss++A9bZTDXfDoLffBlT5ErLWXM+gW06yyiml7+yzFXbpaZt1mRt71nkyTqzCG5mI2Ywo f3olxNdKyJgFZRcFmbA== X-Proofpoint-ORIG-GUID: rHZ5C-SpExz531hEpin10BHoKtcaM9LN X-Authority-Analysis: v=2.4 cv=IeoSymqa c=1 sm=1 tr=0 ts=6ae4da1e 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=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=KuQ5aknWMmF4MApjBakA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXyByW84WJ7rYX Pu1uLTgPR+7NfzdU4dKiWHkyXmvkh5LN11pZ4acf+omaikUkB0liNrwyCGYGQ3AfLXkhKcutP0h U4n2I49DIm+bgX9+ms6+2oDGB3W6o+s= X-Proofpoint-GUID: rHZ5C-SpExz531hEpin10BHoKtcaM9LN 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 clxscore=1015 suspectscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383137346154100 Build the 4 per-opcode logic tests as a single executable, test_mips64r6_logic.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/test_mips64r6_logic.c | 48 ++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 5 +-- 2 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 tests/tcg/mips64/test_mips64r6_logic.c diff --git a/tests/tcg/mips64/test_mips64r6_logic.c b/tests/tcg/mips64/test= _mips64r6_logic.c new file mode 100644 index 000000000000..063f2c254d78 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_logic.c @@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: logical */ + +#include "../include/tap.h" + +#define main test_mips64r6_and +#include "test_mips64r6_and.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_nor +#include "test_mips64r6_nor.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_or +#include "test_mips64r6_or.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_xor +#include "test_mips64r6_xor.c" +#undef main +#undef TEST_COUNT_TOTAL + +static const struct { + const char *name; + int32_t (*fn)(void); +} r6_tests[] =3D { + { "and", test_mips64r6_and }, + { "nor", test_mips64r6_nor }, + { "or", test_mips64r6_or }, + { "xor", test_mips64r6_xor }, +}; + +int main(void) +{ + unsigned count =3D sizeof(r6_tests) / sizeof(r6_tests[0]); + unsigned i; + + TAP_START(); + for (i =3D 0; i < count; i++) { + tap_report(!r6_tests[i].fn(), "MIPS64R6 logical %s", + r6_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 0601ed52ab21..657a1c4d5cc9 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -30,7 +30,7 @@ tests =3D [] tests_mips64r6 =3D [ '../mips64/test_mips64r6_bitops.c', '../mips64/test_mips64r6_crc.c', - '../mips64/test_mips64r6_and.c', + '../mips64/test_mips64r6_logic.c', '../mips64/test_mips64r6_dmuh.c', '../mips64/test_mips64r6_dmuhu.c', '../mips64/test_mips64r6_dmul.c', @@ -42,12 +42,9 @@ tests_mips64r6 =3D [ '../mips64/test_mips64r6_muhu.c', '../mips64/test_mips64r6_mul.c', '../mips64/test_mips64r6_mulu.c', - '../mips64/test_mips64r6_nor.c', - '../mips64/test_mips64r6_or.c', '../mips64/test_mips64r6_sllv.c', '../mips64/test_mips64r6_srav.c', '../mips64/test_mips64r6_srlv.c', - '../mips64/test_mips64r6_xor.c', ] =20 foreach src: tests_mips64r6 --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383083; cv=none; d=zohomail.com; s=zohoarc; b=CJ4a90XDfdgjKGsITAed+Y3TPJv8ywDueVQwXi9BNc9CA5eLJYpCTsZnlOMhyRfPLjoSSsY/5gpjTc4jdIAMvDWL+oV4lGDCPICGm5FcclHxkLzN++yfgO7zK8NopUJhf+bH+j5kVuopVrfP5lItjnTLt6QbEL46NjAiBLnXbd0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383083; 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=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=Q3R963uqC7s87u+H/EKAmeyCq/otAfmONqAbf3A0+VdKYOJtrXWVWwJ8tyobtBFmkphulnEGrjB6W3fe50F4HA5NxOK6FSBZ4g0l8llIRdxIFDNBM4eDXORhinNXk/OnzdF2fovuz8cIy+HUitsF/hCu/fIkB3De/4jYrOQShjk= 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 1793383083894996.1516623601034; Fri, 30 Oct 2026 10:58:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqq2-0007MI-KF; Fri, 30 Oct 2026 13:56:26 -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 1xMqpp-0006SA-0d for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:14 -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 1xMqpn-0008Ft-6W for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:12 -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 69UHu98i3057245 for ; Fri, 30 Oct 2026 17:56:09 GMT Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pcbbf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:07 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7d06f3784e2so233173137.3 for ; Fri, 30 Oct 2026 10:56:07 -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-48e71a4d4f9sm4522921f8f.2.2026.10.30.10.55.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:47 -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= YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=VgLokB99JpZaAbdo Aij4iju/e6iQsLT1e6cA5nhHfEihwJ/jLfmdOu/WhEuL9p4R/MJQJYC0ajW52PqK HVJvS50mG48VW8rX9CfM57fT/6FgxlWx48JayWGAdBeQHqc0cArvoohItxmoVpkQ Jzm2JMTnZJgH9E7U2+fLyaZadzeylNkJSKLsNVECX/Sd10UIhDi9koHs0PE61Rrl sAguPQvPIdn7SC0Hy05Hxajq4J8zouPST91k3Aonz+iEu/BSXFXRIPt/zobCiSrM 8Xe4ihArafK4q6BFrXEFWAa5XykRitW3aFCoMNpyMYzvd6bdW1vwe0aktqtFHfN5 bEy2GQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382949; x=1793987749; 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=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=EUcyuSBjeAgpnW96lPbG7HZX7XwCZkKPz5i8Zrv/uJ1Ai0AiLbtHY1K+YYIPT3p1Wc PW7lrLNTxQBYCQwna2e7NycdviCdOslWQ+AYBZZa55DapzIJsYLwuWoXyTIXCqU/gn/0 zTidoTjNJ3l1bWDLvHSzkJMGrAQ0w7We8OgRzlVs0+B+awHLLzsoCost6jO8pVL9Vp/U rMsHy+4eocDdW03Wygv0u/2RgulW3wWjOWN65LLEbIS/5z5g27+fbpykZ+U8B2UrpsJQ SCmhJot579oPzgznY06X0kbV+mSHNRJ8prcx6gM6GEU7q7J8TyKD3H2SHUtaTrdJ16/5 Ff5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382949; x=1793987749; 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=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=MMqwKrH2UBIiiWCyqzKksnz8q0mRXHceczrDHSMg9aJctowJ9HviF1ETShteyrVnVH sRxwgbkUAl2R753r9m886SgDkZR+aBV2QK9QG6+6+QxJse38Ui93kYhQUgPu3MCJGIhp ryJ3vbXToTyZ+Ge58GUAKxPNa/qgN9YtZUt1wVKwR9mdjebpNAmETXI/j3+wA32YL3cw vMuCuZLddFeQcsFgKEtR4bVOr6kZo34Ep/lQB2usJV2tT2niP/23hYMinAMxk7xZFOcQ 0cM3yf8JK+VSgoEwDi9hCAIVtT7ef0zjSPxJ7IdrzNeAQrUsxrsH7rird98XRk6LGyvP bLTg== X-Gm-Message-State: AFq9FYKek9P3qeZUhbTXBKQ3zSaABHvoq7e494sAs/ToD7w2oLqUT+JM nVof/RhQSWX2N7PT74daMVjuRJhbf5yzXydyJL3WaKWBOS0V1LcI4nMf69rHD+TCAmnmwxBNQ2h X4oGjeoI3EQzY1GhRWr5xG0tKIDxwTxuGIQszWQ6VKVP/TNA5dQEk2NwoIDF5dvUIZoDF X-Gm-Gg: AYBFou3p470XEPi7UdVZ4+vAXFCIvQn8Hc4BikiuKLNHFwhtAuJPT0tZRjZCZ/wSNP5 /Lt3VRDPCjGRrQEM0mGd1+aZmHZ0p8IJq6xCCaXMwufvPCLTVr7PY8F/UiGYOC5/mNwbhZkwmsJ xfnduWwmnIfBUpGosdKuB/X+eAguBzptVpYJ4jY0uoJlCvm/0p53qpV1e/7JiWO1cltFlABcDwZ wzAHqxiMdVrwLpNAh2VHUTDDYLY6qQuamK0OgYA9gNwQnvqNALPKuMr3iZGJJBX+g/NNBRLN0l9 2lKlRBNVTuy6hRhLmuc7DjHRKLx4CnNAZkmwPOJE1bduQiu/Oyoc9feiRZdhVXwVxTy3XYQ+uOA 3H7RfhQLj1Erw2OJ2XdWtrohhDntWHtrnVnqIZUSR/XGXwOam2IDzpyhpO6ZmaqihURKNvc7AAk xQQ7innBCHVL2GZWFZjWMjvOvBbPKM0A== X-Received: by 2002:a67:e103:0:b0:7cc:226a:f963 with SMTP id ada2fe7eead31-7d072cc29e5mr1244023137.28.1793382949248; Fri, 30 Oct 2026 10:55:49 -0700 (PDT) X-Received: by 2002:a67:e103:0:b0:7cc:226a:f963 with SMTP id ada2fe7eead31-7d072cc29e5mr1244012137.28.1793382948793; Fri, 30 Oct 2026 10:55:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 13/32] tests/tcg/mips: Group Release 6 multiply tests Date: Fri, 30 Oct 2026 18:53:35 +0100 Message-ID: <20261030175357.99684-14-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXxz+zvGbAZ1cH OmNirA4Kicv3RmbAqwJ7z7STlm5kBxvjFRxwS7TqeqRmNrPEqs9rkZuaUaVrX4ZBknDouSAvdEF iP/W0Jyl8BmEtuKbAp6+SfJuuhWbU3imrjlHnm2vebwQc2UqTG2vXtVgKj6qHJs84s9+eq3QyXH DqbXH1MDVH8Rdwdt4gzdv/Zz7SFrsSixZOBT04qAu1ljmFxofImaAK0orf5HMYTCWlc1AYCNt4o GFo9/AxdlP+twILLrJ4avQnhgpJu3UnKb0xvQ4KULNXxy2Dguo+UXcREIprX/+LOPA3NydY8TmE UYW4/Nb9RI9z9kwQMP91LHYvMAKSiMRfEnsdzHKEovJMLlc3dj3Ds5em80TAP2JHtNm1YMtmkQT h/fUVHuxZQwSzMCiqirQ6/HSlLYn7CrnmsgTf4wlig/GkQPoaJwiqRGpBuo5SZ09jyGstFPhbdx Sux1tvEQWKdssjssV8A== X-Proofpoint-GUID: neuxnxvo81RX_Pnr8SHjO86Zt-ijecMh X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4da39 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==: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=bvgRRmj5kG-2naEzI9QA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-ORIG-GUID: neuxnxvo81RX_Pnr8SHjO86Zt-ijecMh X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX/BQMdgBjoe4Q wqBmdgXtm8a7rY1k/L4buBUQnm30izU0q2vLUJeeoWCyjFRuaFtisOi+ep61rKKGTAUGBPJqZ2p oNNL/Yw5BGEOgfodE+egkO4bxArjSpA= 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_06,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-2610300071 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: 1793383085171158500 Build the 8 per-opcode multiply tests as a single executable, test_mips64r6_multiply.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/test_mips64r6_multiply.c | 72 +++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +-- 2 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 tests/tcg/mips64/test_mips64r6_multiply.c diff --git a/tests/tcg/mips64/test_mips64r6_multiply.c b/tests/tcg/mips64/t= est_mips64r6_multiply.c new file mode 100644 index 000000000000..e400d418b9fd --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_multiply.c @@ -0,0 +1,72 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: multiply */ + +#include "../include/tap.h" + +#define main test_mips64r6_mul +#include "test_mips64r6_mul.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_muh +#include "test_mips64r6_muh.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_mulu +#include "test_mips64r6_mulu.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_muhu +#include "test_mips64r6_muhu.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dmul +#include "test_mips64r6_dmul.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dmuh +#include "test_mips64r6_dmuh.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dmulu +#include "test_mips64r6_dmulu.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dmuhu +#include "test_mips64r6_dmuhu.c" +#undef main +#undef TEST_COUNT_TOTAL + +static const struct { + const char *name; + int32_t (*fn)(void); +} r6_tests[] =3D { + { "mul", test_mips64r6_mul }, + { "muh", test_mips64r6_muh }, + { "mulu", test_mips64r6_mulu }, + { "muhu", test_mips64r6_muhu }, + { "dmul", test_mips64r6_dmul }, + { "dmuh", test_mips64r6_dmuh }, + { "dmulu", test_mips64r6_dmulu }, + { "dmuhu", test_mips64r6_dmuhu }, +}; + +int main(void) +{ + unsigned count =3D sizeof(r6_tests) / sizeof(r6_tests[0]); + unsigned i; + + TAP_START(); + for (i =3D 0; i < count; i++) { + tap_report(!r6_tests[i].fn(), "MIPS64R6 multiply %s", + r6_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 657a1c4d5cc9..d356689e54bf 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -31,17 +31,10 @@ tests_mips64r6 =3D [ '../mips64/test_mips64r6_bitops.c', '../mips64/test_mips64r6_crc.c', '../mips64/test_mips64r6_logic.c', - '../mips64/test_mips64r6_dmuh.c', - '../mips64/test_mips64r6_dmuhu.c', - '../mips64/test_mips64r6_dmul.c', - '../mips64/test_mips64r6_dmulu.c', + '../mips64/test_mips64r6_multiply.c', '../mips64/test_mips64r6_dsllv.c', '../mips64/test_mips64r6_dsrav.c', '../mips64/test_mips64r6_dsrlv.c', - '../mips64/test_mips64r6_muh.c', - '../mips64/test_mips64r6_muhu.c', - '../mips64/test_mips64r6_mul.c', - '../mips64/test_mips64r6_mulu.c', '../mips64/test_mips64r6_sllv.c', '../mips64/test_mips64r6_srav.c', '../mips64/test_mips64r6_srlv.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793382997; cv=none; d=zohomail.com; s=zohoarc; b=fLcxGta8Q4iCfec00cfrHqqFWZU9Yuphl3OSuaObvxssCXLckqnWERydw1yVFdHrzY0fs2EPnqRZBjSKYDDmuLbD98JzrAIZQQHJnkAk3kYm7dZXWaV1UA4y+To0fWPrUUVVRHzgsX3GFP8NsQTZwtspmH7qAWaI/W+Gzo3f+eE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793382997; 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=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=DYmnURCZNkkFBXPswA26la6LnfflLMbktAJdJZDmaxtvywJpb7w9GoEBPUPbR4/7zzaChQJg+kO5SB6f+dcWEw/LEMQUfRuorV6DrL24+6jlYtiWO/kIZWYRkpIRc4FbCEXLjGguuqseErZ4+Js+8y2yr3BCsyP11WJ0j2q6LVQ= 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 1793382997786362.20057409218316; Fri, 30 Oct 2026 10:56:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqq0-000760-Ik; Fri, 30 Oct 2026 13:56:24 -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 1xMqph-0006ME-3Z for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:11 -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 1xMqpf-0008FN-F6 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:04 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UHu26u4011238 for ; Fri, 30 Oct 2026 17:56:02 GMT Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qm8d2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:01 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91c861b562eso19304956d6.0 for ; Fri, 30 Oct 2026 10:56:01 -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-4abf7146621sm77996885e9.13.2026.10.30.10.55.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:55:55 -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= uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=HtB9s2ogLp4kP1zn 2vIiwm/q33pK96P6PKuOQEFU1E5Xa/RqBKQKsYGri+4PwpEP7WH8kwVIGRAiyMXW UBSxCd0Y5+BsObC/TsyZ3IDyMsc2ByzrnLKvZzIOeZ2IV4K0F/49nb7B1sOKzZCz k1JWQ+MPev3XQFuREYWLfLZo84Q2FHYzhEe1TJOlFye1F2ktwZH9nK/jSg6RgRsk VT/SlkrhE3CDn5yFQsYtyWhVGZdaLVRMjpd3L6F5D/iDWzAfhqrDWl01KBk7o87s UrlFBOUTwuJN6a7h5DrE5J7+exKT0dHX0QwZhbLq1II23IqhD8ZIfg3Iq1Jm8u6q cIBGRg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382956; x=1793987756; 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=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=Z8uV0l5mgY1CnS48+oayDg9GuoW5zd7c+ls/vNV1f3FgwpDwzJPxXqF5lg3v1Yz2pW uX0N031b+hU/rqvBXgWYBitZQU/CzxKyhuhBM7NoVcP/mUm8DEF59zrdgl3HmVJQPIj2 BTZ2SsQ8P197uaTcWeFoaS4nTa8gNRjyG1KrzkxkjN0FxJl3JqX08J8jgjjmNRlh7DUy OJgctH6YXNrSBBGs3OJlOsPXatHhR5nu4E8TucDY1jAxH12kbZ/MPVVVYJi5lxolHJHL 2GMNqux7OrMcjl+LXCqy1eioT6vIBywrPYeug6auQBzQ9CnqW0oh4vNek2XuvTfaFXJ5 WbMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382956; x=1793987756; 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=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=qA5ITebqEa8hTvZJhVik71yuntfk099W4RH+p2OEsyiE6mQL3nDN13FJa1g10wGaSV hYz6+TsovyK1HX/OQIrQDFkBPTnd/jl53tp67RQsPwoI0E1nML78q5oWzkbVzpzFcZbD 3cNJDr8el/oMqFN9gYfKPoJpUeKIMV+VE4TspQ4BVh1AMNyOmSau5yXCSwcNPaOltyFV s9AkS7jdc0fbAuNrUDdk/hSWGm0qnyRDUsPNhrl9gy6LWnEiZosqmeQJRQwdta5IhpLv R5HcW5ejfBv/VQPRMOZcIsDQmFb7UnpFGeKm5Qm4JM/f1Q50DrXTAC6jZ0IfnDgJ6Pry B8jA== X-Gm-Message-State: AFq9FYJfHiqnL6vb0mlUmw6XhzzHYl/pvL9wxx1ZSc/6p4OjLIWWylZb LLaaCBP772CZzBWo5zw70xPh0PDBRNxftC2rrtonAN2oIWMvQDKWWRuIXqYNNQ44O57XmwdzVCk 48GD9l39FXiCVGVQr9Lhu8g/kvgMaVq9CEGWnvDCC7wEmfL98ou0A/Jmi6VY/rxYURj4E X-Gm-Gg: AYBFou2Tnc5EIOzqipAqrszwnvvT5CWQsC9DYM+1M/TkC0KXct98rM80pRSktCRMu9h c4n/+dl2kqPYgxBrFT3871WuJhRMtw5kp52fxdKjwdt4hzTAaoIKar6Jc289g0WO2uSsMAmNqCB dStH2/7EqEgc7f/1tigUsZjacMSbSIK0aeo1QfO9DqT3AmmzzTjc1cNuCOr2/XiC1+158SdfLy5 dOc8oYCmC9TWKSaSpZUSZeL3QK2YRDpZVhHzwDPa8HBzTtF0/0L19ZIlcgnnoLBZi3by7ejAXxP 4ciPyulaK2NQtzPv09UeWmY8yduoSSJhtvgcRMrbJ12kqHquuaCDL22hhhUOkmuzaChRFvMWdYP CFbhf47knUksYbHEShA8XSf258lG/SdHSskpEuF8CrL0bS6wJivm/m7x0dFh4sEwYroPQ9jWnXi JQwU2vnnD5UQecOGQn1b/DAONcrv9J+w== X-Received: by 2002:a05:620a:8017:b0:93f:2aa8:c550 with SMTP id af79cd13be357-9442171b967mr524099385a.26.1793382956230; Fri, 30 Oct 2026 10:55:56 -0700 (PDT) X-Received: by 2002:a05:620a:8017:b0:93f:2aa8:c550 with SMTP id af79cd13be357-9442171b967mr524096885a.26.1793382955750; Fri, 30 Oct 2026 10:55:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 14/32] tests/tcg/mips: Group Release 6 shift tests Date: Fri, 30 Oct 2026 18:53:36 +0100 Message-ID: <20261030175357.99684-15-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 45PVoKp4zaGkWXHStsjURg9jRqPecKdq X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX3kFi/dt1dDg4 v734PVPKf2HTMb4w1iyX8MXKcpGbqABK9YUl8Xr6TCmrlRW2U06MCp0VNfhAlNzK3MNOxwsRZ2N i5qWL3sb/eFcekHgvrCSPcrKpqZcAok= X-Authority-Analysis: v=2.4 cv=DfSCOftW c=1 sm=1 tr=0 ts=6ae4da31 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==: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=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=XEEDF0r_pM4_IqxSCIsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 X-Proofpoint-GUID: 45PVoKp4zaGkWXHStsjURg9jRqPecKdq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX3SNpLvPCsOe1 iSQcZezjK6zIUj4imjHws9QofKESonagYp5PZMHjOBJXwdYkNfJnrelIPa73RXVYzNzxHDF6JhK P5TLnu79qeLKH/x53wBHSVhC8Kklonez8ssLT3O11EejU8dj0N/YMpynz/6YmCNU8uoLKO8M6Ee wTD/m1TmZycga4Rg7HRlToNdm+gJ+HIvuHlZaUe5H+09glaJzoiVkhAmMHKEovjZAikQdL6zY4f hAs/kL8VsqSZAbClo8MahOFooFqaK7FOSlm98RHCq1f6R6eTIVGE8GUGTUllhYKOIUOEtTuL7/q xXlOpgxKttfJWUg3dVVnCPqYyoDWcvCvfZnRxk0V4JV8lfWzT7q/sCm8+1SHRzHSS5cjqvArXO0 7vH2+4vNpcjcSNoXL6yr34I/NzpfhckJiJ2b11U+2mmf1hay0SbDSz7cMkKCFbilGm6f8KcpiTe TUHPslcADA7/eVfmwLg== 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793382999685158500 Build the 6 per-opcode shift tests as a single executable, test_mips64r6_shift.c, to reduce the number of test binaries. Each opcode reports one TAP line. All Release 6 tests now emit TAP: select it in the meson setup. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips64/test_mips64r6_shift.c | 60 ++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +--- 2 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 tests/tcg/mips64/test_mips64r6_shift.c diff --git a/tests/tcg/mips64/test_mips64r6_shift.c b/tests/tcg/mips64/test= _mips64r6_shift.c new file mode 100644 index 000000000000..928112e35c0d --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_shift.c @@ -0,0 +1,60 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: variable shift */ + +#include "../include/tap.h" + +#define main test_mips64r6_sllv +#include "test_mips64r6_sllv.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_srav +#include "test_mips64r6_srav.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_srlv +#include "test_mips64r6_srlv.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dsllv +#include "test_mips64r6_dsllv.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dsrav +#include "test_mips64r6_dsrav.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dsrlv +#include "test_mips64r6_dsrlv.c" +#undef main +#undef TEST_COUNT_TOTAL + +static const struct { + const char *name; + int32_t (*fn)(void); +} r6_tests[] =3D { + { "sllv", test_mips64r6_sllv }, + { "srav", test_mips64r6_srav }, + { "srlv", test_mips64r6_srlv }, + { "dsllv", test_mips64r6_dsllv }, + { "dsrav", test_mips64r6_dsrav }, + { "dsrlv", test_mips64r6_dsrlv }, +}; + +int main(void) +{ + unsigned count =3D sizeof(r6_tests) / sizeof(r6_tests[0]); + unsigned i; + + TAP_START(); + for (i =3D 0; i < count; i++) { + tap_report(!r6_tests[i].fn(), "MIPS64R6 variable shift %s", + r6_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index d356689e54bf..894f8e9e23e1 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -32,16 +32,11 @@ tests_mips64r6 =3D [ '../mips64/test_mips64r6_crc.c', '../mips64/test_mips64r6_logic.c', '../mips64/test_mips64r6_multiply.c', - '../mips64/test_mips64r6_dsllv.c', - '../mips64/test_mips64r6_dsrav.c', - '../mips64/test_mips64r6_dsrlv.c', - '../mips64/test_mips64r6_sllv.c', - '../mips64/test_mips64r6_srav.c', - '../mips64/test_mips64r6_srlv.c', + '../mips64/test_mips64r6_shift.c', ] =20 foreach src: tests_mips64r6 - tests +=3D {src: {'cflags': '-march=3Dmips64r6'}} + tests +=3D {src: {'cflags': '-march=3Dmips64r6', 'protocol': 'tap'}} endforeach =20 foreach src: tests_mips_msa --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383002; cv=none; d=zohomail.com; s=zohoarc; b=mhyECQCZQTktHl3pKGEb5aaYyaPKtJ0dxUQ7mOS35g9n6e3zxpFuvag5/Ak8Ve3ufEKkqzp7Rt72cLBD3lhnkniBlDjz67L2UU9ltCuZBlNsstjYwdaWNmcFlLdsv8usv9YoQcwBTWWz7/+KZqLZr9bpr+0OB9U6fvuS6ik9zV0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383002; 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=UEZKY5IWNF/1UIZ8r8xDhoCc+uH8wnxV452oj1Jk18M=; b=M90gf0Gekfk/tW1cLJmRt5so/M1OQ9j6iecBZOq48lICvwE294lgwY6heBuPXy0O6S5q1aNmtYpL+B1LrDu1kWbNAtECUTUgN4AzWsigClYa4dQ/Mk+vv5Rw+cSXE8FNYBZd2Pmm5o4rGyQQsQuSPA7N3TDYqn6GqYXgrWJrjSw= 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 1793383002295241.40951478306886; Fri, 30 Oct 2026 10:56:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqq6-0007dW-Gf; Fri, 30 Oct 2026 13:56:30 -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 1xMqpq-0006TK-Mb for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:16 -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 1xMqpo-0008Fz-KL for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:14 -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 69UHuBlS2954496 for ; Fri, 30 Oct 2026 17:56:11 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 4hme6p4c0v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:11 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f2373e9b4so98751685a.1 for ; Fri, 30 Oct 2026 10:56:11 -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-4ab61d8b9f4sm112118375e9.12.2026.10.30.10.56.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:03 -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= UEZKY5IWNF/1UIZ8r8xDhoCc+uH8wnxV452oj1Jk18M=; b=VG7iwBE7SaYCOKQM Lc0KNFWOQBOkOddpPJeYR8JZ+WX8pd3x4rLZMe19LHfO063pcvYGwtUo4xx0MRvl i6ZU29g1RpVvdUMQo6+bl1SK1uIHrx7fXJchi2an+kmJIur1/+Ng5p/4u7npRv0X cz6LOq70aQXdPYqgnfW+JB4FdCF2JvBlhQnYAEcALnV0hrk5s9UVshKorJ9qKDXT BTGBurp9XBIIVuEBW+fOw136PedvN5sUC9EV8VxO6KD4RDxxpl8eGkXz6zbko1S6 2nhb+mH/M2Fy+1MLtV3CxO8azBj4L8l1Ta5jelP+KLOTwlv8PLACJKJVqodABbtw ba43RA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382965; x=1793987765; 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=UEZKY5IWNF/1UIZ8r8xDhoCc+uH8wnxV452oj1Jk18M=; b=LyUWgI/vK5tIOcoI+KsJ6rticHE5fXVWdJtpJnfXGygnp0dry3Sk9bAWlXZIcEUhIk g3dS+Rjul2PcArashhwKeiCzf7ukNCKe5CKoi9xIexpFNIVA4xeZiBW7uJDuuaq9sNKO G84I34jqbL9+3qOnRiwebVMkxpNsqfnlem08ipHIBlf9bAtbzJm+MO+ioXFeP651wQBQ duxnyasWRGjnvdR1dpircF6vyU/tIpA1kf9xsk33VbnXrv3SvwXlOmxurNJ76C6qZq9V uIl2yt9WKubbYpegQV79SQkRvqMpuVhBu1VZzYNIIgyo71pONOfgFDqC1PYqMsfhaaDi 8IMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382965; x=1793987765; 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=UEZKY5IWNF/1UIZ8r8xDhoCc+uH8wnxV452oj1Jk18M=; b=lIcSxwKpw/MOAPK/kQxhl/mnN0JmzSJEaqiUt/lX14xsdkiN+JflvdDuEkAXbFvjxg jL8nrQZ2dhdx8331RF/IXmbYFLZRU1JKkWYF2H9HTG9LEl0uwEL1xi/BlgQl2Rgyz3te CMVU7WNfNnk3n23SZlHtyqXo9jEro/zuqZqijYHdjgrfPJWOhYjlrlbD6w4lPKRD0qV4 A2gNi0wxW7J8ALJ//e6TUsIAS12np4QadgFefex3TGVWtxbRXPyU6sbCzxqF+Gf7PpV3 zEu0qLPOUXZPgEejSDuWHwrzDizPKWRz+iTOoNjnW3juSg5MWCFjopwZEqDbtWnj3GVl Dx8A== X-Gm-Message-State: AFq9FYJF5sneS02JiI/M6cUOQSllVm7Vi+w/b/WtO3X/B1szchLD9Eh5 byTT/Inrq/1v34I6A68kKQ/u8f4VWxp2cj7EZow7yfkWvd6qBGuvruGAgbmXlem+rh9j7/HEBYP sUOj1tpqDRd/2MeSZoZgnqxtBrdWC3md54H5CyU59CQcMbDGH4ZHdqt7h6AQHMQeYPQSo X-Gm-Gg: AYBFou1H6ffKqEWwD6039z+DxNzAFJEAL9Z7Eg9bDf7zCjOW3nUU0fHjHUguPHmZahs LPFyjxTc9PtLvtxGFPYiJz08eCB8tMnz0OYQ6r5JHWnA85Am0oAPgjdpim6reKC/kEwh9Cat+eP tIMRZ2t6qhzgHXMysODbRnPR2KZ6//jirYGk92/JS/DlyhHnUXmft6027idpYNiyXRacX3fuqtM EWWqGHFR+rEX7a/nTbLILPRp5N4ErJjzpo2uZ4y+NpR9foHlyVMkb0eVUX4Sjmhhk8pec6vNPeN z8YtVqIamfWdxHaJw447KB2jjZE+am/Y1dL/fvurGFDaW7pK+ULCQ+OSP06Sh3JSPAcDZ0fMGhY B0ESock2mMr4lpPd0Yulw9uw5cwcUopNWfih7vB+a/VDLPcGmz35iajsZL2jRNjBtgLUoAlsZvL GiKi6m8bz/j3odXt4TTmqobsKgJahYmg== X-Received: by 2002:a05:620a:1a20:b0:944:9dd:b6 with SMTP id af79cd13be357-944217cf692mr552575985a.80.1793382965376; Fri, 30 Oct 2026 10:56:05 -0700 (PDT) X-Received: by 2002:a05:620a:1a20:b0:944:9dd:b6 with SMTP id af79cd13be357-944217cf692mr552570385a.80.1793382964771; Fri, 30 Oct 2026 10:56:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 15/32] tests/tcg/mips: Group MSA bit-count tests Date: Fri, 30 Oct 2026 18:53:37 +0100 Message-ID: <20261030175357.99684-16-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX3VIUh7UTkoM0 T6mL4OQCHOH3LXvJxHUnuh3HUfFVGOWMEx9kAo0GYBs/1HQFsa1T6RcoJHhgHjZy6T/Kav248o1 3bIJ3aDOQKV0Jmk9nxkv+wMiwRIUYmafzP3cU/Tygg0Ve8JJfvxj/NHN/yDbWmS4pib1Hhpip0w xvzmXk06aa8kVdbceEVJXnijQ9bhFyqhzKavrBQJF/zOGR8oeEj5z3qLsr2ttgpFoXWEX3Lfxbq 7FHdA0pd7ZUA+rMyhbtjhblxm13WafW6KNot4F34u/81YiTCgJNPk+31PDelZDgMEeuslwt1V8E 5dzOb23kntiGQplejCDcyEUtRaECxEmLJDqUVmDqReza2XeE5oreBz79Z80FJJ2llhW1FQFINEd AFHMrLX3iwS7+ys5Q4xdPZ7P+er3pVJyIArqQb/IlLjFAKAzDzQicTBFO8wfl5HLLYFVonfAjnP 5NxbUPAxpgVcWjEJvVA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX84AJmYrrmBZV 5QxvX3qqILUyuyKYE5r5EoT5tsTmB1AZjq3OhWIlZaXMPnXWoHukGgsj9HmL2BWN6MKhC0BIt77 XS1KkD2MWA7mv6JfrlBBhN1TJGLQbk8= X-Proofpoint-ORIG-GUID: hCLFUsQvhxW0R0Uhex3Br03F0tdvDmV- X-Proofpoint-GUID: hCLFUsQvhxW0R0Uhex3Br03F0tdvDmV- X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4da3b 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=Gg4O5N1BkiYvxTq54M0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO: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_06,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-2610300071 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: 1793383003288154100 Build the 12 per-opcode bit-count tests as a single executable, test_msa_bit_count.c, to reduce the number of test binaries. Each opcode reports one TAP line. Prefix the per-instruction summary of test_utils_128.h with '# ' so TAP parsers treat it as a comment. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/include/test_utils_128.h | 32 ++++---- tests/tcg/mips/test_msa_bit_count.c | 99 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 17 ++--- tests/tcg/mips64/meson.build | 2 +- tests/tcg/mipsel/meson.build | 2 +- 5 files changed, 120 insertions(+), 32 deletions(-) create mode 100644 tests/tcg/mips/test_msa_bit_count.c diff --git a/tests/tcg/mips/include/test_utils_128.h b/tests/tcg/mips/inclu= de/test_utils_128.h index 0dd38684cf33..8f619bd7d648 100644 --- a/tests/tcg/mips/include/test_utils_128.h +++ b/tests/tcg/mips/include/test_utils_128.h @@ -27,6 +27,8 @@ #include #include =20 +#include "../../include/tap.h" + #define PRINT_RESULTS 0 #define PRINT_FAILURES 0 =20 @@ -41,26 +43,22 @@ static inline int32_t check_results_128(const char *isa= _ase_name, { #if PRINT_RESULTS uint32_t ii; - printf("\n"); for (ii =3D 0; ii < test_count; ii++) { uint64_t a, b; memcpy(&a, (b128_result + 2 * ii), 8); memcpy(&b, (b128_result + 2 * ii + 1), 8); if (ii % 8 !=3D 0) { - printf(" { 0x%016llxULL, 0x%016llxULL, },\n", a, b); + TAP_INFO(" { 0x%016llxULL, 0x%016llxULL, },", a, b); } else { - printf(" { 0x%016llxULL, 0x%016llxULL, }, /* %3d */= \n", - a, b, ii); + TAP_INFO(" { 0x%016llxULL, 0x%016llxULL, }, /* %3d = */", + a, b, ii); } } - printf("\n"); #endif uint32_t i; uint32_t pass_count =3D 0; uint32_t fail_count =3D 0; =20 - printf("| %-10s \t| %-20s\t| %-16s \t|", - isa_ase_name, group_name, instruction_name); for (i =3D 0; i < test_count; i++) { if ((b128_result[2 * i] =3D=3D b128_expect[2 * i]) && (b128_result[2 * i + 1] =3D=3D b128_expect[2 * i + 1])) { @@ -70,28 +68,26 @@ static inline int32_t check_results_128(const char *isa= _ase_name, uint32_t ii; uint64_t a, b; =20 - printf("\n"); - - printf("FAILURE for test case %d!\n", i); + TAP_INFO("FAILURE for test case %d!", i); =20 memcpy(&a, (b128_expect + 2 * i), 8); memcpy(&b, (b128_expect + 2 * i + 1), 8); - printf("Expected result : { 0x%016llxULL, 0x%016llxULL, },\n", - a, b); + TAP_INFO("Expected result : { 0x%016llxULL, 0x%016llxULL, },", + a, b); =20 memcpy(&a, (b128_result + 2 * i), 8); memcpy(&b, (b128_result + 2 * i + 1), 8); - printf("Actual result : { 0x%016llxULL, 0x%016llxULL, },\n", - a, b); - - printf("\n"); + TAP_INFO("Actual result : { 0x%016llxULL, 0x%016llxULL, },", + a, b); #endif fail_count++; } } =20 - printf(" PASS: %3d \t| FAIL: %3d \t| elapsed time: %5.2f ms \t|\n", - pass_count, fail_count, elapsed_time); + TAP_INFO("%-10s \t| %-20s\t| %-16s \t| PASS: %3d \t| FAIL: %3d \t| " + "elapsed time: %5.2f ms \t|", + isa_ase_name, group_name, instruction_name, + pass_count, fail_count, elapsed_time); =20 if (fail_count > 0) { return -1; diff --git a/tests/tcg/mips/test_msa_bit_count.c b/tests/tcg/mips/test_msa_= bit_count.c new file mode 100644 index 000000000000..7f965bc9ec4d --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_count.c @@ -0,0 +1,99 @@ +/* + * MIPS MSA tests: Bit Count instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_nloc_b +#include "user/ase/msa/bit-count/test_msa_nloc_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_d +#include "user/ase/msa/bit-count/test_msa_nloc_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_h +#include "user/ase/msa/bit-count/test_msa_nloc_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_w +#include "user/ase/msa/bit-count/test_msa_nloc_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_b +#include "user/ase/msa/bit-count/test_msa_nlzc_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_d +#include "user/ase/msa/bit-count/test_msa_nlzc_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_h +#include "user/ase/msa/bit-count/test_msa_nlzc_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_w +#include "user/ase/msa/bit-count/test_msa_nlzc_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_b +#include "user/ase/msa/bit-count/test_msa_pcnt_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_d +#include "user/ase/msa/bit-count/test_msa_pcnt_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_h +#include "user/ase/msa/bit-count/test_msa_pcnt_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_w +#include "user/ase/msa/bit-count/test_msa_pcnt_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "nloc.b", test_msa_nloc_b }, + { "nloc.d", test_msa_nloc_d }, + { "nloc.h", test_msa_nloc_h }, + { "nloc.w", test_msa_nloc_w }, + { "nlzc.b", test_msa_nlzc_b }, + { "nlzc.d", test_msa_nlzc_d }, + { "nlzc.h", test_msa_nlzc_h }, + { "nlzc.w", test_msa_nlzc_w }, + { "pcnt.b", test_msa_pcnt_b }, + { "pcnt.d", test_msa_pcnt_d }, + { "pcnt.h", test_msa_pcnt_h }, + { "pcnt.w", test_msa_pcnt_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Bit Count", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 88d598a4f89b..88ec44520377 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -1,5 +1,10 @@ tests =3D [] =20 +# MSA tests shared by the mipsel and mips64 targets +tests_mips_msa_groups =3D [ + '../mips/test_msa_bit_count.c', +] + tests +=3D tcg_tests['multiarch-linux-user']['tests'] =20 tests +=3D { @@ -93,18 +98,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-divide/test_msa_div_u_w.c', '../mips/user/ase/msa/int-divide/test_msa_div_u_h.c', '../mips/user/ase/msa/int-divide/test_msa_div_u_d.c', - '../mips/user/ase/msa/bit-count/test_msa_pcnt_h.c', - '../mips/user/ase/msa/bit-count/test_msa_pcnt_b.c', - '../mips/user/ase/msa/bit-count/test_msa_nloc_h.c', - '../mips/user/ase/msa/bit-count/test_msa_pcnt_w.c', - '../mips/user/ase/msa/bit-count/test_msa_nlzc_h.c', - '../mips/user/ase/msa/bit-count/test_msa_pcnt_d.c', - '../mips/user/ase/msa/bit-count/test_msa_nloc_d.c', - '../mips/user/ase/msa/bit-count/test_msa_nloc_w.c', - '../mips/user/ase/msa/bit-count/test_msa_nloc_b.c', - '../mips/user/ase/msa/bit-count/test_msa_nlzc_d.c', - '../mips/user/ase/msa/bit-count/test_msa_nlzc_w.c', - '../mips/user/ase/msa/bit-count/test_msa_nlzc_b.c', '../mips/user/ase/msa/int-add/test_msa_addv_d.c', '../mips/user/ase/msa/int-add/test_msa_adds_a_h.c', '../mips/user/ase/msa/int-add/test_msa_add_a_h.c', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 894f8e9e23e1..ebb4006e7eb5 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -39,7 +39,7 @@ foreach src: tests_mips64r6 tests +=3D {src: {'cflags': '-march=3Dmips64r6', 'protocol': 'tap'}} endforeach =20 -foreach src: tests_mips_msa +foreach src: tests_mips_msa + tests_mips_msa_groups tests +=3D { src: { 'cflags': ['-march=3Dmips64r6', '-mmsa'], diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 9e446eed0f6e..edb59a25454b 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -40,7 +40,7 @@ endif =20 tests =3D [] =20 -foreach src: tests_mips_msa +foreach src: tests_mips_msa + tests_mips_msa_groups tests +=3D { src: { 'cflags': ['-mabi=3D32', '-march=3Dmips32r5', '-mmsa', '-mno-odd-spr= eg', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383035; cv=none; d=zohomail.com; s=zohoarc; b=gZV3UakrOKJZSmrzfRAUPOYhFl2pPxS5B9meKokQBgZVUnX/GrdAJcGnkhQXzYkC/nH+hstlfIQOE2zFTuGu/H0OHnP6QnicI5PTQhqB7Mhdxjo3dE0geWKQYtU4r8936GwQiofNG9THnCume4kgj9r7RcfcWBqmNhFTpFzPc/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383035; 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=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=bCJncU726DFOFPqqBiUldv4N97evjnhIXGO3Ddda8OWAirO9fNFGG2fItcgbLou51DZUfEuW9c1Be2Rq/8hT5MXxjc7mui96IsjlG8mr8R/PjFRfIQkuKIYhaIEZO1ZBQ/AgmuJGoLIsgH5OxV+J29XX5M1M+Nb4+facBK1QvCo= 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 1793383035005521.4466607778065; Fri, 30 Oct 2026 10:57:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqpz-0006xO-38; Fri, 30 Oct 2026 13:56:23 -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 1xMqpt-0006Zu-Nb for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:18 -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 1xMqpr-0008GQ-P6 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:17 -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 69UHu1sM839340 for ; Fri, 30 Oct 2026 17:56:14 GMT Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme754a7k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:14 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-99076c676cbso236316241.3 for ; Fri, 30 Oct 2026 10:56:14 -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-48e71b959c1sm4410211f8f.45.2026.10.30.10.56.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:11 -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= U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=eIYTySsjI/DPYCtk zlDSlkdo5TZpkympgrgU8d4jPcerp/6W/0t8CIn6HRs4BaNTa3uLUZSSfP0raobf L7nCtC0eTgAADeEAX1FRQx2GXHond3bwlkBj5xsrzDAVWlsA61e+yd41he4h5Fes fmn0WagzxJd999lkI7kRi9QPbngyX/uRINZLEOGBIHCs+TU1HvBswHMDP/VshgYK XoSl2lyxfMY/Nir90ZMG40mD327q1fkJrjqx6slwPmPOPkLmyz19Qk/tkd+9xX4x UCJdiykKVoirAOQE3GNGEbwC9dngkLQakCNslHEs5YgVNQh8PXf+wquQLNEour0r KKDN7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382973; x=1793987773; 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=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=epYQ+Ge6NnFzDXOfwQXA88FDsrkT48bjPXDE4POJhiDZb46RYz4hi6JLYI3faKsVaE qL03TDOTEEGod2tD5Apxi/kKgE18HluW3MmzZ+ebpF0TGTD4G3K9HvB0vgTQWVwdDSS3 n2c1ZL/+x6aBTOzKlaOv10ZUaLY1l46pdVKEDVY6zgRev5GFG4A+a1jF0gVGqang/zyo LrbQbDjl9VZqAJyn8qNZKCvEzDYaulHiyQ57+DuIJXTgMI2IgqXPxDL9kff/cMQ5Sg8D AhuPzaodTlrW2RwSjXAL64VYcUoZ5hJqG4Qf3pSYskQwMkbUNVjPuIkip8wnJSOp5Mux Ws9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382973; x=1793987773; 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=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=KZV3YPlT/14pq2YAyk1WPM6AZSA8QHqJtjP1mPakujIwx6xIvlcfl0J6cf8Kz6pmox S7/UubvjmhqR/i58J6mj1TwRbFBJQTzZmjYlcaHj+oWLVr4Aivw766cf0URWmoquXOam mqovcWwwrYGd4oDN2SJI/oq/BdWPkExVMwlgywlyW5gqBvMXT4AZ8Nt7PyqeJlpaZM9d VUV/Fohdfv1CEzRPtwvHbQUXb5XidgYYO2wcgiuWOUyLnnakXWwbx8NQPxvM5C38sX7E AxPqNZF8lUNpT8sE6msvfZPvkj+1HnEag1uFcRBj4CB7Z0cgA/5rYABK709W1InZnHOf rbHQ== X-Gm-Message-State: AFq9FYItin+K05dwug5VhzfgeJNhqNVKCB7D5qxQyWpvyZFBxkZ3bSvG sbAELsP2F2RphzrGOuwo7+hyovI0dq2mcTQyc5pkGsc1Kx8BVOuT9H2lI1PzwBdC+RAKAzo20Ch F1Nfr9vB3b+3mjx3jh2kYuMxbGi0eUi0v1s+O7+Ez4zWJAue2+RwjwcSsjHY10lvRHX1P X-Gm-Gg: AYBFou1+PzcUuXnODg8F92/Bpo5AvdIoXZkAa8G0m0FTYXMqXCj2dTiBonqAaaBXEW7 rnxKDmu0OsQa0NTqSw6U+Lf4h+128WSLuoqjVrO6FGlbhMjB2WQjGOodUj7C8SjxxHxIEhe9UJz 0vDRQc9FzwH+RoLMZQfYPtljorRewJLMyoazvMg/YGPB9mM2d3kM2chcygagh88NTPwHsTygvFZ cFFprrKgTeIrIYbskfDMegXFQoWM5Hjzb8yH4twH0ypfO5GBiQ3VLivUSmQyL5+BxXBLF08lyBe ab6iFiWVYtm/EXues/ufe6V2EjWUzgGzIK8rBppDM9BwNtcjHCzByzGoU8IjC5t/Fc0DBKfHuef vqf9qmuapylOHWFUrbL49emCq6MLXvEuwkCnEyiV91x3QHCEdNdrSyhH9Ly2KSMmwCuLm0zEnNU qym1cjdeqqleOxAEy9E14VfZu5uVpZxA== X-Received: by 2002:a05:6102:2926:b0:7b2:7490:fd75 with SMTP id ada2fe7eead31-7d072baa797mr1428818137.7.1793382973242; Fri, 30 Oct 2026 10:56:13 -0700 (PDT) X-Received: by 2002:a05:6102:2926:b0:7b2:7490:fd75 with SMTP id ada2fe7eead31-7d072baa797mr1428805137.7.1793382972790; Fri, 30 Oct 2026 10:56:12 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 16/32] tests/tcg/mips: Group MSA bit-move tests Date: Fri, 30 Oct 2026 18:53:38 +0100 Message-ID: <20261030175357.99684-17-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: PKSq7Tg6stt8mjQln4ySjW-U99F1wjL5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX1OnvjFEWeJ4c PLt69GYEZ1fF/BrIzixPUTfmg//iwa4E7/wc/ZD2q2Xbo8viZzL87uNv0ricBbjn7N50rnur48V hDk2EZq4Ti85ADqqj0DfFsI6o9Rft3V8dHPTC/zAq2TJCxBVvQ+KqnYnOTDlKXLhfCJq/JyDLga 0fchvpkOzqEEzbk2a4xtnBA2HDRpCyh2qVvtvYmcF7s6n7YPGwRRLUl3IWh7HBURFw7RrXLV8RI ITaORZ505BdV4ThAli9sS8uaC/ZogMMLvmXlU0qUHMwelg3tLR+ceQmQO90xwf4oMMbf04eVNlR dbJF8Qv9COvm+k9JVjy2VyIwk02Gmfu200RDxq0IPE+RNRJxHj223g7/GWzciqlnZozIQXKiTWz 6HIWnTWKoGSimFb5bGtnLMstl3nDsTuFfi9iA5UW0a6ljfKIxZzwpdAGoQbyIvCc/FkNtYIlDHC HH8Rk74kF7UzRNbC/ww== X-Proofpoint-ORIG-GUID: PKSq7Tg6stt8mjQln4ySjW-U99F1wjL5 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXy8SWsxNq1V5g hPiOE3CbyPkOnSUV+MXnPRhn/vxVX8gV/Vw7K9HyvHUXTSM1USveNMiZbSdL9kMHY6MnnwfuhzH oqHPVOQOYg/LFsWNA7i7ixT4m0iQQpU= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4da3e cx=c_pps a=ULNsgckmlI/WJG3HAyAuOQ==: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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh: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_06,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-2610300071 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: 1793383037811154100 Build the 11 per-opcode bit-move tests as a single executable, test_msa_bit_move.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_bit_move.c | 93 ++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 +--- 2 files changed, 94 insertions(+), 11 deletions(-) create mode 100644 tests/tcg/mips/test_msa_bit_move.c diff --git a/tests/tcg/mips/test_msa_bit_move.c b/tests/tcg/mips/test_msa_b= it_move.c new file mode 100644 index 000000000000..02fb3bc486cd --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_move.c @@ -0,0 +1,93 @@ +/* + * MIPS MSA tests: Bit Move instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_binsl_b +#include "user/ase/msa/bit-move/test_msa_binsl_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsl_d +#include "user/ase/msa/bit-move/test_msa_binsl_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsl_h +#include "user/ase/msa/bit-move/test_msa_binsl_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsl_w +#include "user/ase/msa/bit-move/test_msa_binsl_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsr_b +#include "user/ase/msa/bit-move/test_msa_binsr_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsr_d +#include "user/ase/msa/bit-move/test_msa_binsr_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsr_h +#include "user/ase/msa/bit-move/test_msa_binsr_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_binsr_w +#include "user/ase/msa/bit-move/test_msa_binsr_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bmnz_v +#include "user/ase/msa/bit-move/test_msa_bmnz_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bmz_v +#include "user/ase/msa/bit-move/test_msa_bmz_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bsel_v +#include "user/ase/msa/bit-move/test_msa_bsel_v.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "binsl.b", test_msa_binsl_b }, + { "binsl.d", test_msa_binsl_d }, + { "binsl.h", test_msa_binsl_h }, + { "binsl.w", test_msa_binsl_w }, + { "binsr.b", test_msa_binsr_b }, + { "binsr.d", test_msa_binsr_d }, + { "binsr.h", test_msa_binsr_h }, + { "binsr.w", test_msa_binsr_w }, + { "bmnz.v", test_msa_bmnz_v }, + { "bmz.v", test_msa_bmz_v }, + { "bsel.v", test_msa_bsel_v }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Bit Move", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 88ec44520377..ae755143c18d 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -3,6 +3,7 @@ tests =3D [] # MSA tests shared by the mipsel and mips64 targets tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', + '../mips/test_msa_bit_move.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -152,17 +153,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/pack/test_msa_pckod_w.c', '../mips/user/ase/msa/pack/test_msa_vshf_h.c', '../mips/user/ase/msa/pack/test_msa_pckod_d.c', - '../mips/user/ase/msa/bit-move/test_msa_binsr_w.c', - '../mips/user/ase/msa/bit-move/test_msa_binsr_b.c', - '../mips/user/ase/msa/bit-move/test_msa_binsr_d.c', - '../mips/user/ase/msa/bit-move/test_msa_binsr_h.c', - '../mips/user/ase/msa/bit-move/test_msa_binsl_h.c', - '../mips/user/ase/msa/bit-move/test_msa_binsl_w.c', - '../mips/user/ase/msa/bit-move/test_msa_bmnz_v.c', - '../mips/user/ase/msa/bit-move/test_msa_bsel_v.c', - '../mips/user/ase/msa/bit-move/test_msa_bmz_v.c', - '../mips/user/ase/msa/bit-move/test_msa_binsl_d.c', - '../mips/user/ase/msa/bit-move/test_msa_binsl_b.c', '../mips/user/ase/msa/shift/test_msa_sra_d.c', '../mips/user/ase/msa/shift/test_msa_srl_b.c', '../mips/user/ase/msa/shift/test_msa_srl_d.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383131; cv=none; d=zohomail.com; s=zohoarc; b=hQPPboc9sMbOa6zWIghaPTFUfn5j8Ao4lJNLanHvteKjoF0kt+tFYodTmxJVhcJmgAZg+IlFnosmkbn3Mx80JQ2AhsFKJU54PRJcN1twcKb9Bi1GEXFY6iVw/d51i091jLO08NB/INjy5p5k/vKbw0zjXOCByvgbx6ADfipxHpE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383131; 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=UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=IcFVfc6bbMjmHNDdzEu9gXvBgcQlPdUwKaKYhi+BBs+/A7Ox+ox/gXHDpk+ltY6q4sA9xCMUomzUWW5oyGCffxJuZUrLsRvIwiobL6uUmwfsqrJsV8dmn/YGtBv+RqC1t1DL5UPS8pBrxpA77NzeSE04QvvVKffdW+/AtY0zQuU= 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 1793383131304847.720869857829; Fri, 30 Oct 2026 10:58:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqrk-0000Tg-R4; Fri, 30 Oct 2026 13:58:14 -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 1xMqq1-0007IY-TP for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:26 -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 1xMqpz-0008Gm-Q4 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:25 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UHu1rc4011172 for ; Fri, 30 Oct 2026 17:56:22 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 4hme6qm8f3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:22 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-944138ed63fso154731585a.3 for ; Fri, 30 Oct 2026 10:56:22 -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-4abf5b27e46sm116856245e9.3.2026.10.30.10.56.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:20 -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= UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=aRNwev0hEzaUVuIB HvFiHS6C/wU4MZK2o7AUM1+eaQKx0IUh+8whpxSNup0Nii3ohCTd1tWcwISHaMA2 r3vqCTDLV1y/5cYxIX3I/Eu1ccAozC10kpPzQvZXUhgcW8N7K8NJVBdz9zF6tmwU IVfmBuv2IVv3bx9q4OYU0eEVBuQGNOPQ/rQ9Q+YTO5Ox1uNA9S++hTN2FwyMTSJS Q3r9m3J+BKKbrcxNhIZXwxHwl9TBkTYJZ1fotQotNzqFl+c9f9Qj/tc04Xt7YNJZ jQpsjmoIlKOsPj/7CbRMTql3CMwXWgRLDR07F4hgK6bOKonkpssq+3h7/WdF7g2z fp21kQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382982; x=1793987782; 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=UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=Kq7SLCDfzigsjo9vMEt/t7fG/uCu/P3UvcMgdtBkQ76+VJyWW1LqPfbAwXQEVKdRQN bTlilJMhYF3Y8hyDpIW5eG9ejKeCccLiJkOO4Y29mmK9k4jS6837sXiWkxPKQKzE+EuF DGZg21wau4qirbN400VEcVYfDmW0btxvmrZTUtSq1+SWh7tVyVEOaZpekrmceBzkKVj9 B2u6p7csnNzPQEt3nBYQGKz/KXDc3HArW4q33gmnUr5exqyHIly/PLLofdggj5+TUnKM gmv//xv65y5HzGeCtRSNRClXHTKYt2VSzlS4f5fLu9z2pHGaYN4AZP5w/GhZFtfoIGF3 lIUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382982; x=1793987782; 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=UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=UzYjQR6jlbCHMtNwowFUf/GFHb+SBz81ZgfaOAizssZHoCvWqHIqvEw5OUmFgWtvfP hY4WGNlBSMdUdf+2hTP5O0bdbGdlgbGWyrXJ4FyKY+8rFIhQ3zX83TZKo2TsF7NU5kpU 1RMzbHrtYpymkl5tjEMK2jO/daswvkmozlokrubLjKxCb2L1c3cbtgjyX/1TYInP1/EY YJi5S192qa+WaSp6MCB0L4DiDcey+RmGxIr6Z8BoNG2VdA3a/LdrQg51727TfpnP9a0D uTq+KmLlmU5SXjjhNEDlUELcdq5um8ujavanLBl9XTeYuW9dStTeJIWuqzNeEzH0fc6Z mKSw== X-Gm-Message-State: AFq9FYK0zYwEXf1qgKuSpLgQKIeQzJuo3PDLnvmTPdoIPe847uL3K7tN 4Jgs87ZQCrc+Bdf1uhXu76QM1yZ2NpoOemOxy95UnOzIEuMryhT63I2FYVj679y0rCZQHMq9I6y iSAQDCWKdxu6pn4eVqw0vxz/ck1QUmj9WCO4/71H8UAoATn4YupGrCJxS80Z6EexvKaIh X-Gm-Gg: AYBFou1PqZyg2UvlQwpq4aSalF9TlRLoxbhopQhGbWpb/L5IxKidkd2TfN/Wx10tqxK s3+R01qztKvbkgEtnvpvyKI9OXIdzKdqbwxrvummTZEbzFHoLcTI8qOS0O3uQj/3K9FNz9XkyUN 8rKqa3BUBPBrBNLSK5QLbk5hlz+ZOSyHCvOTLtovaD+AIvhHIjho7QYsLfxKqw3Wg/7WlR/EXfs iTtRdmnnKqWZDApje43Lsv3SJiknKCkXd6sr+XaBF7E5q6rXZNaf8ush6q6P9nUexM5e4fgm2RM AikXSNhbrJ0TfjUTyh1rURLXyDOCwbzjNkrvX9sOsIHqv4YRuy3E6a2y+ZPypjJvrs2HDBtS5PG Mjc5Lagc1k/iJsOJOYwCZD71Aw0KQaNgh1wPLnqeCmjmsDb+aLQdvSc4rL/kD3iyRoioB8pBBi1 rao71kzbfpxZcSFmMNpVXqWcMbCYMILQ== X-Received: by 2002:a05:620a:84c4:b0:93f:1ed3:a9d7 with SMTP id af79cd13be357-94421719099mr495647685a.27.1793382981938; Fri, 30 Oct 2026 10:56:21 -0700 (PDT) X-Received: by 2002:a05:620a:84c4:b0:93f:1ed3:a9d7 with SMTP id af79cd13be357-94421719099mr495634485a.27.1793382981415; Fri, 30 Oct 2026 10:56:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 17/32] tests/tcg/mips: Group MSA bit-set tests Date: Fri, 30 Oct 2026 18:53:39 +0100 Message-ID: <20261030175357.99684-18-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: ciQUeWzGMoG4-Z3RQwkByXL6W4PGej6R X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXw7STdgD+ltQZ cwrcckC8lLAZ4KgN1kPmqPJ9G25bAX9tvAV3BgodTTAGWj6HpeH6fiTsfPwd+HT3icgyR4Zt9kf L1QfpolEmsNGTXW9xQHfn9NwDpamQ4I= X-Authority-Analysis: v=2.4 cv=DfSCOftW c=1 sm=1 tr=0 ts=6ae4da46 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=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-GUID: ciQUeWzGMoG4-Z3RQwkByXL6W4PGej6R X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXyb0H7oCzzuoC z36XgfbrVAfL3jBFQqTvu+8aEXeE8dirEP/oLzGS5l62CgQyUhUOqPlqJhm5AaF/cELmn0ryWUy SMvIxqzHQYDSEmXBYDf6kULyF1IRd6CWw2+aw+YYTzFgAk4+HGvw/8742SiIWXAMzQoSYH+u3Yk v/RY4VbiUVf8C6MT3iZcyVqC8LtkE9xTcFxPJJ60PFsLnUzKN6iHhJvgznI2ZDYl4AljNjAOt3d 5xTPsp3pKlwSBm/5JA3xnaYOAfELFc/C0NdlLG/cMI2RdPKbWA30yusa/4zRaorCl2UA9NBVNaq NTxocLmJEnJvtbaWc07kKBYqy6qNoIhiE//XbvRBqPQKCRc/NvRQtwULZcZxOotS1R/V1jBCVYG 2GJLHDL6LubYoEeS7hR1ypSoyVluEEoZbUjCNoDRbpuyl2M2t/zp13Mb9X5Dy0Z0xkfo4S2c48/ b4ZrWF88bxuebgNXjxA== 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383132050158500 Build the 12 per-opcode bit-set tests as a single executable, test_msa_bit_set.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_bit_set.c | 99 +++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 13 +--- 2 files changed, 100 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/mips/test_msa_bit_set.c diff --git a/tests/tcg/mips/test_msa_bit_set.c b/tests/tcg/mips/test_msa_bi= t_set.c new file mode 100644 index 000000000000..840b125c2969 --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_set.c @@ -0,0 +1,99 @@ +/* + * MIPS MSA tests: Bit Set instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_bclr_b +#include "user/ase/msa/bit-set/test_msa_bclr_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bclr_d +#include "user/ase/msa/bit-set/test_msa_bclr_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bclr_h +#include "user/ase/msa/bit-set/test_msa_bclr_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bclr_w +#include "user/ase/msa/bit-set/test_msa_bclr_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bneg_b +#include "user/ase/msa/bit-set/test_msa_bneg_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bneg_d +#include "user/ase/msa/bit-set/test_msa_bneg_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bneg_h +#include "user/ase/msa/bit-set/test_msa_bneg_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bneg_w +#include "user/ase/msa/bit-set/test_msa_bneg_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bset_b +#include "user/ase/msa/bit-set/test_msa_bset_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bset_d +#include "user/ase/msa/bit-set/test_msa_bset_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bset_h +#include "user/ase/msa/bit-set/test_msa_bset_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_bset_w +#include "user/ase/msa/bit-set/test_msa_bset_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "bclr.b", test_msa_bclr_b }, + { "bclr.d", test_msa_bclr_d }, + { "bclr.h", test_msa_bclr_h }, + { "bclr.w", test_msa_bclr_w }, + { "bneg.b", test_msa_bneg_b }, + { "bneg.d", test_msa_bneg_d }, + { "bneg.h", test_msa_bneg_h }, + { "bneg.w", test_msa_bneg_w }, + { "bset.b", test_msa_bset_b }, + { "bset.d", test_msa_bset_d }, + { "bset.h", test_msa_bset_h }, + { "bset.w", test_msa_bset_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Bit Set", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index ae755143c18d..03f3ce57d3cf 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -4,6 +4,7 @@ tests =3D [] tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', '../mips/test_msa_bit_move.c', + '../mips/test_msa_bit_set.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -250,18 +251,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-average/test_msa_aver_u_d.c', '../mips/user/ase/msa/int-average/test_msa_ave_u_b.c', '../mips/user/ase/msa/int-average/test_msa_aver_s_h.c', - '../mips/user/ase/msa/bit-set/test_msa_bneg_b.c', - '../mips/user/ase/msa/bit-set/test_msa_bclr_d.c', - '../mips/user/ase/msa/bit-set/test_msa_bneg_h.c', - '../mips/user/ase/msa/bit-set/test_msa_bset_h.c', - '../mips/user/ase/msa/bit-set/test_msa_bclr_b.c', - '../mips/user/ase/msa/bit-set/test_msa_bclr_h.c', - '../mips/user/ase/msa/bit-set/test_msa_bneg_w.c', - '../mips/user/ase/msa/bit-set/test_msa_bset_w.c', - '../mips/user/ase/msa/bit-set/test_msa_bset_b.c', - '../mips/user/ase/msa/bit-set/test_msa_bclr_w.c', - '../mips/user/ase/msa/bit-set/test_msa_bset_d.c', - '../mips/user/ase/msa/bit-set/test_msa_bneg_d.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383130; cv=none; d=zohomail.com; s=zohoarc; b=Od9Q/rk6BdRrqzbsgQeXTBGJZWUluHd1lLUg8Ei29JGn0mkVV6O4db/yoIXyfiUfbJ5e4xA8/Nxvc8tW66Ib6M78NEKAVqToqCBiyqyeTGLwkJ6fuFw9vXB7ZTcFtRcuqldayJ5Qsn45A6kslDtoPT/xyBEH9MafahDu5VqyE8A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383130; 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=9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=Dfykvaj8VrGmBRJO23rnOcVkHnV8HpogkD+OSc6nYSbhrAYaK0KhaLJF7i4ZZDRwSi5L5SEBZmdIHuQmxMvGyAsxDjoHEmHg3j+EhxCRpIJylbnBRGdWRMSwhmDV5ZJEOnnwLnWCpjIu6hC1HXho1/mp4s6Cof6oWjL3SJy+YA4= 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 1793383130960120.26881144237097; Fri, 30 Oct 2026 10:58:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqrC-0008RD-HO; Fri, 30 Oct 2026 13:57:40 -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 1xMqqC-0007pH-7j for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:39 -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 1xMqq9-0008H8-UU for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:35 -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 69UHu0dt3977374 for ; Fri, 30 Oct 2026 17:56:31 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 4hme6qmd15-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:31 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f20addba1so182189085a.1 for ; Fri, 30 Oct 2026 10:56:31 -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-4aa820492cesm164637155e9.13.2026.10.30.10.56.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56: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= 9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=JcJvF3raYpuXj2ru ROIzHffay/brM8LZBR9XKVNwdgfCuocCx3L4iGq5ykX8DBiIUk/md9R98I2l34+e a1U+zHqoclu+i4quS3Ypi8pUm0Zh5ZtfAwo+gVwEokR62FuZA9Fb9B96Z7QOqfte 9WYU0wXoFtJdwBDt9p5EsZYzjQNIqxHyQtCVqNH3BA76egtIeN4GQMqIA/MTYosO NashdwoBWzMNox5xBA1ama5xuzBklPn6y/p1PAcfV46q3nguQz0KNey8zByrh9nk /nFV1FGlw5uYi1YwbFqfx9AqqvN1ftDuKwvZ1QL24uubzUzisfsYWFJBGNBe30ok Dhmz5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382990; x=1793987790; 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=9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=BePrLxz2r/znPoTwTuv2PGiB7f9A11wNmwh5ge3g7YzOIaE8wc8zVixJd0zRxrk+Jr keAojHrpoisuqvozA6OEut+ePxSotJrXv/jl8+A1MzbnFAS1oj0cVW/2kD0V7HZAu5wO 2dS8mzi0wqjezKvP0TQtd4Sd/Cm/cD8a7cHfUW96EPwyVTFJ1EpPs7IUXHL9JOZui2TP y9XAEw1N55O0r7qjP691oj+tC6ioExHmXJUFkkNEtAeCITv9DkcGxHQhKxqgChBuFwC6 XnKC4AZRTGq9wqgT4aVIvSBwM8oZ1hvWc+o6vFRLcPlbolUCGti9dcQ3wbpWMUvt99Vc c+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382990; x=1793987790; 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=9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=nef/QXP4Zywczr0RwO5OzFL189F3YLJ04bAlOe2cT/VGVrg8XLhL0uuKKGr8jwQ7RL 1cKBpjf/M/WCp0SRL5LvixnFyS6ItVUWHr1jad1Th4/ishg4AIlg9jiXlbvc8ouo+MEj jvgPOtvj8THM3+7+yb1GcgIKQGNIUoyl+wnhLrliYxJEdnWgbmE/Jpqdl+loOdinVyAa ayb0pqcdVwYHHUYXcps4VpD3zHTgOTse6Bl09m8KpEwwgjrb88RQ1J8FOqSRdzxqIibi Julo4GuGB97aPfmH8nVMp98WoAC+jX9Vbdd2aIQL3DdIjCcIfdzwU+F0y1yOAL8hZGXv +HTg== X-Gm-Message-State: AFq9FYLMq/w0R3rdoSVJBLuii9s8nIYCgPo5haVYi8SfZ1RVFyefGdLF taWs3C33hnmETrLcqMCvFRmv7XZwpFknVM5MuvOwqIbQYpWEyh22tzhcA87j5vD0OmsqJswGhlV 3gqVeFLo2gBKUAH/ubh8IaM/R0qTlChNN5uYJgilv4oWXpJTOzl/LVht5fDkCwlcuE6a3 X-Gm-Gg: AYBFou0+abCnJN3ZiFqf3PTSW0xiBpE+CERApZGuLYKRKDrJ8QZWyINjXkFAC8ge2eB ck1zyTlSjcipso3OSNVEJAmr0B64Tlua05BddWGVqGfMoesglrOlpxG46yG9OiqCqCdf2ekZ9Hd PUjPTUWrBGN2GhX9JmHIWTOP4NJZE+73zd2r/6bgizfzCcrgKm2elPeAs2c1Tiri8kS0pNRbytg wGaCp500+NO27halG7WxwQ4flDumRQ0x74oQ776aOYFkss6W0fmjZSUxzS+645hxz/Xzro5Uy7U dyqtYjLALcpyOLp1Z7P8tReqfil1fZZKCeQEGLz0+HeXb2f63WWnWTAxhmcHX+e8ZDJohq2kRuw Zz3tvYkGnkohJSng5Npf2DROa5aobWgMziqvyabMcT/P5ZCK3KsVpCCaQAzEm5EyNbXWUktBBeY Cvobu+v9j5+7Tl+HxQDFd8LyNW92eDXQ== X-Received: by 2002:a05:620a:370d:b0:940:f53d:5eb with SMTP id af79cd13be357-9442173ea2emr548831285a.35.1793382990363; Fri, 30 Oct 2026 10:56:30 -0700 (PDT) X-Received: by 2002:a05:620a:370d:b0:940:f53d:5eb with SMTP id af79cd13be357-9442173ea2emr548827285a.35.1793382989879; Fri, 30 Oct 2026 10:56:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 18/32] tests/tcg/mips: Group MSA fixed-multiply tests Date: Fri, 30 Oct 2026 18:53:40 +0100 Message-ID: <20261030175357.99684-19-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: cKbfyRnnnqkiTT-QS_O_s1XggO2noBM7 X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4da4f 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=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX1LicYV8ZjZeS ItHYo8YX+u8ZmEoiRhQ3q/enE/HgGn/67KOpLTNV9V+iUriJOMRGw0t/bkHiLNrpZW5oNc6D052 lrpKKMhcuhY8xhPwieAVvq3CO/4vrp3YdF4p1BMgLGXF7eNQWhCl/3LFb4+RFv++Sp3Nb5TGXTG 17ifvusNNzjEM4eH9LlLTOm+lk0cuGcXpW1tS9wXnHsn0odTMX17WavW8ZIKfOGjNMZrjaW4cMz PwFOycRBvr7wWt6gUS0ElefiHcogauKbpQzF1IpLoSddhOJx19simceeYn4LvzN3Gr3MaplAIZZ GGaK7d5CkDP6aJW9R9OLc7ClEVUmh/SQHhEnJBNeS/VKld2cil4BmVp5ffvXZERpYz+N58DlogA uO5rMgitXvU3osUXMwOvBEoyMAo/O1sEkGEteDNMcopsAsmXpX+nugHbJKDnpAqIa1r6ksSIkNS LI+DXWnZY0NGTToTz3Q== X-Proofpoint-ORIG-GUID: cKbfyRnnnqkiTT-QS_O_s1XggO2noBM7 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX9InGbuUc0S/y U5bN9Hn2e6id0aoT4lNwjBuOwZK/3+D5K6LN3sBCJ07cQIpah2kvVVClCl5wZXgcE+GjO1Zv19B iC7JlUsGK9re/7sWd48QUf0DxPb6Nm8= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 impostorscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383133282154100 Build the 12 per-opcode fixed-multiply tests as a single executable, test_msa_fixed_multiply.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_fixed_multiply.c | 99 ++++++++++++++++++++++++ tests/tcg/mips/meson.build | 13 +--- 2 files changed, 100 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/mips/test_msa_fixed_multiply.c diff --git a/tests/tcg/mips/test_msa_fixed_multiply.c b/tests/tcg/mips/test= _msa_fixed_multiply.c new file mode 100644 index 000000000000..7eb5bfe1b539 --- /dev/null +++ b/tests/tcg/mips/test_msa_fixed_multiply.c @@ -0,0 +1,99 @@ +/* + * MIPS MSA tests: Fixed Multiply instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_madd_q_h +#include "user/ase/msa/fixed-multiply/test_msa_madd_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_madd_q_w +#include "user/ase/msa/fixed-multiply/test_msa_madd_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_maddr_q_h +#include "user/ase/msa/fixed-multiply/test_msa_maddr_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_maddr_q_w +#include "user/ase/msa/fixed-multiply/test_msa_maddr_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msub_q_h +#include "user/ase/msa/fixed-multiply/test_msa_msub_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msub_q_w +#include "user/ase/msa/fixed-multiply/test_msa_msub_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubr_q_h +#include "user/ase/msa/fixed-multiply/test_msa_msubr_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubr_q_w +#include "user/ase/msa/fixed-multiply/test_msa_msubr_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mul_q_h +#include "user/ase/msa/fixed-multiply/test_msa_mul_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mul_q_w +#include "user/ase/msa/fixed-multiply/test_msa_mul_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulr_q_h +#include "user/ase/msa/fixed-multiply/test_msa_mulr_q_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulr_q_w +#include "user/ase/msa/fixed-multiply/test_msa_mulr_q_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "madd.q.h", test_msa_madd_q_h }, + { "madd.q.w", test_msa_madd_q_w }, + { "maddr.q.h", test_msa_maddr_q_h }, + { "maddr.q.w", test_msa_maddr_q_w }, + { "msub.q.h", test_msa_msub_q_h }, + { "msub.q.w", test_msa_msub_q_w }, + { "msubr.q.h", test_msa_msubr_q_h }, + { "msubr.q.w", test_msa_msubr_q_w }, + { "mul.q.h", test_msa_mul_q_h }, + { "mul.q.w", test_msa_mul_q_w }, + { "mulr.q.h", test_msa_mulr_q_h }, + { "mulr.q.w", test_msa_mulr_q_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Fixed Multiply", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 03f3ce57d3cf..17e3fe3e55ae 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -5,6 +5,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', '../mips/test_msa_bit_move.c', '../mips/test_msa_bit_set.c', + '../mips/test_msa_fixed_multiply.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -199,18 +200,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/logic/test_msa_and_v.c', '../mips/user/ase/msa/logic/test_msa_xor_v.c', '../mips/user/ase/msa/move/test_msa_move_v.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_mulr_q_h.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_mul_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_msubr_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_maddr_q_h.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_maddr_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_msub_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_msub_q_h.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_madd_q_h.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_mul_q_h.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_mulr_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_madd_q_w.c', - '../mips/user/ase/msa/fixed-multiply/test_msa_msubr_q_h.c', '../mips/user/ase/msa/int-max-min/test_msa_min_u_h.c', '../mips/user/ase/msa/int-max-min/test_msa_max_a_b.c', '../mips/user/ase/msa/int-max-min/test_msa_max_s_b.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383269; cv=none; d=zohomail.com; s=zohoarc; b=ele7GmZh6/ge5sfmgbsWZKbN/kI7RSoJ5gffe6V8NZp/l4wLPEqkzWwOWRXp2PtO93T66BhSNrvVZz/R/P+FQBKU7IhrsEZbMu14aY6fl+wQE8C4pbtFGQiL/Mn3o5h+KKLbJosET35Hsgi9eHQlB8KWkqkYP+8tNWtvF0pxc7k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383269; 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=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=VgghM+xHxA3Er/d22JMf0f6qt5eH7uXJtDHNGmOLP4NszhGDtTrBwIs6n1Exx/55jwqBfA1c/ixaWOVkaeXGMonsd4R4d55szcU7sFI6icLG23rm7Eeq5H06c67gZfZfMSaEbdG9OYTV+WRu42SfVHI1sUJ8JSgRwacCkYrdG08= 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 1793383269147761.1779573383114; Fri, 30 Oct 2026 11:01:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqrE-0008Un-By; Fri, 30 Oct 2026 13:57: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 1xMqqJ-0007zK-AX for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:43 -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 1xMqqH-0008Hj-Jf for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:43 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UHu7FE373342 for ; Fri, 30 Oct 2026 17:56:39 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 4hme6qmb81-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:39 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f5844cb60so207427785a.0 for ; Fri, 30 Oct 2026 10:56:39 -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-4abf6c7852esm69301075e9.11.2026.10.30.10.56.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:36 -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= NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=P5jejkQOTiVcCGeI h2mxkGn8LF/Wp6yocoiBAVn2aYdLkLO8ZH5dP+VBYTnva+XzHOlC/TCo4/ow2eOx ZZOtnSY2pBIGnChKtvP7HgSNT8E1j7p3Y5cuFF6f0tQMYdhxwOL1UXLvcLI10XfA O9Vi9jyJeJkikjCApoBBStEjTXpcOc6gOt5C6mXom/Gqvo3XzXBBKMAW3kV0yG59 jooSMZKMF6OXs9iwcgcEJ28AKAafVfir1v3Wz0cLFofwbjvJVNRHHqztfktoiOLD hfaNGLMAbgCf4l0YX0Mjt346jsJpTYGV5Vp9EEWjWSwgGQSN2WrO7S/8KAZ45uNy KhDGlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793382999; x=1793987799; 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=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=gqZXk+VuNua60u1pGWLcK1/lQbhAqxWwwuLP1HCqMrw9ogLDPUZ8UQobJF1x8P84+3 R3yrqnsgrUVoUErXqKYtKQQIS5G7YXPI1daAl0ylJOAQoRdfpRQdCgQEbvREIiQDi08n 7yl4MsOAM9ab8qbB6Wa5K15C+s7i3vZAege6KYNgRvJ1Azf0CC5ggTG2wLKRH0ax+rgL S6/7I+27HBdKrbIPWCk2bjAJOL9Mx8YmDBgO1u17wdlCzBslG/b2SvWRCEPPPRqe+EAS xS9LlvdPmLSmFpEB9/+aKJ/BPKTSpJUjAnj788ggcTpgCxpEV/lyEheN+Ah8ddo1PA1Q vo7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793382999; x=1793987799; 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=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=i4ofhc8+bUGoMRarTnKxk9FPfxAs0Sqy+thb8gkP4oKMB+Y3a4rkIr2UiN+BFUaCCw Ul0uY22bszbLNEAQo6hycd5doOW9BiqcAKqCuVq0kBuAQjCc29kp5n25RDtxFNiiBmsS 1ByG0GI9vgMr12EJ7Od192fDKyG2/7uHLjhxY2V8cZgMfj+yRwZeXy/kU7uHfAQ5MV45 pSnX/7VNitqjK+p9etK9VfEPagmCGMUOXB5RknMbALjXbXFoJPLzNdgU8bLavciA5CvW ocqX6iSWfs4CVDl43GT+v0z1mL02LZ/ZFLVkrVSK39PpKHwJ6iAfU6xVeKTEw9oiMnM5 +NJw== X-Gm-Message-State: AFq9FYI9z0D2+dLIKtikbKlUd84GTyRbON0SJ/PYmc1/n9dUoGU33hEe CdO3GfMGkLX54RZnR7B09us3FAvyqWyfF2/UkhFG/A6RCp1RSPg/eYbqqQYJBGrDlaTYd65Z0dJ gnDhCE/sMxAVpBAQGPsTjXnfv0Kist8E+owyP94TOTqzoE7Kv0WM0ARTpJkg8zSO+QD+e X-Gm-Gg: AYBFou1O+6+nrtWH2iHWpXdcOyI/A9XqjmKjWsIIShOHL8JJLRJJbY4Q99KMOxTrlym 1VBtd3Jjs1+qhYM8EE8eX/rcfd0uFlHNDeyGd97I+fpaK32gUZTNpMSQnTORBGngO42JUXpnmpN UDy2dgs8Cihexwiv5hKOJYQNUQXWMLp7LQGNyEEt8QkB2iotiqzaPO0qW95tZr5a3vl39KFjoMG 2fubP9HB+bFbpeVFaQ4Mc0mzXXWN/DkAEkFG9UJU5xiP+3k6WRB+TSjnipOgoGauxR859X7dIIG TXqr6YmeQNf+ov1Wcpu4pLFm+PNN8XVb3O+Q5nNWD4hhgDs6O/+HtgMwI8NUZtG6PUnne82y6bd mBWzvpfwCKkOFVaNtsy9cT4aJGSGYvvAgMDrNOzuAu/cnUCPoQT3P8s7enciqR2lspmtL9GwXaJ 0gakLXYKUgjaPaYYlBMBERt0joJinHHA== X-Received: by 2002:a05:620a:410f:b0:93e:53db:d59e with SMTP id af79cd13be357-9441338b4cfmr978198885a.23.1793382998548; Fri, 30 Oct 2026 10:56:38 -0700 (PDT) X-Received: by 2002:a05:620a:410f:b0:93e:53db:d59e with SMTP id af79cd13be357-9441338b4cfmr978195785a.23.1793382998098; Fri, 30 Oct 2026 10:56:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 19/32] tests/tcg/mips: Group MSA float-max-min tests Date: Fri, 30 Oct 2026 18:53:41 +0100 Message-ID: <20261030175357.99684-20-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2PFLtv8pvakb 7XuIqnaAMgVeUz2xzBWsVpYIxAn7In2au/3jdW1dxwjPNP0aj2GPbgZGdqcEVzhwc93JTe2BQTm cfVU2vSOqgSpAjVQxOjkIo6jJ/A+xCgnjbbFt0Z8TMwS3km8zQb0ZjFzhKZl0B3SV22sQwYl8OR Htrr9f/6hu74s+TaZYX2DVgMi25pNIlgsEkL7DqNzJtrqCmW10LCX/peJaRhXmyQu1278cwRm/T rKW4kiA+LGArJGvcLgDw9owongJeO3Gtb0r6Gh2oc8JPaV+MIxnaiqtdqUwxMxWa8ZQ0Byl5WvP v+R6dXwqEKIJY8VuRxIU8bbgchU1omT8blSkjkpqv1fdygtjcUK9mSehYYRJiesndZi/lziZbeA +wWtvwipESSbOukNUN+baGnBgzPVFZKbV+AJjHfIeWoTmvbqZgeo0pCofAi8ql/MZefgyHBQizf +94ZYD5VMQDq/22OcWA== X-Proofpoint-ORIG-GUID: y8UjNT67Db5Vi2KH0PcNrOa8JEDk5vXx X-Authority-Analysis: v=2.4 cv=IeoSymqa c=1 sm=1 tr=0 ts=6ae4da57 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=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=oKQZkuFmXZLJHpf79lgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX/CrCooyNTd3u euAjti2nEPjYYJ7/IBf9tHMte99ZOA0eSvwhFdd1yMc5Ivx2NZrMpuoWOwSy+o0YFCqgtRPQjSO FtFascZNKCuVCgXKKtHRDUqP8BnE+h8= X-Proofpoint-GUID: y8UjNT67Db5Vi2KH0PcNrOa8JEDk5vXx 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383271774154100 Build the 8 per-opcode float-max-min tests as a single executable, test_msa_float_max_min.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_float_max_min.c | 75 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 9 +-- 2 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 tests/tcg/mips/test_msa_float_max_min.c diff --git a/tests/tcg/mips/test_msa_float_max_min.c b/tests/tcg/mips/test_= msa_float_max_min.c new file mode 100644 index 000000000000..13f8bc79b0e6 --- /dev/null +++ b/tests/tcg/mips/test_msa_float_max_min.c @@ -0,0 +1,75 @@ +/* + * MIPS MSA tests: Float Min / Max instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_fmax_a_d +#include "user/ase/msa/float-max-min/test_msa_fmax_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmax_a_w +#include "user/ase/msa/float-max-min/test_msa_fmax_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmax_d +#include "user/ase/msa/float-max-min/test_msa_fmax_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmax_w +#include "user/ase/msa/float-max-min/test_msa_fmax_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmin_a_d +#include "user/ase/msa/float-max-min/test_msa_fmin_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmin_a_w +#include "user/ase/msa/float-max-min/test_msa_fmin_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmin_d +#include "user/ase/msa/float-max-min/test_msa_fmin_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_fmin_w +#include "user/ase/msa/float-max-min/test_msa_fmin_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "fmax.a.d", test_msa_fmax_a_d }, + { "fmax.a.w", test_msa_fmax_a_w }, + { "fmax.d", test_msa_fmax_d }, + { "fmax.w", test_msa_fmax_w }, + { "fmin.a.d", test_msa_fmin_a_d }, + { "fmin.a.w", test_msa_fmin_a_w }, + { "fmin.d", test_msa_fmin_d }, + { "fmin.w", test_msa_fmin_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Float Max Min", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 17e3fe3e55ae..5e14bc3197a5 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -6,6 +6,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_bit_move.c', '../mips/test_msa_bit_set.c', '../mips/test_msa_fixed_multiply.c', + '../mips/test_msa_float_max_min.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -73,14 +74,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-subtract/test_msa_asub_u_h.c', '../mips/user/ase/msa/int-subtract/test_msa_asub_s_b.c', '../mips/user/ase/msa/int-subtract/test_msa_subs_s_w.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmin_w.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmax_w.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmax_a_d.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmin_a_w.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmax_a_w.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmax_d.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmin_d.c', - '../mips/user/ase/msa/float-max-min/test_msa_fmin_a_d.c', '../mips/user/ase/msa/int-multiply/test_msa_mulv_w.c', '../mips/user/ase/msa/int-multiply/test_msa_msubv_d.c', '../mips/user/ase/msa/int-multiply/test_msa_msubv_h.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383369; cv=none; d=zohomail.com; s=zohoarc; b=kZOFxTDviBsLr0NPaKCw+8rrcGfx52kLNyQ8EIBfqHDF8scXNxQ91b2LD8aeNgAl8NoZj+OfIaNAi48w10g7HEnzDL+2OFvFiWUTBxW8gKlnzwda1ytYxghJYhw7L2y3PCvu7ZzhEUs/KLWyGIEV1BDvWWcw49fAK9oeamsSDao= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383369; 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=nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=g2LXnnWOeo4Nuky7sw+aY6Fjw2544SHZLzH6DE1rNLo9/CtzQa3XAzW49iWjgl2XUqYSAmc0329Gl58x3s0fKQtWI1vM/xjGtiCPEQ3Ayek/Q9FeWnEb9VOldS5HGQTD2FQksqT3FHJVupKFQVqD/8UHlfDjia+m3eetUlecVDI= 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 1793383369114506.5919100650358; Fri, 30 Oct 2026 11:02:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqsP-0001MT-9e; Fri, 30 Oct 2026 13:58:53 -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 1xMqqT-0008C8-Le for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:02 -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 1xMqqR-0008IM-38 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:53 -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 69UHu57I2414431 for ; Fri, 30 Oct 2026 17:56:49 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 4hme6pmbfe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:49 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7cc06b9ca9eso101538137.0 for ; Fri, 30 Oct 2026 10:56:49 -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-48e71b78a4csm4459597f8f.23.2026.10.30.10.56.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:45 -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= nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=OMKiIvri4sTaWkru Qnjl7ClM5KE9jukmoaMBlu4qBayrTvL2VEO/F+axveJUenMJOWH029cHWEJ+WWEk LumRge62S5f7NJMcOSf8C1/g34GodUtzgUECgAeeg7SM74bUumzrPI/e98e7hnGa jaRROAshol+P+mOd1gS474QyKzgd469kXuiWBjZolmqPx/fOUJwXAUwHAwnu6eb3 wkp+vj1O/WV21Yi5Z6L8eng3qWwK8ZfV1wlg/NcAqcqvhNvPLK+Qbyn5xIsGST1A RyyqyHER0HLiPDF/nPskR0Wln9CDjkdGKiq2kOS0Ufum8nnDJGTriBq5YcBpXcL9 AfkM7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383008; x=1793987808; 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=nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=HjsXXl9Enn56vcYzB6ZinoGcc0ZQDmYV1TjTmUOmq7IUVHARpKoWu2lUT89z2VXhGw 283VGrVIQnHIQblIi5Iu5G/5r8uyWfkhgv5NrKXmztg3uDewzzeU9B1q6C2I5QeTxId0 WD3bw5qnvJNKk3WZANNEsQT6sujyvOs/o7r09xcynQfX7i0RJetJWkTSAf/U8fbQJnON RwZf7Y3vTI5fwZH32UrDpZfsF6rTV0GD+UkZx8fy8mj8Snd8hT8KBIBGNw4MMT/Tlq8P dJUhpHtPdJMNMablY8sJgApiEJw56EBxXIHW6PklFALJ6y+r/e6uESUm3HBlLmZho0OV 2y7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383008; x=1793987808; 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=nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=1pGpKLp5Nqvk0tCR8+pdudc1Q1Kdl+XmQ3aUuibhtSgqurK4Rbv/C+tCgzDztTr62m 0piAZQxfBDAvjuOqeCNxfzL7bYrS2yEiWq4NObA13Jgvxw4zzmPFIG0Y2vsh1e7XcJDi f7fVZCciORSjsPsZZ1Jepoqsz7cj5DkXqAGQ4IhWYDjNlqFTqnEbTDUt4O0lx3YZCYP+ uW3nIRryOB9RJWZWPVBs2KNFCxoyLKZSi3pVYSmMzu50sHyRV6piBKIU/X0L1O7d9M0T I2PMP55nvhUzXHNboFN6gE/6Fh5bWEKM8fzVYnlnHsmRKnGOWTcgLh0srx4y+0p6PoNU lgxw== X-Gm-Message-State: AFq9FYLjoLH7+hBJiwpZRGSF9AAIFftMgtjZIJmmSVW5/CJsNAt9cd0N ZB9L4MoXguaY19oAeyFp0bHEmNaI+008fEnU+eQ4bg1cPSoiga6OqcFEuV1+Iz2CKolFU29tAA2 LxJrJkJKxsVNOzWEYOhKqc+/EJO0miNtVVrKR/tFf9rqsaFP98gY8C555V4/KBNtz7XIq X-Gm-Gg: AYBFou2QAx9mGX6K9z3nkvxUCN7BJvMX/MThED0M7BsdUoPE10Wpxg6ww5Rdz++Psq+ UzKw6+RyWRVpqm98a7jyCGzu0ki8QKn/kYsjz2hysGmHQ+BFf2nKPVTXd+SxHvDWBZ15xopJ38N JYhxl/suFoGIgis8DK6yEe7fh7E2bNAVF1LRDunXzGOeg1FGn+T5aL+fLljfxlflSTpHl5jJEg9 hO7EMuQ1TcV/AkpPEXRLujX3ZDNbBz/YxG/Oj1tvJq8tMDteJCzIsQR08NXoeu9IFklTWeN3YMQ JdTjeqGKNeYXJXO54pTnWx3+IBPbIrnyk0fA0v5bZM+83v0keoWkweHh48BAiKID3pKr1TAD4Dp 8GaTyCiOT520lii52gMPgu2Qg8u7pcRUe7KKrF3zt4I9weegPcwQRN8IZu6dcQspGbF44FBck0G Am9ZRJ6TFlga41FbSc7tl+FcxYFq4YxQ== X-Received: by 2002:a05:6102:d90:b0:7cc:ccb:ce5a with SMTP id ada2fe7eead31-7d07269ca5cmr1456190137.28.1793383008377; Fri, 30 Oct 2026 10:56:48 -0700 (PDT) X-Received: by 2002:a05:6102:d90:b0:7cc:ccb:ce5a with SMTP id ada2fe7eead31-7d07269ca5cmr1456177137.28.1793383007826; Fri, 30 Oct 2026 10:56:47 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 20/32] tests/tcg/mips: Group MSA int-add tests Date: Fri, 30 Oct 2026 18:53:42 +0100 Message-ID: <20261030175357.99684-21-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXz/qLV/zXLL6Q 1iMDeX26dLPH0XzN/KUiuMcQ3E4QnTScgu6Rd7G07zw6nQ54zwty28Wek0BnUlpYrqWv7ZBKsO2 ob/yrlXixCot8DfsVbPo3hS3Iin9NFEkf9/eNVs5cVXpjWshrvziaBlbP6WbWw1aL50ZnHU+ARn hiU0jrS7iB9Z4JBafkC4gr8r2HnA98fe1v3IC9BQNoCyIHAcglSn/fZk5WApv0z1NSD6kVkWrsK BzLWjlXYMfiuAMr8hz4LZkZfSlwZKB0jxh3K78cbjgiJYBC3Pcn3zjk7QC14E12xiOCXebJxi1n hTpheIGXAD035uy4xhCG1HM41ROAAM8uc5XQh3vCNSilhvkaPQHFCUrPi+jvwmsNmQrUTP81i4w T6bwQiMAHRTzBbFt9Mh8tREy2Q9q0B4dS/2/vwAxvaL3GXget/QI5SJhSSO27teDhEucbeUaMkc iiCDWNHAeaL6dogztLw== X-Proofpoint-ORIG-GUID: mox7x64O48j5NEn_Wl2DCH6Kx_lYNpJW X-Proofpoint-GUID: mox7x64O48j5NEn_Wl2DCH6Kx_lYNpJW X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4da61 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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXx1mbRm0rbrP+ i0FqzWWe0t4QW8Q+wQyHyUj+pSNWNxkaipOC1Rtl7GI30G8bqyDBqrzvSl6KV5kEaQql3n74iJZ R+7xAlfsJXdeWLTLV6zUTZIA8ROvXLQ= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383371062154100 Build the 26 per-opcode int-add tests as a single executable, test_msa_int_add.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_add.c | 183 ++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 27 +---- 2 files changed, 184 insertions(+), 26 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_add.c diff --git a/tests/tcg/mips/test_msa_int_add.c b/tests/tcg/mips/test_msa_in= t_add.c new file mode 100644 index 000000000000..c29663c1bfa7 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_add.c @@ -0,0 +1,183 @@ +/* + * MIPS MSA tests: Int Add instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_add_a_b +#include "user/ase/msa/int-add/test_msa_add_a_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_add_a_d +#include "user/ase/msa/int-add/test_msa_add_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_add_a_h +#include "user/ase/msa/int-add/test_msa_add_a_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_add_a_w +#include "user/ase/msa/int-add/test_msa_add_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_a_b +#include "user/ase/msa/int-add/test_msa_adds_a_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_a_d +#include "user/ase/msa/int-add/test_msa_adds_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_a_h +#include "user/ase/msa/int-add/test_msa_adds_a_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_a_w +#include "user/ase/msa/int-add/test_msa_adds_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_s_b +#include "user/ase/msa/int-add/test_msa_adds_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_s_d +#include "user/ase/msa/int-add/test_msa_adds_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_s_h +#include "user/ase/msa/int-add/test_msa_adds_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_s_w +#include "user/ase/msa/int-add/test_msa_adds_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_u_b +#include "user/ase/msa/int-add/test_msa_adds_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_u_d +#include "user/ase/msa/int-add/test_msa_adds_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_u_h +#include "user/ase/msa/int-add/test_msa_adds_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_adds_u_w +#include "user/ase/msa/int-add/test_msa_adds_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_addv_b +#include "user/ase/msa/int-add/test_msa_addv_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_addv_d +#include "user/ase/msa/int-add/test_msa_addv_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_addv_h +#include "user/ase/msa/int-add/test_msa_addv_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_addv_w +#include "user/ase/msa/int-add/test_msa_addv_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_s_d +#include "user/ase/msa/int-add/test_msa_hadd_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_s_h +#include "user/ase/msa/int-add/test_msa_hadd_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_s_w +#include "user/ase/msa/int-add/test_msa_hadd_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_u_d +#include "user/ase/msa/int-add/test_msa_hadd_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_u_h +#include "user/ase/msa/int-add/test_msa_hadd_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hadd_u_w +#include "user/ase/msa/int-add/test_msa_hadd_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "add.a.b", test_msa_add_a_b }, + { "add.a.d", test_msa_add_a_d }, + { "add.a.h", test_msa_add_a_h }, + { "add.a.w", test_msa_add_a_w }, + { "adds.a.b", test_msa_adds_a_b }, + { "adds.a.d", test_msa_adds_a_d }, + { "adds.a.h", test_msa_adds_a_h }, + { "adds.a.w", test_msa_adds_a_w }, + { "adds.s.b", test_msa_adds_s_b }, + { "adds.s.d", test_msa_adds_s_d }, + { "adds.s.h", test_msa_adds_s_h }, + { "adds.s.w", test_msa_adds_s_w }, + { "adds.u.b", test_msa_adds_u_b }, + { "adds.u.d", test_msa_adds_u_d }, + { "adds.u.h", test_msa_adds_u_h }, + { "adds.u.w", test_msa_adds_u_w }, + { "addv.b", test_msa_addv_b }, + { "addv.d", test_msa_addv_d }, + { "addv.h", test_msa_addv_h }, + { "addv.w", test_msa_addv_w }, + { "hadd.s.d", test_msa_hadd_s_d }, + { "hadd.s.h", test_msa_hadd_s_h }, + { "hadd.s.w", test_msa_hadd_s_w }, + { "hadd.u.d", test_msa_hadd_u_d }, + { "hadd.u.h", test_msa_hadd_u_h }, + { "hadd.u.w", test_msa_hadd_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Add", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 5e14bc3197a5..7ef3d6aafa8a 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -7,6 +7,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_bit_set.c', '../mips/test_msa_fixed_multiply.c', '../mips/test_msa_float_max_min.c', + '../mips/test_msa_int_add.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -94,32 +95,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-divide/test_msa_div_u_w.c', '../mips/user/ase/msa/int-divide/test_msa_div_u_h.c', '../mips/user/ase/msa/int-divide/test_msa_div_u_d.c', - '../mips/user/ase/msa/int-add/test_msa_addv_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_a_h.c', - '../mips/user/ase/msa/int-add/test_msa_add_a_h.c', - '../mips/user/ase/msa/int-add/test_msa_adds_a_w.c', - '../mips/user/ase/msa/int-add/test_msa_adds_u_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_s_h.c', - '../mips/user/ase/msa/int-add/test_msa_adds_s_b.c', - '../mips/user/ase/msa/int-add/test_msa_addv_b.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_s_w.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_u_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_a_b.c', - '../mips/user/ase/msa/int-add/test_msa_add_a_w.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_u_h.c', - '../mips/user/ase/msa/int-add/test_msa_add_a_b.c', - '../mips/user/ase/msa/int-add/test_msa_adds_s_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_u_b.c', - '../mips/user/ase/msa/int-add/test_msa_adds_a_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_s_w.c', - '../mips/user/ase/msa/int-add/test_msa_addv_w.c', - '../mips/user/ase/msa/int-add/test_msa_adds_u_h.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_u_w.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_s_h.c', - '../mips/user/ase/msa/int-add/test_msa_addv_h.c', - '../mips/user/ase/msa/int-add/test_msa_hadd_s_d.c', - '../mips/user/ase/msa/int-add/test_msa_add_a_d.c', - '../mips/user/ase/msa/int-add/test_msa_adds_u_w.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_b.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_d.c', '../mips/user/ase/msa/interleave/test_msa_ilvod_b.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383271; cv=none; d=zohomail.com; s=zohoarc; b=SsaOlf+sBzEBC8udoNXWUWMuwFdx32mOjpeHPoD3qIXnNHigJUQMSf2DVreYvslAk4lhLLKjc2/khdM6K7mlf4qKHRqyGY+EqFcNCwXSgUYlsUYFF00rjql9qrffKzs8s8emv5IN068oKymqdihFohaCvPGdgv6kkNqoc826kFg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383271; 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=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=LC9HI8uvfxOtA/KC/tAPxAzxmlpRMzw6OtIm1+bX6GU2eXDUTbeEkFOwaTyd2PqAaWFQsw2mNS7y8g/NbhT/101hDMDwcRVgTI0pADrcOxkpdmDnBNuLDzRgn0hxV2WZ8l6tIXNye1K/3VRWHn0YOyuVZ59yZkMzc42OgMpWByQ= 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 1793383271347509.2865815936616; Fri, 30 Oct 2026 11:01:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqro-0000Xn-Fd; Fri, 30 Oct 2026 13:58:22 -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 1xMqqa-0008Ci-5N for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:09 -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 1xMqqY-0008Ik-5H for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:56:59 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UHu8LC373415 for ; Fri, 30 Oct 2026 17:56:56 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 4hme6qmb8x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:56:56 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93f3969a2a7so153477985a.2 for ; Fri, 30 Oct 2026 10:56: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-4abf396dfdbsm78342605e9.1.2026.10.30.10.56.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:56:54 -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= J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=Azrk07eS+2CbrVi9 TcizPCBVBXE02M0iTy9vMLLfwk72Z1SVXSendNZgfGQGwyRU1AwRhoHky9KLQOQq 2TjpUoXFUeKoRDnFZW5sQBQI1M+/RPQ/SYFYk+V8jhbN2FFls83cT8qQecJNjogt YXhYL+emN+YyXWMv9ZQh6zVYfYF0N1/Biplx9gauY3Qwu5HYMZPZWSqLvf7i06Iy 0+ePpucr1Tiw4P9DBY3yWvTQGqAbXBSsT3CLuAdGbdrx9K6HdQmLGA7BNyPyMagy 5hJ31oBa8grt96qLJlWRa4GgU+HcE4MvozQlU2JAsVN/l6syD4Ars7/UkVFJgwdJ YvZLFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383016; x=1793987816; 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=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=gM4mc8WMSxW5bv2qSsdjObKex0onkLIhXXxfpkkR3Qn+ZxfIbacg64U9JXOltRw218 xKiEK3HvjCiBxRJO06Y+QGBEiMcDO/PQE2dqR5rNmqr9IRCklh5TzkgEvHC+m+wdv46J cvuQusSKUAlGIj3Is0QVBhjiaDn/QqkhiOWYAoz5Kp8I79KKEborQarzRijG08bI0Iml lR1c1xkcnYhA1QJCSwltkgCwdYz+48X/BXERu3AYoPzVs56v3PLGjWb150cF141y4Sr8 /PD/5pKXN5tib0uccsMp0vqG8O2eoRK3NPWqtxzY8TYrD2SAL2Ba9SHl3mqhOVvTXVLl huBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383016; x=1793987816; 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=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=zWJFYgrUGyPI8J7XKMC/DBBh+HZADWW2t2ZnjeK4qHqOixB9GqKfJxdaN0zzaUd0+S OYgiwTVUXvzIA7ICiwHpqs/49TAIwf9g4GjaZM5tklbwHWM2mwlxNqTv7yket/Dy6JCO JLCTvOvHd9/GtHT0IYaLmYg592z+4Vn/3vHs0t66qc0lXjZDDoDtsemZCYJVepLzf3OQ swGl9PZu7B/qo6xFGU8FWjCnYf9W25M2tLKWIaWgqFOIHR/3zRhTEAioc9N2LIn9+YH5 5Vsd/li8JRw12oKyDy+80UBhBEHFrTSp/HntGeTs+PRbY6IgRG5sxcPFuH5Y32c+80RS v+zg== X-Gm-Message-State: AFq9FYK4vRuzVrg6CRMFGE+8iVWGEttLP2b2vng/ynL+oEeubbyPiZDN oczp0CsOPxbD1kyr4LtzRaf1u4WnH6Jl+g09WhQLhC6/Y0uhY8E4HgRQJazud8aR6bSSJ/BxDX4 9/m+aGBWx2t/XlTg8CEjF54b2YijyNRP5BtxKI3YxCbNaps2YEmSTteyKY9Op05r31/TO X-Gm-Gg: AYBFou1FQIkeXfKGYZnNYXd4gt9TYMyzrBeH8jYH14vm4tQQwL7uXBKLdEHh7Yti2Nw x/QRKrrHqBfrNAMedhN+9Hu/ygrSr6ppzV6LlDnD3xPaCMm5PcNJtx839LPjvQywHfIzal5KE+G W8YeusAiXPR8xwuq6EEjei/os7lViXm40GVN+IGaBzgwIXByH0BgG7yStUfqYgZaaJMG/xVvGNf RWL9hyHsnC/lHnT0fYdx1MPuNXg9+21+D2S/P2BzbumROqhvE1WS6xr0UX3rb7zDGm/eZCioW/r aPLuijug1PTQkc8YgkQaKvaNUn5HEkZx77Mt9EEzqlBVfWxtn/xQ7rKrVq89Z7pe6JzITK6ToZ0 d+C4IT31sz9La+b/Oxo8ljdnsL1chtCSAaCeB5ttk6ewhdu9hl+qzzXa3360MJoUDzNHYOkB/Fr ns5ZKixiQ67ZTH9IhIzVyEOEwepCM8TA== X-Received: by 2002:a05:620a:6014:b0:93b:ebd8:9147 with SMTP id af79cd13be357-94421611a7amr528263585a.18.1793383015683; Fri, 30 Oct 2026 10:56:55 -0700 (PDT) X-Received: by 2002:a05:620a:6014:b0:93b:ebd8:9147 with SMTP id af79cd13be357-94421611a7amr528259785a.18.1793383015185; Fri, 30 Oct 2026 10:56:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 21/32] tests/tcg/mips: Group MSA int-average tests Date: Fri, 30 Oct 2026 18:53:43 +0100 Message-ID: <20261030175357.99684-22-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX0jM4a6gnJkFZ fN3C561GGl+VsfGky7d4A927wUVjES88xI6XsvtRdokmnimJwfS4wHtbWwtHxI5cPVMHWzUcO8m A0XVS+Wq7qwmpi+eDqA9pkYyPPfxf8N+56wY0p/hXGQIBruIlAyxD2TQegMkKaXHbLvVbLv80HT OuFuhAHaAcRei0W1wPCcN84hffxerz5p1Af4inQjFhFZx+d1RNsY6axmDXvDFkqNTf4s4iXQLpU eChWzBtcnhWMRA2tkUHhmAxq5zfe+xgSNaJIhzGJ3PJWsoTAWobMkRkJCBGfOfQMsmT/a9FWZ4q Fb84skfepfV7PHzwEaFoMJqRXbCkV3WdcvATOoIAYl5oDVLlfFQ7L3eesBpqcItzTrGaNGlaCB0 pz57kYjWCFKYlvoimvErozfqnCgC7gzEWCXCx/CAuPnwOcR9AVBtlraTYifeZYE/7E5R+x30VDH jtvME4mL5wkkiP8gy4w== X-Proofpoint-ORIG-GUID: 3ZiGQ1Fa-3z99KUwf32LINREV044M4av X-Authority-Analysis: v=2.4 cv=IeoSymqa c=1 sm=1 tr=0 ts=6ae4da68 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=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXzRlK/kSjypSw bSzeunSCUi8+0a22QIxUOJmwQLfj7qoQPtmKMASoGM3AlDHYtpNatzL1YYMlkzEYmm0qswE1Li9 PpwMafwjQMhuMSExO5/VTrCjv6MWXt8= X-Proofpoint-GUID: 3ZiGQ1Fa-3z99KUwf32LINREV044M4av 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383273722154100 Build the 16 per-opcode int-average tests as a single executable, test_msa_int_average.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_average.c | 123 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 17 +--- 2 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_average.c diff --git a/tests/tcg/mips/test_msa_int_average.c b/tests/tcg/mips/test_ms= a_int_average.c new file mode 100644 index 000000000000..f3ff9fd345bc --- /dev/null +++ b/tests/tcg/mips/test_msa_int_average.c @@ -0,0 +1,123 @@ +/* + * MIPS MSA tests: Int Average instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_ave_s_b +#include "user/ase/msa/int-average/test_msa_ave_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_s_d +#include "user/ase/msa/int-average/test_msa_ave_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_s_h +#include "user/ase/msa/int-average/test_msa_ave_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_s_w +#include "user/ase/msa/int-average/test_msa_ave_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_u_b +#include "user/ase/msa/int-average/test_msa_ave_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_u_d +#include "user/ase/msa/int-average/test_msa_ave_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_u_h +#include "user/ase/msa/int-average/test_msa_ave_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ave_u_w +#include "user/ase/msa/int-average/test_msa_ave_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_s_b +#include "user/ase/msa/int-average/test_msa_aver_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_s_d +#include "user/ase/msa/int-average/test_msa_aver_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_s_h +#include "user/ase/msa/int-average/test_msa_aver_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_s_w +#include "user/ase/msa/int-average/test_msa_aver_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_u_b +#include "user/ase/msa/int-average/test_msa_aver_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_u_d +#include "user/ase/msa/int-average/test_msa_aver_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_u_h +#include "user/ase/msa/int-average/test_msa_aver_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_aver_u_w +#include "user/ase/msa/int-average/test_msa_aver_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "ave.s.b", test_msa_ave_s_b }, + { "ave.s.d", test_msa_ave_s_d }, + { "ave.s.h", test_msa_ave_s_h }, + { "ave.s.w", test_msa_ave_s_w }, + { "ave.u.b", test_msa_ave_u_b }, + { "ave.u.d", test_msa_ave_u_d }, + { "ave.u.h", test_msa_ave_u_h }, + { "ave.u.w", test_msa_ave_u_w }, + { "aver.s.b", test_msa_aver_s_b }, + { "aver.s.d", test_msa_aver_s_d }, + { "aver.s.h", test_msa_aver_s_h }, + { "aver.s.w", test_msa_aver_s_w }, + { "aver.u.b", test_msa_aver_u_b }, + { "aver.u.d", test_msa_aver_u_d }, + { "aver.u.h", test_msa_aver_u_h }, + { "aver.u.w", test_msa_aver_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Average", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 7ef3d6aafa8a..7da4aece8409 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -8,6 +8,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_fixed_multiply.c', '../mips/test_msa_float_max_min.c', '../mips/test_msa_int_add.c', + '../mips/test_msa_int_average.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -192,22 +193,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-max-min/test_msa_min_s_b.c', '../mips/user/ase/msa/int-max-min/test_msa_min_u_w.c', '../mips/user/ase/msa/int-max-min/test_msa_max_u_w.c', - '../mips/user/ase/msa/int-average/test_msa_aver_s_b.c', - '../mips/user/ase/msa/int-average/test_msa_ave_s_b.c', - '../mips/user/ase/msa/int-average/test_msa_ave_u_w.c', - '../mips/user/ase/msa/int-average/test_msa_ave_s_h.c', - '../mips/user/ase/msa/int-average/test_msa_aver_u_w.c', - '../mips/user/ase/msa/int-average/test_msa_ave_s_w.c', - '../mips/user/ase/msa/int-average/test_msa_aver_u_h.c', - '../mips/user/ase/msa/int-average/test_msa_ave_s_d.c', - '../mips/user/ase/msa/int-average/test_msa_ave_u_h.c', - '../mips/user/ase/msa/int-average/test_msa_aver_u_b.c', - '../mips/user/ase/msa/int-average/test_msa_aver_s_d.c', - '../mips/user/ase/msa/int-average/test_msa_aver_s_w.c', - '../mips/user/ase/msa/int-average/test_msa_ave_u_d.c', - '../mips/user/ase/msa/int-average/test_msa_aver_u_d.c', - '../mips/user/ase/msa/int-average/test_msa_ave_u_b.c', - '../mips/user/ase/msa/int-average/test_msa_aver_s_h.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c', '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383136; cv=none; d=zohomail.com; s=zohoarc; b=lv6+4I2A1b6RywhHj7Nw9uDNFUkRigpoO6qAQm26loJZtGL55qOp8MZpuqoO9FffN7GnbAYT56cLdhW9CYC9SsxcmEBHqERAm9ZelKKgisNcGHJst+I3IWo8ZKq7KxcSI+nl/KTcMgud4949k/Sw7QSM7lymEsNFLiCErNo3iWc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383136; 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=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=jZcuI3qkvM9l5gJY31xfZXFAvxzhIxD7Li6JFc130C6WnmwLL87wob9nKAChLHHwSvO2Trf/vl6yXEU+hXn+YNmThgPEWpqjfHDAMfRe40BofcAFvYGvcyVTCk6DWx/W6baPhybRlL8sycCQyAjQK33Xd7BQSjlhkXEyExRtQ58= 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 1793383136498340.3514400560948; Fri, 30 Oct 2026 10:58:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqs0-0000va-Ld; Fri, 30 Oct 2026 13:58:28 -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 1xMqqk-0008J6-39 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:14 -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 1xMqqh-0008Iy-D9 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:09 -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 69UHuQlH411154 for ; Fri, 30 Oct 2026 17:57:05 GMT Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qv9cq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:05 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-98304865f02so806331241.1 for ; Fri, 30 Oct 2026 10:57:05 -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-48e71b8c6e9sm4340910f8f.43.2026.10.30.10.57.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:02 -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= I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=UX49YYgqt/CVbM+4 BM/TPJnivcr9hjy4wK+pd6ZkVwblXm0G5cSbQ3nkkdyP5fNZORLW0ea6HziMIAYj Epr1sTPxUxvQw6JA3pSW9QcDaJdZVPMITUzRLCi99iKNRiKAuKp5+PNwNXDU4+kn FXoTYNN92tLs1b5N1bgFsYw5r0qRlRssLJgmsD8rc656hA0MyQS/N/FIf8raNgcb qugH0hFHmg+7WqpjfHtrj1223YGa7Catk7BQpM0003mlj1V0/jRuO12FIxawLPQL kRROyP7d2QQW7ZJRQe8KRZcXmRr9/SPtbnZ4yDgdo+G7gzBTQlI5uT6oZf/2SucZ 7Eeg+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383024; x=1793987824; 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=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=aqZnQ/sVK7kTUJTdLIvJGziGftcnSmA8BMw3Hb5YazC1vwSrFgtWoe+ifKNNTt2Mok aULQ+5xZoHxORuXxoOyhx9WhdG5hdwOIDzfH4Kxp6Z5uJec/DW2/r4DQYBI485zFMVy7 s44gnm72eRgkfZamltN8dYjk7SOSxp/6FsnDPiH8W2sfotDp0bBsfrJCxOH3ou07gWQq IbaS4gW6rrY2mfDz6M95dcnUZj9vR+D+8O1G63f+3dOSVJZbigtIti4lQfWXuTW2uqnJ EA5cC/FYSMA5T3Rhd1U6EppIzVwCs2Ke+SpWAEeGFKGH3R0fpY5dBgjKMa/Orq22EaTX fWDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383024; x=1793987824; 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=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=fFTARV8ZozDBnvwIJUafZjfxIwmiOvSgXD7CbazXFZ9YZ8Wsk8w3XLZFIaAcXImro/ q7rOezVKnKA6PBDXf9AorEIvX33xAasi4VaZWoCzR+Xr2JLc+tzJ/PywaLOh/6uvxIgM 84Hl8ohEfS+JYwU7+3g02EIwBFqclhNPNrWzGnfhEZhEUybyaX5kt/7U+uPW7kTXJMOK NIQZfC+YDUnyUSmoCUBmnBlJVDEhFPbzwfbPyMX/6gcbFPWA2jlKe5JeAzhYpZcRPQix 6N972bgJYzRwKgG8kgPFPWpC8JQ/Ark1dDoLeCHkvXvpnfQse2PSJhVobL4DY2adJj9z 7v6w== X-Gm-Message-State: AFq9FYLA0Liej6Tb1yrKMWOt9exwDRQbmXY1UHqQcDe33dkpr8li3Iq7 AuH7L2Rd2T7So6H+TRZO5EXRN8hAHPuypA0IV2p9srlgGn8/3rWbRk+UV9Jts7wKqldWSVfu1dA haLTaq+hTcUTqfK4ozeJ6ryBEc6zRGsSBEi6ShqUSj/L5YUZwTSIY5lOuwmSygV/Bx8Fa X-Gm-Gg: AYBFou2RRSNbN9Ymq7eLS6oSi/3Q0lN9l8BuyKWC8q8yDYuNX1r/APW+XJ8JIZuzJm1 W55Xf/tKDwO+sscGbgDds6AQVYAjodHju1s6soB3jl/1zgg3Xe4cwG8Y2WaunVVuHZrW4of6Xly PLBO1zVscOUMm8YWJxFcl9KyXDWa/PFGYcIyqF/9S6mgUgiTZHXW58MSG6PXAOld6DnwjXh7/7+ BkIJIaHoujJlanqxscZdQ/ynFTEWPOFB51j+w405ZXlMq0rhLqohIA4MTw36ZIDnqHJq6XEwmUn O4pqcVlC3o7kpBIE0Qvb4sDfVMTov0X797MANI5dSFSHHldLazfgYpPmLwDqcfvmhbxMwczWOUS J9zUEfINAFNxZNG0j1eBkBR8WK0J6qrFmB97sKRGKsjRg9kgpA1wwOVb/ROQoOMMrncV42sne+e ZL09z2YGwz6viZaxfR3hVnRcd5flk7uw== X-Received: by 2002:a05:6102:149c:b0:7ad:3ad3:997a with SMTP id ada2fe7eead31-7d072247aa7mr1825158137.5.1793383024359; Fri, 30 Oct 2026 10:57:04 -0700 (PDT) X-Received: by 2002:a05:6102:149c:b0:7ad:3ad3:997a with SMTP id ada2fe7eead31-7d072247aa7mr1825143137.5.1793383023847; Fri, 30 Oct 2026 10:57:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 22/32] tests/tcg/mips: Group MSA int-compare tests Date: Fri, 30 Oct 2026 18:53:44 +0100 Message-ID: <20261030175357.99684-23-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: y3G7ovoyiSZgL8Loe1dvKsma4Xi61VbO X-Proofpoint-ORIG-GUID: y3G7ovoyiSZgL8Loe1dvKsma4Xi61VbO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXy01VF5/JlmuQ FiHspVzsQcA+VcNxmM6XyPS9f9YVks4r0R7Gj6WI8E0/x1POQR9pa0DDqqv7BwUevbe9KVQHy4F 7Q2E+FM9ahxHvQ0mc2bDwplKogvZa8kvUCluYA1es8BYJMg1BFiIQPKH6U/FmKSyTG1S0G5V9DA kF3fJrJCYP0GfMsD47XvF/ho8rgVXgWisuAlnfaufVufjp582rKfwKJqDy3QUXNcrIQbeiGcKGN k6QRM4XGqQ3kZVq61Ci1Og7Wm0BBzOfZyCtm4rLfcmpL4k/SGpZuWkHaYKasIlHsVhPcION9CJQ e/lZ2cKTI8+Fv1MbRSoNaLX0K0tMF4efeV1JVj1BaOXYoA7B3lcl3WXxl3eQzH2OidWqSF/dJ4H Gdoo5JF8xQLruFMZmbbz7pshGaQcroOreAnX5ZYk3pzc9xlQMBwNgS+hGNF1G1by2/ES2ZRZ5oO f2dpmS1ST09madLNrBA== X-Authority-Analysis: v=2.4 cv=dPgzC+Zb c=1 sm=1 tr=0 ts=6ae4da71 cx=c_pps a=UbhLPJ621ZpgOD2l3yZY1w==: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=MrkvrxfUm_GaFPyPbecA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX7u4/kEDhxdU8 MwBDkV6NUfjhi6ApRma3nB4maFslIrSle/6nQaVuxpRbIUW52VmBhsbS4t8iJ+XQZEebQoQWVTK vYiFv1jMM/ELaWCFUWsPcXtCs5qiOVM= 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_06,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-2610300071 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: 1793383138105158500 Build the 20 per-opcode int-compare tests as a single executable, test_msa_int_compare.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_compare.c | 147 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 21 +--- 2 files changed, 148 insertions(+), 20 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_compare.c diff --git a/tests/tcg/mips/test_msa_int_compare.c b/tests/tcg/mips/test_ms= a_int_compare.c new file mode 100644 index 000000000000..b500772be5d5 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_compare.c @@ -0,0 +1,147 @@ +/* + * MIPS MSA tests: Int Compare instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_ceq_b +#include "user/ase/msa/int-compare/test_msa_ceq_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ceq_d +#include "user/ase/msa/int-compare/test_msa_ceq_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ceq_h +#include "user/ase/msa/int-compare/test_msa_ceq_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ceq_w +#include "user/ase/msa/int-compare/test_msa_ceq_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_s_b +#include "user/ase/msa/int-compare/test_msa_cle_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_s_d +#include "user/ase/msa/int-compare/test_msa_cle_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_s_h +#include "user/ase/msa/int-compare/test_msa_cle_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_s_w +#include "user/ase/msa/int-compare/test_msa_cle_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_u_b +#include "user/ase/msa/int-compare/test_msa_cle_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_u_d +#include "user/ase/msa/int-compare/test_msa_cle_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_u_h +#include "user/ase/msa/int-compare/test_msa_cle_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_cle_u_w +#include "user/ase/msa/int-compare/test_msa_cle_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_s_b +#include "user/ase/msa/int-compare/test_msa_clt_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_s_d +#include "user/ase/msa/int-compare/test_msa_clt_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_s_h +#include "user/ase/msa/int-compare/test_msa_clt_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_s_w +#include "user/ase/msa/int-compare/test_msa_clt_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_u_b +#include "user/ase/msa/int-compare/test_msa_clt_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_u_d +#include "user/ase/msa/int-compare/test_msa_clt_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_u_h +#include "user/ase/msa/int-compare/test_msa_clt_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_clt_u_w +#include "user/ase/msa/int-compare/test_msa_clt_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "ceq.b", test_msa_ceq_b }, + { "ceq.d", test_msa_ceq_d }, + { "ceq.h", test_msa_ceq_h }, + { "ceq.w", test_msa_ceq_w }, + { "cle.s.b", test_msa_cle_s_b }, + { "cle.s.d", test_msa_cle_s_d }, + { "cle.s.h", test_msa_cle_s_h }, + { "cle.s.w", test_msa_cle_s_w }, + { "cle.u.b", test_msa_cle_u_b }, + { "cle.u.d", test_msa_cle_u_d }, + { "cle.u.h", test_msa_cle_u_h }, + { "cle.u.w", test_msa_cle_u_w }, + { "clt.s.b", test_msa_clt_s_b }, + { "clt.s.d", test_msa_clt_s_d }, + { "clt.s.h", test_msa_clt_s_h }, + { "clt.s.w", test_msa_clt_s_w }, + { "clt.u.b", test_msa_clt_u_b }, + { "clt.u.d", test_msa_clt_u_d }, + { "clt.u.h", test_msa_clt_u_h }, + { "clt.u.w", test_msa_clt_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Compare", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 7da4aece8409..199b1b934a5e 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -9,6 +9,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_float_max_min.c', '../mips/test_msa_int_add.c', '../mips/test_msa_int_average.c', + '../mips/test_msa_int_compare.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -144,26 +145,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/shift/test_msa_srar_w.c', '../mips/user/ase/msa/shift/test_msa_srlr_b.c', '../mips/user/ase/msa/shift/test_msa_srlr_w.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_u_d.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_s_h.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_u_w.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_s_h.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_u_b.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_s_d.c', - '../mips/user/ase/msa/int-compare/test_msa_ceq_w.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_s_w.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_s_w.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_u_w.c', - '../mips/user/ase/msa/int-compare/test_msa_ceq_h.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_s_b.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_s_b.c', - '../mips/user/ase/msa/int-compare/test_msa_ceq_b.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_u_h.c', - '../mips/user/ase/msa/int-compare/test_msa_cle_u_h.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_s_d.c', - '../mips/user/ase/msa/int-compare/test_msa_ceq_d.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_u_b.c', - '../mips/user/ase/msa/int-compare/test_msa_clt_u_d.c', '../mips/user/ase/msa/logic/test_msa_or_v.c', '../mips/user/ase/msa/logic/test_msa_nor_v.c', '../mips/user/ase/msa/logic/test_msa_and_v.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383215; cv=none; d=zohomail.com; s=zohoarc; b=N68TC2FyYR26UL6K8GtNOWAI101CRi4gtuYYCTyMyh7OFVYQbHlwoFvIrefS1zo9NZt55tklDIeuoWbzf8wahsymoNOervW5N5QECRHnmCI5LfQBPqOQj/inFnZnxVFquNUZ+fx9PiBrN7eoAsMf7z5MEvlvKqdHjvKaQb0Whug= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383215; 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=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=IkjByU9NDBRv6fKYaQX88Q/qcKPuj5XFEWS+JhOoeg12SDjH1j8coSQYKeuDd9Vat3jj25TgnMOuYfs+hkKDsQ9G3VBON3V2ZStQuRcd1PXtoqJmZNN74VnszgVquLiL3vPUp/+Mo56caaEoHT6KAVeN/6zohu1Eo2b0ddLvbTY= 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 1793383215507937.891408830067; Fri, 30 Oct 2026 11:00:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqsO-0001IT-7r; Fri, 30 Oct 2026 13:58: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 1xMqqq-0008Nh-8A for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:27 -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 1xMqqn-0008JH-TI for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:15 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UHu28a4025492 for ; Fri, 30 Oct 2026 17:57:12 GMT Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qm9gg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:12 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7cc23a549a9so697904137.0 for ; Fri, 30 Oct 2026 10:57:12 -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-48e71b789c6sm4821765f8f.26.2026.10.30.10.57.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:10 -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= 6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=FttOhTpaMOAfrzaE 0Pe7ngUGY16g7wcRbiT+uXB6Uui2Zgu+dRC/qzg5vhNcdoQhkMZGoA8B7tTkd0/P CuJ6GnWh7V3sUs3yeZzZaG39MNO6TfKIP+LyXalkBgCEIjdVrTc+mzNYKq4uJRDb m+IEItZ5Z2Rd7tdTwfWRwHTlodxITL+ii4YUC414WBS73iMUgsnF4l4ppagIvIFJ HnSxY5SGLrvg68/vZLULOhF5wyIYQNbGzGFnMDnLncvpDdWRnNL00AvPpiZyKY5M 2kMaOc4M433ia3ImuymcT8+7kEUuTFgJBZjt0XrlXDcJp8uHGwHZGMip1TnCiplW Hn1yCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383031; x=1793987831; 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=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=D9J4f1m4+3g6NzNzie1a0JBIjtUB6aEAzhGP/scLU8xe7/Ba34/wMsdwQFeI5fsBr2 3tmlawcAQ6c/rMoSZCjGIPkyn8aL3cZV3hQlitKIl1m48NvFcON1KKHs3xPK76/nYoZI TySo02MPdl8wQJvAda197OUkQd9hvjbKYc1uWOH8wpD5hUnN859ewilCowiEGdDAMFHK 4cOMLOJob8wPcoyoNcYSKKjat3ahrG6hJ3M7QTw611IpUBJtcCZlSp1FvKZx5WOMSg0u BMjTfXVdxDxBNbe87cpbOGki1mvFSRcYfJrXpuu3bgK5kvpcI9I3mBvTdqlMDJUu7IQl 2txA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383031; x=1793987831; 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=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=fob0sQ8wBLQ27mFjshpYt1pTZR1d76+KCIO3COrEFBIu4DOLpKmstON2qGcs6PF1wi mMHvIr0BVAf9H08iTteSomyq9jV18W5NQXecUpvU6jEJkU+KY7wFRErzXgYHIrwZgfw6 ksa0NdgAhbl8qxKdvYFB+dwgOqtmRhsgDrzBAwN5i+dfvsXzZHW7q9bcaTdq1NHuRIzi eZibXdgJTcM0s5p88VimJ8K0ZQNrZTaqrIdaB1KM9Qv3nxc1W8GBDUIhR3EJYh0gO1KX OxlxYzCxek7r6SPBPnWunvZiKS4KBYTm08rhZjmDPugbEobDnHjcivBG5/IPXJyw+mUI kAtw== X-Gm-Message-State: AFq9FYJMLx3xB80fgZU5gFWxuxAoClUdwXUOgJlEUO8Z+U41Pxz7Pb09 6xfy0TOT06Ja3mXBo7cjnHuZ2dTrPVq3+A9I6+c1lUJol3lmqwk1gZOJ40SzFTjM5+KarbZC8d7 iNCcMyc027Sk16h+XU3U724R0SSuIV9Me2r08pRYdyqEw0CF52m59WdFXJKaTO7+zQ/e3 X-Gm-Gg: AYBFou0ZkigMp5MFzEmTe2pp+fGQzYaigfrAumu5JtfLonXEgwl1xmPNe7+iZXfxe6B 3b//DZWtSbC9IMW5dbBWZryucdrgXWWmZwGRtASJ6qeqOgAk16jc2uqfTzMTw1U8rC2YyN79UeY hy9W3dm628GdAAkxuf+FGydRF79O/zCX87SslyXm/r6hNKShxFS1C+VJd8/SnW/8UdmxwhWmD9L r3KpcNMJxzHzNfHHUCI9YTbF7bIiE7nvzU9r3LyjHkE9YNseG7A+tv4Z++Y422QYFqw+eKcf639 AMepuZFU8fAhWUbyZz2b22sCZ/eM2Sys7Q7QLGT8qGosEtZHKX8GZGU/bS8kgDhZnCksJQHdcAH OabNJ7U6FHOfVOkJgft8EnQjZhlHpgRS69/VFz84rqJeVFcTh5AUqKmzeS/8t8reOWnJ07n177n BI+UqrtWolVuGTm5nNWPYlRMP87z+pJQ== X-Received: by 2002:a05:6102:2b85:b0:79e:373e:8216 with SMTP id ada2fe7eead31-7d0723d2480mr1755027137.0.1793383031555; Fri, 30 Oct 2026 10:57:11 -0700 (PDT) X-Received: by 2002:a05:6102:2b85:b0:79e:373e:8216 with SMTP id ada2fe7eead31-7d0723d2480mr1755018137.0.1793383031150; Fri, 30 Oct 2026 10:57:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 23/32] tests/tcg/mips: Group MSA int-div-mod tests Date: Fri, 30 Oct 2026 18:53:45 +0100 Message-ID: <20261030175357.99684-24-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: o7IUdLTNs24QJakvOzLj1x-BxSMs7hOd X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX655IgkFRVUoo HivHPUWnAXeDswvBc14c37I3ihXi8cNhee6pd5QNekydjT8Lrf1AshwIKECFf3J80Zf9Z4mgcNe 9ys/n6m7OPSPIL+BtkXoflxByDQrW/o= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2sngw8cM8b2v 5qt+aI9VRZhGF0prNCwxqtAyJmsSkVQsMIAv+7BzCYW9Qr1ffupAmVwN0ywhDhS01V+65FQqVs2 VhgQbsvD11QsE/MZnR7PjpsXLqm25O9Qln/Nw5EDl6wMXQTDoz0oc0Z98krlmwVqJ8z1ZmSkjbi 6ApKd3nLcTx+Ut9CSQURiUry2IxfmgYiDNld2j6uqqJvVc74QxY2w5pR2PGs4x1rz/Kub63ewqG JJd5pyv/tTu9PnGKdqxcWv5SqHKjDN2YZk6CcErkTB7LlPMP1MMEQzn9X38vIKMpjhY9x4/MsYd EfzMs2UHGyhfkGAxWZ5rdahdxCTN+iNNPpC57ac/ZecMa4UYw0T2lUuQdvdMlbSQM/gA1FYglqX hjTODrOT6vgwkyJlCjuAiHTcEPY9tvbXWt137W0zT7d9imLdqm2I2l6oGzEPPd/0V4Fvlwusc3Y 1KuhG/V2BfqttPWCmdg== X-Proofpoint-ORIG-GUID: o7IUdLTNs24QJakvOzLj1x-BxSMs7hOd X-Authority-Analysis: v=2.4 cv=TpVzFzXh c=1 sm=1 tr=0 ts=6ae4da78 cx=c_pps a=5HAIKLe1ejAbszaTRHs9Ug==: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=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n: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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 priorityscore=1501 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383216855154100 Build the 16 per-opcode int-div-mod tests as a single executable, test_msa_int_div_mod.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_div_mod.c | 123 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 17 +--- 2 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_div_mod.c diff --git a/tests/tcg/mips/test_msa_int_div_mod.c b/tests/tcg/mips/test_ms= a_int_div_mod.c new file mode 100644 index 000000000000..764054c2a57f --- /dev/null +++ b/tests/tcg/mips/test_msa_int_div_mod.c @@ -0,0 +1,123 @@ +/* + * MIPS MSA tests: Int Divide and Modulo instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_div_s_b +#include "user/ase/msa/int-divide/test_msa_div_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_s_d +#include "user/ase/msa/int-divide/test_msa_div_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_s_h +#include "user/ase/msa/int-divide/test_msa_div_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_s_w +#include "user/ase/msa/int-divide/test_msa_div_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_u_b +#include "user/ase/msa/int-divide/test_msa_div_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_u_d +#include "user/ase/msa/int-divide/test_msa_div_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_u_h +#include "user/ase/msa/int-divide/test_msa_div_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_div_u_w +#include "user/ase/msa/int-divide/test_msa_div_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_s_b +#include "user/ase/msa/int-modulo/test_msa_mod_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_s_d +#include "user/ase/msa/int-modulo/test_msa_mod_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_s_h +#include "user/ase/msa/int-modulo/test_msa_mod_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_s_w +#include "user/ase/msa/int-modulo/test_msa_mod_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_u_b +#include "user/ase/msa/int-modulo/test_msa_mod_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_u_d +#include "user/ase/msa/int-modulo/test_msa_mod_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_u_h +#include "user/ase/msa/int-modulo/test_msa_mod_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mod_u_w +#include "user/ase/msa/int-modulo/test_msa_mod_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "div.s.b", test_msa_div_s_b }, + { "div.s.d", test_msa_div_s_d }, + { "div.s.h", test_msa_div_s_h }, + { "div.s.w", test_msa_div_s_w }, + { "div.u.b", test_msa_div_u_b }, + { "div.u.d", test_msa_div_u_d }, + { "div.u.h", test_msa_div_u_h }, + { "div.u.w", test_msa_div_u_w }, + { "mod.s.b", test_msa_mod_s_b }, + { "mod.s.d", test_msa_mod_s_d }, + { "mod.s.h", test_msa_mod_s_h }, + { "mod.s.w", test_msa_mod_s_w }, + { "mod.u.b", test_msa_mod_u_b }, + { "mod.u.d", test_msa_mod_u_d }, + { "mod.u.h", test_msa_mod_u_h }, + { "mod.u.w", test_msa_mod_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Divide and Modulo", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 199b1b934a5e..537de9ea4a2f 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -10,6 +10,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_add.c', '../mips/test_msa_int_average.c', '../mips/test_msa_int_compare.c', + '../mips/test_msa_int_div_mod.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -35,14 +36,6 @@ if 'qemu-mips' in emulators endif =20 tests_mips_msa =3D [ - '../mips/user/ase/msa/int-modulo/test_msa_mod_s_b.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_u_d.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_s_d.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_s_w.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_s_h.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_u_b.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_u_h.c', - '../mips/user/ase/msa/int-modulo/test_msa_mod_u_w.c', '../mips/user/ase/msa/int-subtract/test_msa_asub_s_w.c', '../mips/user/ase/msa/int-subtract/test_msa_hsub_u_d.c', '../mips/user/ase/msa/int-subtract/test_msa_hsub_s_w.c', @@ -89,14 +82,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-multiply/test_msa_mulv_h.c', '../mips/user/ase/msa/int-multiply/test_msa_mulv_d.c', '../mips/user/ase/msa/int-multiply/test_msa_maddv_h.c', - '../mips/user/ase/msa/int-divide/test_msa_div_s_b.c', - '../mips/user/ase/msa/int-divide/test_msa_div_u_b.c', - '../mips/user/ase/msa/int-divide/test_msa_div_s_d.c', - '../mips/user/ase/msa/int-divide/test_msa_div_s_h.c', - '../mips/user/ase/msa/int-divide/test_msa_div_s_w.c', - '../mips/user/ase/msa/int-divide/test_msa_div_u_w.c', - '../mips/user/ase/msa/int-divide/test_msa_div_u_h.c', - '../mips/user/ase/msa/int-divide/test_msa_div_u_d.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_b.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_d.c', '../mips/user/ase/msa/interleave/test_msa_ilvod_b.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383136; cv=none; d=zohomail.com; s=zohoarc; b=RwSc/9Li30FZuvBarPvyGTM2Y8kjrQeHU7lFbqG9QEY9o87VeioCCW+TRgSRrI4CWYtWqEUFytxmnKmHwqQc0qYAdn4hP6cSwETvn2V6ZNFH/1m3fDXzih7v4TCC+W3xydRcIJopeYa1I910QeYkDdDpfMizoVwkTskezhg3DfY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383136; 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=zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=lVI9RwTcuDoPLYtQlhF2o8ieiVxkCkiFyLv0oe1Vt4PdNQKltGKYavi+JJXf3MLmpnv/nJUAfK9EUIdWarWQMUYmVAxEpup21b9TejSqXCpCJl7vfWb4tm23hDgCH85SFGM4q2CIPxpZe/RXTDa45cXGLfenlmPdl9CznECS7Z0= 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 1793383136712383.94716540053764; Fri, 30 Oct 2026 10:58:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqsK-00018N-Lh; Fri, 30 Oct 2026 13:58:50 -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 1xMqr0-0008SI-8x for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:34 -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 1xMqqx-0008Ji-Q9 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:25 -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 69UHu9vQ3057237 for ; Fri, 30 Oct 2026 17:57:21 GMT Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pcbhe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:20 +0000 (GMT) Received: by mail-vs1-f72.google.com with SMTP id ada2fe7eead31-7cc10da5ad4so210906137.2 for ; Fri, 30 Oct 2026 10:57:20 -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-48e71a4d511sm4423576f8f.8.2026.10.30.10.57.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:18 -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= zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=nnrCWZ14P7P8zZDj KVzefXxH+ZvYi3t+emuCWesrFYLp2Zww8tcStVbyUZio5fPypCvErZ92HvE5Pt9c uTapih/lWKLp4rL8h8feThLjLqGO43seznnwAcUkJuK3lQoQmGxRiua/fBL5tatR e6UBc3qzF++AislGoIOIYQihBAxuXeWZ8l8RN6rqVvlzmS3n7EOiwejwTspo74lj 5PN8xLCnDwf3JsrSeAv4pYj8/TSL0fraaN8eqao7NyTktqAVAhal6ZxuNUzoqWFi fcpjdQZlZaLdpUuHz5Pr71DFpgOzduEZhcPHJIP7yJRqPJ01BmZM0otbfw6fhKH5 PYGVeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383040; x=1793987840; 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=zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=A7gcJYwbrnTXRIXlFx1bgnNJ7/Vobrtb5rmyWetJPXohCTOWU+pbBwd8NXtr5120Su yFggPClZAeY9PhVff5x4/WSZqz59VsQexFzRIp/0rFWB3widBVl9jisiQJVH+cbtYbDa Vb15PVpJM30rGtpyLkIahe1eTzJujvSHkwPX4B7EbRe+xHkAAUWK6Ge9Iaxbg9vm9bFq fmVEfG/dOiaiP02XrDRohyo+oJHPkNqn3BHfXBdBKOzn8gIOog6eCfQ0v3z50E2nAmQP A7WBBtEAaJL9HkykDW6i2tNhxLz8SI8TbHUFsqpl5oCdhqHEH233caVtxksmM9f2pZKK UCOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383040; x=1793987840; 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=zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=k28eKrg/nqA669ur16Lf9NW/mYmcTgX44IiGq6yiyxLdSBkdnyIP5QDwYyxP3Yby+h v0GLAhdhWMLNwP6EJyVhLkgR0ZB2OGDZ6x59TuECG0EG8wZ0+ns9I+PQPeZU7lbGrFz4 Z/3kmxDb8EI8/DFrl+620WHJh0wG00Ymgyx8excJncrP9XWFcTJ7QeYWbmoMUbbLXisv JnjhQbLa554ueEnrSi0kom9+5HJX0EkZHp0oJI520I6+9UQEl9Pl48zrLkLueNceQhxS 8pbuQwQVRPttSH9ePsq4ik+GNv408QkTL0uu5dd0aZ1tkMWrv7PjaIYAkoLJsDqyTYK3 XWSA== X-Gm-Message-State: AFq9FYIYzU+rmxlDdgjRGu+6hjCjWYW1fBiu6fH+UkFVUob+HQlVpIPt RvxvlIYMOFfo25+00bHLiHFJSyxNpKovCuDV6IefebB5gsuVUpuRnwF1iD5DTBVfPCZ8ayyTcUf qX9al+Kylj1uSCmL9dnhktq8ZzxfrRlcDhVn+1mJljMImWZgTDlSNGSviHpeMxqvhLYGr X-Gm-Gg: AYBFou2rqIM2TLjQR/beztWUdS0LlYkfsRNrjvEmfslnOB8ujiRN0i+88F65cOqgiE3 DXqaqOj/zSu5LEMTUI/I0vvfdIaOlWWW0Kq4oDCP205eBMD2y8SqyDoZGXV8drfLV4U4Irnz0zc wPNDVFiU1jmyqM99rYcR1eI2U9CPZn37XXvP91uQ1flJ2IyvI1RmiWbTCYf8PQRUph/kkVNO+97 pw+qTeU0ny2waywZnZ5+MzeYO8H/reNN5m0BXxKTGzJkk+6yh98257yEt0QDGin6tepxb2xV5x2 yOkkVS13m6BAcoye3mI2C2TuOEtUv9CqbteG9HrtiwFlbrr0/tUPaVzD8RcFqBnzfZQm+IZDzS+ BUWa1qtPgJQcRocxOUXjR4Rsxc8c1goRdA40JA+p+5ZkD2v4bibfq8c1AW35ded5O76w9vlLFea O67CfxRXzdoglVJGmCJC0KXvPT6LhMfQ== X-Received: by 2002:a05:6102:6c4:b0:7ce:78f9:adfe with SMTP id ada2fe7eead31-7d072c17d00mr1575869137.18.1793383039730; Fri, 30 Oct 2026 10:57:19 -0700 (PDT) X-Received: by 2002:a05:6102:6c4:b0:7ce:78f9:adfe with SMTP id ada2fe7eead31-7d072c17d00mr1575856137.18.1793383039261; Fri, 30 Oct 2026 10:57:19 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 24/32] tests/tcg/mips: Group MSA int-dot-product tests Date: Fri, 30 Oct 2026 18:53:46 +0100 Message-ID: <20261030175357.99684-25-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6CaeoGxe9Xkb BKVvQ66jmJNvTlIhu5sYowpcGDdOyY8JooIHX27CQ77PGx2577+uqlxT7kAykOQPJQaSlxm4TRg WhZ+hseZS2hPSKgYjAgkQ3PVoVhwUkvQ/rmFAsaaS40XCbNiKjq6WceapwQos9XFk8rEhrvwjwF LGH/cOTeV+rhI8oAzEXNHzCEvoa9JMngTaQXZvnhD8QwYjy5nZRK6HMfnIjm+XrfLobinKdeqLe JE5gVJK08YmwP50Z4q3biUfVXRL+soYbZRSFi9SZK3SCGoouEfZK8qUJnwa9BdW3h1QRSJkKKYo EbjlBPk785hl6ramIDQGS2ta1fxRH1hUrTeTcbCiobJKkkINVj6UrJUV/tyc7Xm3opjXAZuCdL1 70HqMsySOHHJovXFEK2yaaDVTI6n2otXIANn/vyxMSUl8foowrDrdB1VamRNJ0JZgvByHTY/wMQ W3rjrqUsyWV/fBPLTPA== X-Proofpoint-GUID: 1PGwlkFEWrfMHjbHvKLEcVQubXOz2YEh X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4da80 cx=c_pps a=DUEm7b3gzWu7BqY5nP7+9g==: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=VhQGtWI-d0xSCWyjZuUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=-aSRE8QhW-JAV6biHavz:22 X-Proofpoint-ORIG-GUID: 1PGwlkFEWrfMHjbHvKLEcVQubXOz2YEh X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXzvlbJ0UGzE4k Nxw+SfodY926MrEmTVF7ETMawyFvYdwBfjvN1c9gPgxd/EKG8PX+ZyhNrtPj5gZtmJS4GZ6vG4e zd/SMMplLpLWiZ3cpcu7xMyYok3hTls= 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_06,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-2610300071 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: 1793383139342154100 Build the 18 per-opcode int-dot-product tests as a single executable, test_msa_int_dot_product.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_dot_product.c | 135 ++++++++++++++++++++++ tests/tcg/mips/meson.build | 19 +-- 2 files changed, 136 insertions(+), 18 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_dot_product.c diff --git a/tests/tcg/mips/test_msa_int_dot_product.c b/tests/tcg/mips/tes= t_msa_int_dot_product.c new file mode 100644 index 000000000000..fcbd414741b9 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_dot_product.c @@ -0,0 +1,135 @@ +/* + * MIPS MSA tests: Int Dot Product instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_dotp_s_d +#include "user/ase/msa/int-dot-product/test_msa_dotp_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dotp_s_h +#include "user/ase/msa/int-dot-product/test_msa_dotp_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dotp_s_w +#include "user/ase/msa/int-dot-product/test_msa_dotp_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dotp_u_d +#include "user/ase/msa/int-dot-product/test_msa_dotp_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dotp_u_h +#include "user/ase/msa/int-dot-product/test_msa_dotp_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dotp_u_w +#include "user/ase/msa/int-dot-product/test_msa_dotp_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_s_d +#include "user/ase/msa/int-dot-product/test_msa_dpadd_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_s_h +#include "user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_s_w +#include "user/ase/msa/int-dot-product/test_msa_dpadd_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_u_d +#include "user/ase/msa/int-dot-product/test_msa_dpadd_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_u_h +#include "user/ase/msa/int-dot-product/test_msa_dpadd_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpadd_u_w +#include "user/ase/msa/int-dot-product/test_msa_dpadd_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_s_d +#include "user/ase/msa/int-dot-product/test_msa_dpsub_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_s_h +#include "user/ase/msa/int-dot-product/test_msa_dpsub_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_s_w +#include "user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_u_d +#include "user/ase/msa/int-dot-product/test_msa_dpsub_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_u_h +#include "user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_dpsub_u_w +#include "user/ase/msa/int-dot-product/test_msa_dpsub_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "dotp.s.d", test_msa_dotp_s_d }, + { "dotp.s.h", test_msa_dotp_s_h }, + { "dotp.s.w", test_msa_dotp_s_w }, + { "dotp.u.d", test_msa_dotp_u_d }, + { "dotp.u.h", test_msa_dotp_u_h }, + { "dotp.u.w", test_msa_dotp_u_w }, + { "dpadd.s.d", test_msa_dpadd_s_d }, + { "dpadd.s.h", test_msa_dpadd_s_h }, + { "dpadd.s.w", test_msa_dpadd_s_w }, + { "dpadd.u.d", test_msa_dpadd_u_d }, + { "dpadd.u.h", test_msa_dpadd_u_h }, + { "dpadd.u.w", test_msa_dpadd_u_w }, + { "dpsub.s.d", test_msa_dpsub_s_d }, + { "dpsub.s.h", test_msa_dpsub_s_h }, + { "dpsub.s.w", test_msa_dpsub_s_w }, + { "dpsub.u.d", test_msa_dpsub_u_d }, + { "dpsub.u.h", test_msa_dpsub_u_h }, + { "dpsub.u.w", test_msa_dpsub_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Dot Product", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 537de9ea4a2f..2d2dc60789b9 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -11,6 +11,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_average.c', '../mips/test_msa_int_compare.c', '../mips/test_msa_int_div_mod.c', + '../mips/test_msa_int_dot_product.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -159,22 +160,4 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-max-min/test_msa_min_s_b.c', '../mips/user/ase/msa/int-max-min/test_msa_min_u_w.c', '../mips/user/ase/msa/int-max-min/test_msa_max_u_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_s_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_u_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_s_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_h.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_s_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_u_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_d.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_w.c', - '../mips/user/ase/msa/int-dot-product/test_msa_dotp_u_w.c', ] --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383274; cv=none; d=zohomail.com; s=zohoarc; b=bXtyYUrP7gGC+AKFzOoFE+bPD2QJeYMbzWpl6D8KuPis0kReZmFTuFTnr8/GftJuRLNNQ3uIt0a7+kJUIU8H66ZcbFH35b6Up9uN2U/seHisIXc5RPi+iF6bcnDySfuYVMYnYOpZ5m73cX8LWfUGqZT/ti3/+bSeMRkWOULGHXo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383274; 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=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=Nlq+e27TX5QbpNEyH4BiXE05ri5BUiBusRa0wiyrZhIBwoD5Db4rNpZWYqlNK1ctQbrowirKLmZLSd5Sg+rDqrXeU+OJUye4vy6APPz0g0e2yf7G0u6y4xahw8Fpsj1vRJ22j8aYo2HAr8l440peS5b947hWfotnX7jnTplxKMk= 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 1793383274843568.0171026060838; Fri, 30 Oct 2026 11:01:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqtY-00035w-Om; Fri, 30 Oct 2026 14:00:08 -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 1xMqrE-0000AZ-NG for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:47 -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 1xMqrC-0008KA-JR for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:40 -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 69UHu2xT839421 for ; Fri, 30 Oct 2026 17:57:34 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 4hme754acb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:34 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-944101e6367so196324485a.1 for ; Fri, 30 Oct 2026 10:57:33 -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-48e71b725a2sm4260369f8f.13.2026.10.30.10.57.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:25 -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= Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=XW8kRxI35J+bmfMY 3iXgdkKk5lqsLmPQmrtcH/FR3rQcGk2qoI3NJ//EDkhMbwH4fuj9CLX42v8CmP5g /FyzoJnpsiauYB/llMe1YvvwcC4ENoz7faeP+uUSgKieJTQkI3CVfud88jr49I6S uhNpnmf0w8J3td8wF6sja7ObDGgaYj3RdCZQVV85WCPuuPqWpqVGJX6RP49PS/5C 4BbDAbAzMz1IEI7n5kR/EWU1G3wxY6NRf3uQ6KvQ9cirPDudSO4Awfz/8UUefL2o INyej1tHBhNvVJHLPr6xBPI4xyyrTEl7Qck2uq4ebG3eypO6t7Fmgb8Z8oePjSIh UqsfrA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383048; x=1793987848; 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=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=Ua0czcp3hBpkdKq90Q6dtnXWCiDZYeMoSu3ZVYR+AfHvAD3pPwWltUgkPnCdt7oi20 6RxVzObrZhx4gblW5vbdk/p7lXTlgtUbcl0x28xITdDOVwIECcqQrsGvt5KjPmyL/xeZ EQJT9g9Jg8vYJtrYkRpGy/YENJmz6YD0UeCs9lEWPuCJEdi7zhKFo31t5WYB/SxekeS9 FVfjNxFsxvTcr1t00hC/Cy8NVbbuYoI+s/LkWmvKDu5mpt21YpdyKsoWf1rto8kqgbyX F3Bv/pb98msh2EwvcbRISCXKo8JsVVj2rhRw10jSv+6ZkzSX3RhKQCjj6KDfWZ+RSbhw EdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383048; x=1793987848; 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=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=jivcaSUQK3wpaBGNg6bhbLX8igAKTjeNTk3IpUZzFQkKYrSAEBjJlHJsXoA5NKx6hG ORZaKQCYGxL0Kf0MpMT7L9Qi/k1uGMOEBKjgFj+qalwuepZQ17/dhmzjGrcxkCVfx+NW LSs10FYJjI4lezBK5CVYTyeDzFqk4BSZUv3DjDAGrcTp3NlTyEGV0LrnZ7ojxNubuaDo 6TSQH20bDMbxhxkUEDalxZV0UKp0zHLhGPFAeSdNNvvQIfrtbaXBYIQPfQzmkBqXE1uB 4fiZXSA+U13KZqlqXJcZSxYR/iOibtd9K3iyw09FUeMK3HGLf12uV9GSXx8k4yzyOIXb d0Fg== X-Gm-Message-State: AFq9FYLgVGITdiOyKNdEe8skZLTPfwvIObqlQErR41yvni/CuYLEBluh 6b/y/YqRn93nYOoxN1TE7n5yWj3a/KLxnUFuBh0fh1OnvqZV8KoTGix3dfy2W2Aoi9IcLfpWxL5 CBbvRSiTPGSKY5Io7FkQ+S0bR4pCGgCqWZreVIs5TmRMNWD83v0PtwGpm80eRNCfXIxSj X-Gm-Gg: AYBFou1X0CwXCU9aXNVwFxOti9gsx/CrQEGrjAounI80H226zyzzAO6/1ufzscRMn+b WlyrXWaOoo1i7O8XboKxerHjyVGv/sX0v+07V6aRBfIqYMCrBHGIUvnW/RqIO/oBKnSDrgOM4Zc vcg+id7T0X2e+a3WSf6wGUz7641ujZG6gPMZQiD2Gkms/8XQ2jt+HMwQ7k3AftkQtKJYMfM7QhQ /Dfp8YIDV/i6m7MicnGA9gvlfAexGw9y4Z3SMUDPSSc4icHCYpLgE7/ngcBblLnmQFUX+xnWeju F5/3GMnBbWd/b7Rf6J9LmMpRj+QwjwpPulmHM+5m5AwIkVj/QSq4kjldklEGTXSvynqOHKPgb+J C8B9ThYsKM0VV0vKOPsd8K7GTN7tCwlC7UomR+wFVPRX9KgOnZM6AQa7lrpPwGpCv4UYrABszkE NUCvWCfufwDAFNvzv4DwEkgDVgm9UaMw== X-Received: by 2002:a05:620a:4722:b0:93f:4a02:ed99 with SMTP id af79cd13be357-94413386199mr1027784785a.20.1793383047705; Fri, 30 Oct 2026 10:57:27 -0700 (PDT) X-Received: by 2002:a05:620a:4722:b0:93f:4a02:ed99 with SMTP id af79cd13be357-94413386199mr1027781885a.20.1793383047195; Fri, 30 Oct 2026 10:57:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 25/32] tests/tcg/mips: Group MSA int-max-min tests Date: Fri, 30 Oct 2026 18:53:47 +0100 Message-ID: <20261030175357.99684-26-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: rC3iZcqIAQc1-An3relEQD8Uenzaqfyz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX32HLHz2Y6eZO hYOOi0WsXsUbMRvAlcUXDVpAI51ltuhwnPKbSfG+cuKEzczQ/74VI+aEVqPOjTUxixN8A97wvl3 103Czk0GimJZBQAj2KGuCG4O1KZQHMdN97+GyKdyCmvXEYa9yU/O7qptbRHaOONeO1SYpEVPobO By/F3B7xd5xWriZ70xvJFsbgp7BkKNCy5n0etQjBthK3kragXkrDXQXR9vlSeRI2HJWxUGcVFgr VkRJtOFIhZ5joNFdupnahL8KTIg20eqNLOfwMk//PTTOPe+gEqPMVy9p8Q7/kNNvFh1peltB7SP CD9KpL65iC71ljR50o84vFDcW2kyu0gPuqQmpB8qqPiROBH1winJ7oUMKkwIOhL8FEhnKAFZPZz 2QziolxKHUzwSDi2HXFVi3wRcMWRHWGhbskC7q6SsbeMyTCjQCMBCYavicJ3VTK+fbL/UuE3NNy ElyVqd1aAio6uHZ2tPA== X-Proofpoint-ORIG-GUID: rC3iZcqIAQc1-An3relEQD8Uenzaqfyz X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXw/naGmCDBzzF 2vlMvABxVagtBEcRo02a2E1poAZEMdJ7RXN4IjsQqpToiLQd2KMa5eli5KFW5n6HvpDt1CC6GUm 3lWHfe2ifUKKsk26FELJmc9uaVzIdJQ= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4da8e 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=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW: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_06,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-2610300071 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: 1793383276640158500 Build the 24 per-opcode int-max-min tests as a single executable, test_msa_int_max_min.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_max_min.c | 171 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 25 +--- 2 files changed, 172 insertions(+), 24 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_max_min.c diff --git a/tests/tcg/mips/test_msa_int_max_min.c b/tests/tcg/mips/test_ms= a_int_max_min.c new file mode 100644 index 000000000000..83eac723dd78 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_max_min.c @@ -0,0 +1,171 @@ +/* + * MIPS MSA tests: Int Min / Max instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_max_a_b +#include "user/ase/msa/int-max-min/test_msa_max_a_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_a_d +#include "user/ase/msa/int-max-min/test_msa_max_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_a_h +#include "user/ase/msa/int-max-min/test_msa_max_a_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_a_w +#include "user/ase/msa/int-max-min/test_msa_max_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_s_b +#include "user/ase/msa/int-max-min/test_msa_max_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_s_d +#include "user/ase/msa/int-max-min/test_msa_max_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_s_h +#include "user/ase/msa/int-max-min/test_msa_max_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_s_w +#include "user/ase/msa/int-max-min/test_msa_max_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_u_b +#include "user/ase/msa/int-max-min/test_msa_max_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_u_d +#include "user/ase/msa/int-max-min/test_msa_max_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_u_h +#include "user/ase/msa/int-max-min/test_msa_max_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_max_u_w +#include "user/ase/msa/int-max-min/test_msa_max_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_a_b +#include "user/ase/msa/int-max-min/test_msa_min_a_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_a_d +#include "user/ase/msa/int-max-min/test_msa_min_a_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_a_h +#include "user/ase/msa/int-max-min/test_msa_min_a_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_a_w +#include "user/ase/msa/int-max-min/test_msa_min_a_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_s_b +#include "user/ase/msa/int-max-min/test_msa_min_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_s_d +#include "user/ase/msa/int-max-min/test_msa_min_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_s_h +#include "user/ase/msa/int-max-min/test_msa_min_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_s_w +#include "user/ase/msa/int-max-min/test_msa_min_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_u_b +#include "user/ase/msa/int-max-min/test_msa_min_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_u_d +#include "user/ase/msa/int-max-min/test_msa_min_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_u_h +#include "user/ase/msa/int-max-min/test_msa_min_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_min_u_w +#include "user/ase/msa/int-max-min/test_msa_min_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "max.a.b", test_msa_max_a_b }, + { "max.a.d", test_msa_max_a_d }, + { "max.a.h", test_msa_max_a_h }, + { "max.a.w", test_msa_max_a_w }, + { "max.s.b", test_msa_max_s_b }, + { "max.s.d", test_msa_max_s_d }, + { "max.s.h", test_msa_max_s_h }, + { "max.s.w", test_msa_max_s_w }, + { "max.u.b", test_msa_max_u_b }, + { "max.u.d", test_msa_max_u_d }, + { "max.u.h", test_msa_max_u_h }, + { "max.u.w", test_msa_max_u_w }, + { "min.a.b", test_msa_min_a_b }, + { "min.a.d", test_msa_min_a_d }, + { "min.a.h", test_msa_min_a_h }, + { "min.a.w", test_msa_min_a_w }, + { "min.s.b", test_msa_min_s_b }, + { "min.s.d", test_msa_min_s_d }, + { "min.s.h", test_msa_min_s_h }, + { "min.s.w", test_msa_min_s_w }, + { "min.u.b", test_msa_min_u_b }, + { "min.u.d", test_msa_min_u_d }, + { "min.u.h", test_msa_min_u_h }, + { "min.u.w", test_msa_min_u_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Max Min", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 2d2dc60789b9..c10d4e7342f4 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -12,6 +12,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_compare.c', '../mips/test_msa_int_div_mod.c', '../mips/test_msa_int_dot_product.c', + '../mips/test_msa_int_max_min.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -136,28 +137,4 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/logic/test_msa_and_v.c', '../mips/user/ase/msa/logic/test_msa_xor_v.c', '../mips/user/ase/msa/move/test_msa_move_v.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_u_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_a_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_s_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_a_w.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_s_w.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_s_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_u_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_a_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_a_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_u_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_u_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_u_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_s_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_a_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_a_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_a_w.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_s_d.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_u_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_s_w.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_a_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_s_h.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_s_b.c', - '../mips/user/ase/msa/int-max-min/test_msa_min_u_w.c', - '../mips/user/ase/msa/int-max-min/test_msa_max_u_w.c', ] --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383274; cv=none; d=zohomail.com; s=zohoarc; b=R6fZNUejpQhOFxjlmm914bi35vrI3UneU+UgmrZ41HpRk7XQVkqZRowibwrmAtpuFK0iwVq+Uw+vsNHSUXfP10vlMX0t9/CI6mSEwAe/VUEsh9JMScIed3vtYCY4b9+PPTylVpNoUU1gSYzvtgWnt3EVTAuEZYUnpEAa5zdLQ14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383274; 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=Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=XBGOBZKKnoaWfqyijgpoB+gvaKddVQOEm2DDE6nIC5BJnXTHma0YXdbcf/nalBLwt6dVM3514zubbkaua0AWZPj5zuF3IYyVaiV5KHEieU/NoezCb7zXHNMlGwV1eNCNnCrY4jG37DakUkpuJxTF4P7Jl82tHIKcvzgGTWDj3a4= 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 1793383274117696.0071426987955; Fri, 30 Oct 2026 11:01:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqtJ-0002jr-Re; Fri, 30 Oct 2026 13:59:50 -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 1xMqrH-0000CD-SG for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:47 -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 1xMqrF-0008Kp-FU for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57: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 69UHu2qr2414338 for ; Fri, 30 Oct 2026 17:57:40 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 4hme6pmbjm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:40 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93cb93c874bso401302885a.0 for ; Fri, 30 Oct 2026 10:57:39 -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-48e71a4d3cesm4789415f8f.7.2026.10.30.10.57.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:36 -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= Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=i5FFtFInIHVi8/ij PcFixFmZzaL8MpxrLfbDlVN3PaSNgkJcB92bgQC+6Ub7CYjpXRV3K3mHH91yAttY fn4ASjKQ1IEXLpmaXsYfoKwt7lxtZQG5kPVV5bCiCmmGYyKGEjqnSy7v5Qlc+w5A LF895w/Ww9p5tlvtFPNQ3TOStUQT6itGpjW8xloE+2bf/BcghxcExbBt9gRLCV1E GS9FAdP3HkSUjWZQbod23V/xRjEm4kxQn6S16npapUl2PHdWWywwU3b/iD8nXUKg FWdBDQVRgLAmjaGtzGrHPn2MAgKTwW57ogldHNPcbABdpfCBtin+frZxCB8e0Vc4 xNIBXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383058; x=1793987858; 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=Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=e8+UKFLjERgRyDb2bFN488dN3SYlqYTXj5196qsehAxijRdFM6X2o+R2ezu7nmAyzO w5BTw6eLf06ydbbXAzDtM8/FKfWAbKlR2qbJ+1oY6QMM0m04VfO4StH316SngAJtiltn qZA+QqvHm76Ya6eJ4O2R8mu1ZQGp5/9Mgeh5dUCTXCbX9x3DlAG21f9vj6xjJRmUncY2 VBG/KdfJv3zLdz5rQIKzGkN5ozMYt7v7FMTqh8Cj4Pucy8Wy+pU9B5KWCNjlaWpUB2R9 QjYRskxKpSjUcjHM05cKTQ0tqd+Hd9JrSHo1kWS2KnbWVdVgXfsM1mQPQK3nglgPvheJ NJqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383058; x=1793987858; 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=Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=xGzwZDbtfKVR+BjDipiYqBc2sgOOvkkAAiNH6dLLRHDMheF3adeCyynjwzQlOvB/iJ B1EpaDUhfvMLQnlqUycSxOSTG2u0bknwyJ6dtTTv/bWA7iAhqgzfmF83Xd5Sj+MSoPAH 4LAFgUm+pcQ55160vAtoC21PDAn1yyYqOy08wAMsqN4dAwYtHcosrG9DBp5WtR7aMMbc QCR7nwgFugLJOyoTIJCwrxKt94FuYhTMSlm0C4ZdaXITZLw4Xjrb/CJqxJpvyYC7UOiW Zgb9ayPdvaxENO1TGRR77sKVdfZ2c+PB/lCATpdHpq1s9VG37eWIyiXEYt00jiidKgrk B4Rg== X-Gm-Message-State: AFq9FYJI7/Q+YxgGWL3E06Ke6FRPZJ6ul0w8vbOUb4VGwp6wKY4pKe3D t6ZTIhtUgdfrwmKCUK9ASJNZ8XhQOEP/RThNp6PFtre+J6R1PAW1DK4R2jOnS9fIwvtJylE7Naw E69YwzHLw8UnCPK59CYP2bWnbaIZKtpPQ6icnPzEuzz40fR41P3KEaK6Eovv4da4uDp6S X-Gm-Gg: AYBFou00ATWe2OUOxOWPpl7UWFhCLNuxF8yXobaVKH2JxhAOmWgO0fW2WomEbl1HSmY RblXruOJeaRWxErfdJsl7Y2xY+lkPdyQc/7eRPiM3rxUulYcnngO/CfUcpL2Z8vL22qRwJzK6w4 KTqWQU+WjwSwEexUc7YpCpd7/GpbM6uJKzh+EI3/02TnlMkjS/rzndZrP0mWJTXKtmP7AvLTK0B xysn9E774atLdxSGkGssac87jfmXGPl7HQJb6MCDxIVHrdwaTSeJ++PMJL2oHZtt/wZGrUs7saA 6AY7QfTPRXcq/1UEWbNoR3wyW49FiPyigSeUUi8/vEtmnJuhUb/DfBS3Jf11RtB1OeND5gIDfhG ERREGmPsB4CAf8nin4+9ys63+PSNe50qsskp+RWlgegbef0OPVN3xJSLVk8jSrhO6umYzAQJyGf 8NvLfsE1Tk1v0RSO9AirorGfbYeiJPjQ== X-Received: by 2002:a05:620a:1a19:b0:93e:e111:2778 with SMTP id af79cd13be357-944133591eemr1007271585a.14.1793383057994; Fri, 30 Oct 2026 10:57:37 -0700 (PDT) X-Received: by 2002:a05:620a:1a19:b0:93e:e111:2778 with SMTP id af79cd13be357-944133591eemr1007266985a.14.1793383057343; Fri, 30 Oct 2026 10:57:37 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 26/32] tests/tcg/mips: Group MSA int-multiply tests Date: Fri, 30 Oct 2026 18:53:48 +0100 Message-ID: <20261030175357.99684-27-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX0iaDeDoCfx55 K59ufYoIrFw5XYaHsUyUIM1KqL+E3ViOZ+Z5+6S9iDTS559XP9ViZ+PMK0v1Nt10AF5Ds6xE12W aknK7AsLiEFuY5bxP5ROLCovWcMnTKUSvhhi3cYXXmWLB2ojOJ1Kkm+o3Jhyw+my9fPmXCPqWHS L2cb8NBwmkwcHLrUikxoWGPHrJST+UY8zQu7Def5UE71R0MLtaJ0wABoYcBwpd+cvJZs7gj6kol aXolhQtN0Q/s+x9Ut2Xsqio0fsIJ7GpexqC1oIVnT0d361rr+SYx3cISRc4oUA2HfrABfZE6Uwd 51NJeuQQxp8RSq4ydghckPXAZWpx5cep61AhtxlinatbuRjSrSkv3AdmD0hwe3K/CUvB1/mrrxp wEBpbsTAW0K3qRQDpoI/LhFtg6kcAQVSq7YnQtAx0Cv4FyME9j4enIV0jwhiIoAoyNPffXINrtN PwEj+0VcZ4+0bRpdVvw== X-Proofpoint-ORIG-GUID: MBNTe1ZgfmKDGOXeD_-R0gy7GkMQxqy3 X-Proofpoint-GUID: MBNTe1ZgfmKDGOXeD_-R0gy7GkMQxqy3 X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4da94 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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX+tyYaKBJUBSn Q4Ea4P5RO6v0xbMdBPyWZpP2dumFVkWyWlfpRnEKs4P6yQ1LP7zbUK0IsbLvJ9xGSYbuL3d58Vj FCuIGD9CAy6MfkF5WTEb4cux+C8uazA= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383275730154100 Build the 12 per-opcode int-multiply tests as a single executable, test_msa_int_multiply.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_multiply.c | 99 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 13 +--- 2 files changed, 100 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_multiply.c diff --git a/tests/tcg/mips/test_msa_int_multiply.c b/tests/tcg/mips/test_m= sa_int_multiply.c new file mode 100644 index 000000000000..ce8ddafe8776 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_multiply.c @@ -0,0 +1,99 @@ +/* + * MIPS MSA tests: Int Multiply instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_maddv_b +#include "user/ase/msa/int-multiply/test_msa_maddv_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_maddv_d +#include "user/ase/msa/int-multiply/test_msa_maddv_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_maddv_h +#include "user/ase/msa/int-multiply/test_msa_maddv_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_maddv_w +#include "user/ase/msa/int-multiply/test_msa_maddv_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubv_b +#include "user/ase/msa/int-multiply/test_msa_msubv_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubv_d +#include "user/ase/msa/int-multiply/test_msa_msubv_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubv_h +#include "user/ase/msa/int-multiply/test_msa_msubv_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_msubv_w +#include "user/ase/msa/int-multiply/test_msa_msubv_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulv_b +#include "user/ase/msa/int-multiply/test_msa_mulv_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulv_d +#include "user/ase/msa/int-multiply/test_msa_mulv_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulv_h +#include "user/ase/msa/int-multiply/test_msa_mulv_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_mulv_w +#include "user/ase/msa/int-multiply/test_msa_mulv_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "maddv.b", test_msa_maddv_b }, + { "maddv.d", test_msa_maddv_d }, + { "maddv.h", test_msa_maddv_h }, + { "maddv.w", test_msa_maddv_w }, + { "msubv.b", test_msa_msubv_b }, + { "msubv.d", test_msa_msubv_d }, + { "msubv.h", test_msa_msubv_h }, + { "msubv.w", test_msa_msubv_w }, + { "mulv.b", test_msa_mulv_b }, + { "mulv.d", test_msa_mulv_d }, + { "mulv.h", test_msa_mulv_h }, + { "mulv.w", test_msa_mulv_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Multiply", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index c10d4e7342f4..0f4d55a2f26b 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -13,6 +13,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_div_mod.c', '../mips/test_msa_int_dot_product.c', '../mips/test_msa_int_max_min.c', + '../mips/test_msa_int_multiply.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -72,18 +73,6 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/int-subtract/test_msa_asub_u_h.c', '../mips/user/ase/msa/int-subtract/test_msa_asub_s_b.c', '../mips/user/ase/msa/int-subtract/test_msa_subs_s_w.c', - '../mips/user/ase/msa/int-multiply/test_msa_mulv_w.c', - '../mips/user/ase/msa/int-multiply/test_msa_msubv_d.c', - '../mips/user/ase/msa/int-multiply/test_msa_msubv_h.c', - '../mips/user/ase/msa/int-multiply/test_msa_maddv_w.c', - '../mips/user/ase/msa/int-multiply/test_msa_msubv_b.c', - '../mips/user/ase/msa/int-multiply/test_msa_mulv_b.c', - '../mips/user/ase/msa/int-multiply/test_msa_maddv_d.c', - '../mips/user/ase/msa/int-multiply/test_msa_msubv_w.c', - '../mips/user/ase/msa/int-multiply/test_msa_maddv_b.c', - '../mips/user/ase/msa/int-multiply/test_msa_mulv_h.c', - '../mips/user/ase/msa/int-multiply/test_msa_mulv_d.c', - '../mips/user/ase/msa/int-multiply/test_msa_maddv_h.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_b.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_d.c', '../mips/user/ase/msa/interleave/test_msa_ilvod_b.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383274; cv=none; d=zohomail.com; s=zohoarc; b=JiXOYA9YqniuJZFMEWYuENemxIXJSZ2DLi419LaEzDw6eGZ6av3O9JPcKo6MvyOD2Ie/j55Sruv2+IiEayPD5I1crYKPM+SN70/n2dHlPJVHOb8dybOlEE8XY4nrPJQvChQng5ZsQpVOuvTvG2hA/pDWzXFDqrQWkEvSucVuY/I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383274; 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=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=lepxjayU8dSowWx5bwNQ0N170uw30BC+9EtQ69mSV9gVdLVEk5hKM8WSKsbSES5TihZ+/unRLhtfwQPuATCu1MWQAhhXQnbVrypBKZSSpA2nxFa9+aLOZikjqUkIbZtlgDf5ubAuwzTIMkWsL2uMLuSkNJd4Jm/kBgSFEsJN2ro= 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 1793383274676555.949391297421; Fri, 30 Oct 2026 11:01:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqte-00039D-JI; Fri, 30 Oct 2026 14:00: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 1xMqrP-0000FJ-VN for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:55 -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 1xMqrM-0008LP-GB for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:50 -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 69UHu4SW839527 for ; Fri, 30 Oct 2026 17:57:47 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 4hme754ad8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:46 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93909014c85so204534285a.0 for ; Fri, 30 Oct 2026 10:57:46 -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-4abebe33e79sm56214865e9.2.2026.10.30.10.57.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:43 -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= +nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=Q3pmzxuTkgm7g6Nb AB4pLLGqwxU7eVfxmYD9A22hpLekenJsOQjbZR8Y4F3qk/rYn4cHI1MIOwZmtoid hLJnQWRhXa9x3tCg4W2uzl4wCcGyJAvf0g4fv7m6aEg0HY2RFsJ8FLOrGDbpib/c CJ+6RXdmPDrimLTrxqowAegmfpKxcv4fC6zqHl3tXxWZAOVgovLuGi/o+4MOwMeT dcWrctemdMnNmG4xO2vJnz80fGNcaeFAl/FrKwnNW4RVSVG7bZBskK3oewWv2v8O BUrhha10oFOByKFxm7EFA0iDZawhkKSGrvniJVSbqBa9mtTcb0CJK3x3GovWr/p6 ORNtVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383066; x=1793987866; 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=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=hB5ZWT6DVkYBDhGTG+3Xw53NdCe7PpcMMSTv52NO1FoQA7gV3yNjtJocHVQTN0coGg Zbd/Skde12ojW0D2f4XY+7FiYn/E0qJiSWf/9C4mevrjF8t65R1u/w25ObogyHD2pI32 xo9iwwWgfL4A/uxqopxQqtvVz4Xwg76AWQ3ep/UGc/WrjBY7iTMoBECilXTzEHqlkYZc iFH9ildQW/HGZCMyc/usf+4Xy6zTVsu/pulLtDC3L+KaIpbADatn0gM1kQ/xWSTFTCVm c+43b/5J6o++O1pRPWa/z9aTldvnkApFnmPWCDstYEvcwDC9ZBcn8f0I30KCQk0xOe5I JcUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383066; x=1793987866; 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=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=eadouvWTBJqTRw9m78RNfi5wRYcRTNSQ26BShoNViR+YZD+nITOvpmWmxJWYZpl/WI 1dtRe2/SLpoZ3xQvctRkZ9jTlpeQXlz4I2eSlZfuQMxz7kyfPrVd1IW3J5eARhRuleYE YBHDLWaHcMBxAWD87U1drwjWMV2tYfUbdfPnD6TStLSqAghGzd7pbPaqMdF5y/PFnCJO 493xmN1HZAd+ppe0Ah8S+9PC+T2mA/BztG02eIX+FRXpiou80XePP6Lf9DVoxPYopRXU lIaWrYJOp15cptbMX0NfJCEnOgyLk6oiyTUVxjeIzC9Z6hHKKIHkFuuh7seLUl3M6/Fw 5Lkg== X-Gm-Message-State: AFq9FYKd9pio4QdAbr9MfvyZ2Mh8n/Vk8kL1Mn1DKMe2SYaQ/LfrqMNl 0IcmpEAIOd9ljK+kjef0lAtoATa+GhRyiFgHZW1fwtYyjcu3J3Svz59g4h8FzzKwE8N3dDIse4g +dyAA145nU1C3EqrE3bflttmc1+1Ya4qnrdN1PGIURM5z+eN+pignmRTpgzUjlCMsr0mI X-Gm-Gg: AYBFou0j4Nlh8dfkm4nCGX/KZPOioKfyiUwWBawALKPxhQITrlrK/aC2jjuuESW7sBb 0rtVq0deLZzMYudE1bDQuGUOmeEG4uUE7NYn+sHzp9/nMLxlYUXWYKOoauOM5tXSA9IWQHHjbHB jsBh1XSQskcAh+xJJMrR50DOf8dN/iDCYYDDT68qqHZipRoUvRTE3FEm5M99+8WN5u34ygQ6GzJ 5KQ1A38wpDxeqj5mhCha0vwxyb2Pu7KOsVlsiYIOrSNCMbJ3celMpTngc3BlOpFDhHwnewqLnQN gLaqUwJn7pOUqK+oQolhCXN/26Yr8KNJzhmoldBJ+4YiJjTYwRZ4XHOkoR56LFoxqIXu0f8ni8a o82Jj95PiG2VAnCTRL3H1TlGnoX3wutVvH7Nybh670ZHro1/jUgXeorVhAMcuSw8bOzDjWyPk5L Is0Trnfb4vA37X7+XRfCVAA65DsDJcIQ== X-Received: by 2002:a05:620a:600e:b0:93e:c12c:f11e with SMTP id af79cd13be357-9442184f3demr511409685a.74.1793383065593; Fri, 30 Oct 2026 10:57:45 -0700 (PDT) X-Received: by 2002:a05:620a:600e:b0:93e:c12c:f11e with SMTP id af79cd13be357-9442184f3demr511406485a.74.1793383065151; Fri, 30 Oct 2026 10:57:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 27/32] tests/tcg/mips: Group MSA int-subtract tests Date: Fri, 30 Oct 2026 18:53:49 +0100 Message-ID: <20261030175357.99684-28-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: jd8ZJ6DVSGOHp0oOOX5XlKjKtWGufB3A X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX/qmuNI62MDH1 Ih08kNGBMY18c09ZPyPE48GzrdAvacUDF871LVQDg57u5KjnK0xoARsQLKl+sNlWXgdSuXOYAIR hoBOzJtHyo68juWQkIYX8vXqRwCH3aY/oFClEM25ACygJHY11gLNStN0ujpUvlDDYHNeoGGJEmc xPiC+WfY36hfHMFE2OFyHmHnlBCfjJAtE8uCNbDwFzd4tVQyANqFRr/KOQoh2NPkCaXqzztM1fj O3ES3HeCnL6GbObaRhVKrQ0eRavDKTNlzQLSgjz7I8JDyLhmVsGhlrjdTfRSXiGry3OiHD4ik1N z5Nojj0zMUcdDqJz+anl8NrUbm4uWDCfR5Yvw3gbh9Gs0s5Xz46RK6F6bmq2zhKlfZyRAnQaUCC M2dn0JaJ27sN7AxXqrDbzBlHr7u3dOvybaZBsytMUnDM+3AV4UlCp4Bvl2CkMfhTYpkyHRMkmRe cEi4R7nkbPEvAYVFtQg== X-Proofpoint-ORIG-GUID: jd8ZJ6DVSGOHp0oOOX5XlKjKtWGufB3A X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2cVDYKz6tvHY TO4Y0Hn5Q1VXPffCwvZizXsU3PIeBrTLeJmf0/OhXzW1aAxdI+vxM1kDYrhDZ5t0WxaIMxrFpaL qutaSOm7YNlnESOmwORS9nJKdlf0AJk= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4da9a 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=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=TrVlaqBlz6Hw94NMQc4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O: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_06,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-2610300071 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: 1793383276641158501 Build the 34 per-opcode int-subtract tests as a single executable, test_msa_int_subtract.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_int_subtract.c | 231 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 35 +--- 2 files changed, 232 insertions(+), 34 deletions(-) create mode 100644 tests/tcg/mips/test_msa_int_subtract.c diff --git a/tests/tcg/mips/test_msa_int_subtract.c b/tests/tcg/mips/test_m= sa_int_subtract.c new file mode 100644 index 000000000000..84efc16ac463 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_subtract.c @@ -0,0 +1,231 @@ +/* + * MIPS MSA tests: Int Subtract instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_asub_s_b +#include "user/ase/msa/int-subtract/test_msa_asub_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_s_d +#include "user/ase/msa/int-subtract/test_msa_asub_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_s_h +#include "user/ase/msa/int-subtract/test_msa_asub_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_s_w +#include "user/ase/msa/int-subtract/test_msa_asub_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_u_b +#include "user/ase/msa/int-subtract/test_msa_asub_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_u_d +#include "user/ase/msa/int-subtract/test_msa_asub_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_u_h +#include "user/ase/msa/int-subtract/test_msa_asub_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_asub_u_w +#include "user/ase/msa/int-subtract/test_msa_asub_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_s_d +#include "user/ase/msa/int-subtract/test_msa_hsub_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_s_h +#include "user/ase/msa/int-subtract/test_msa_hsub_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_s_w +#include "user/ase/msa/int-subtract/test_msa_hsub_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_u_d +#include "user/ase/msa/int-subtract/test_msa_hsub_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_u_h +#include "user/ase/msa/int-subtract/test_msa_hsub_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_hsub_u_w +#include "user/ase/msa/int-subtract/test_msa_hsub_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_s_b +#include "user/ase/msa/int-subtract/test_msa_subs_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_s_d +#include "user/ase/msa/int-subtract/test_msa_subs_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_s_h +#include "user/ase/msa/int-subtract/test_msa_subs_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_s_w +#include "user/ase/msa/int-subtract/test_msa_subs_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_u_b +#include "user/ase/msa/int-subtract/test_msa_subs_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_u_d +#include "user/ase/msa/int-subtract/test_msa_subs_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_u_h +#include "user/ase/msa/int-subtract/test_msa_subs_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subs_u_w +#include "user/ase/msa/int-subtract/test_msa_subs_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsus_u_b +#include "user/ase/msa/int-subtract/test_msa_subsus_u_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsus_u_d +#include "user/ase/msa/int-subtract/test_msa_subsus_u_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsus_u_h +#include "user/ase/msa/int-subtract/test_msa_subsus_u_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsus_u_w +#include "user/ase/msa/int-subtract/test_msa_subsus_u_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsuu_s_b +#include "user/ase/msa/int-subtract/test_msa_subsuu_s_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsuu_s_d +#include "user/ase/msa/int-subtract/test_msa_subsuu_s_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsuu_s_h +#include "user/ase/msa/int-subtract/test_msa_subsuu_s_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subsuu_s_w +#include "user/ase/msa/int-subtract/test_msa_subsuu_s_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subv_b +#include "user/ase/msa/int-subtract/test_msa_subv_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subv_d +#include "user/ase/msa/int-subtract/test_msa_subv_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subv_h +#include "user/ase/msa/int-subtract/test_msa_subv_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_subv_w +#include "user/ase/msa/int-subtract/test_msa_subv_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "asub.s.b", test_msa_asub_s_b }, + { "asub.s.d", test_msa_asub_s_d }, + { "asub.s.h", test_msa_asub_s_h }, + { "asub.s.w", test_msa_asub_s_w }, + { "asub.u.b", test_msa_asub_u_b }, + { "asub.u.d", test_msa_asub_u_d }, + { "asub.u.h", test_msa_asub_u_h }, + { "asub.u.w", test_msa_asub_u_w }, + { "hsub.s.d", test_msa_hsub_s_d }, + { "hsub.s.h", test_msa_hsub_s_h }, + { "hsub.s.w", test_msa_hsub_s_w }, + { "hsub.u.d", test_msa_hsub_u_d }, + { "hsub.u.h", test_msa_hsub_u_h }, + { "hsub.u.w", test_msa_hsub_u_w }, + { "subs.s.b", test_msa_subs_s_b }, + { "subs.s.d", test_msa_subs_s_d }, + { "subs.s.h", test_msa_subs_s_h }, + { "subs.s.w", test_msa_subs_s_w }, + { "subs.u.b", test_msa_subs_u_b }, + { "subs.u.d", test_msa_subs_u_d }, + { "subs.u.h", test_msa_subs_u_h }, + { "subs.u.w", test_msa_subs_u_w }, + { "subsus.u.b", test_msa_subsus_u_b }, + { "subsus.u.d", test_msa_subsus_u_d }, + { "subsus.u.h", test_msa_subsus_u_h }, + { "subsus.u.w", test_msa_subsus_u_w }, + { "subsuu.s.b", test_msa_subsuu_s_b }, + { "subsuu.s.d", test_msa_subsuu_s_d }, + { "subsuu.s.h", test_msa_subsuu_s_h }, + { "subsuu.s.w", test_msa_subsuu_s_w }, + { "subv.b", test_msa_subv_b }, + { "subv.d", test_msa_subv_d }, + { "subv.h", test_msa_subv_h }, + { "subv.w", test_msa_subv_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Int Subtract", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 0f4d55a2f26b..516da867cadf 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -14,6 +14,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_dot_product.c', '../mips/test_msa_int_max_min.c', '../mips/test_msa_int_multiply.c', + '../mips/test_msa_int_subtract.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -39,40 +40,6 @@ if 'qemu-mips' in emulators endif =20 tests_mips_msa =3D [ - '../mips/user/ase/msa/int-subtract/test_msa_asub_s_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_u_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_s_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_u_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_u_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_u_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsuu_s_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_s_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsus_u_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsus_u_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_s_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_u_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_s_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_s_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subv_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_s_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_u_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subv_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsuu_s_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subv_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_s_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subv_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsuu_s_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_u_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_u_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_s_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_u_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_hsub_u_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsus_u_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsuu_s_w.c', - '../mips/user/ase/msa/int-subtract/test_msa_subsus_u_d.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_u_h.c', - '../mips/user/ase/msa/int-subtract/test_msa_asub_s_b.c', - '../mips/user/ase/msa/int-subtract/test_msa_subs_s_w.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_b.c', '../mips/user/ase/msa/interleave/test_msa_ilvr_d.c', '../mips/user/ase/msa/interleave/test_msa_ilvod_b.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383309; cv=none; d=zohomail.com; s=zohoarc; b=L8fpVJpt5JC/2S4+gM3usn0CVXcZg+jMcFbHScGHa5ZbJCB4GF9/L9woJ1BXOUlNtb0c3wn9+9tQw9QDCeOZLMVN5MKai78Zob7eqW2kAIBxihc2qwhe4R6PFHCOxtFrAAH4B9Gym93BcqB0jG38wY2d/17IJ0zgd518lNkGyW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383309; 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=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=RCv3Bct/Yn44Ua+LV07wF4+CICrneuB+I8nlYGH/2100lEVtKB4f9ROjLv9utSzo3iJXYVTxJb3QVSQO05WXxf1W7ioS9o+UvViGwku+cXA+/wIPnouTIZbigMHuPr6afF/iuA/WpSlTOddf6CJBl9ghyHbb/xHeAGLEht+/l+E= 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 1793383309324535.5045878543015; Fri, 30 Oct 2026 11:01:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqtL-0002oe-UJ; Fri, 30 Oct 2026 13:59: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 1xMqrX-0000Nj-2M for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:03 -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 1xMqrV-0008Ls-6a for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:57:58 -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 69UHuKZi3057335 for ; Fri, 30 Oct 2026 17:57:54 GMT Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pcbkw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:57:53 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-7c124d17880so181168137.1 for ; Fri, 30 Oct 2026 10:57:53 -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-48e71b727c6sm4593482f8f.16.2026.10.30.10.57.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:51 -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= 9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=BJQOScWFOuMbF+ys 2R4Rs4I5IlPTACB/68FLi6jP5XnxuwdQ0GhSRPj8AmdjsODIIdzorDiYdB7U+ljZ 3X6wZrlvAd7aOam6qL/1h9BqJdAMgpALTGBwK8Ldy4aKt9VLfjaIjPfRaaKLv8us MS4Ks+Xi0iy0ttGRV/jTOsi97rlVrw1HDW6V701ICl4cbbOTK3I87EumjvsoGVgq t2RBVk2YHDecYaBYGknKCFMt6vCwt3wybArTC7Cw1HxWVGMFvCODUcp3lTIn0cKx z87UFYAgproQC0XMoDwsJNqrtVepGibKDWLQPuQ9W+ru0Mh4RK8vAoKFMSdIH+Tn EQyA8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383073; x=1793987873; 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=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=XvtCVadUtNwp5Q0yQq4KHVebF0MnJKbjj/3fotAGuGF2wwBqGDU39NqQonYHQpswXl NxIfxGrSFFbKq1twbM1RGm2N5t6Al80CF7epVs6VcA+jBHqCciDm7inDplOM+ulbUJdE NlbNyhi+5pBMJ78UAvCDgYJyyl9VtjLlzDgLdqJuUUlzo06F8MHOZdlEs9foAc9+zfe3 AmToYkEUhPPlQBLaJqi6Mv+m3hDQg0/tufPLIQ3hlbJxA37K83A7QRbkNBrY71SDdViI 7zNjLGpJlap1/qavrye0IsQ/BjfB3TR9Vr+/h9Wj/s8pHen5AbJjuDPLKRt7rXID5PPD ptZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383073; x=1793987873; 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=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=tKi278RgPThgZVYUGqjhk7XTvbuwIQCEQiopoFFe3T20u9fsPNLByAde9NFN+L8HqV vonoBDyx5o52za6kHDej854fEplDYKLNOflDJw7UoHb3t21GD0ocyw4sTthBhE7JeHFq 1YCXkL0W2vJpqWXIUGJA+G6+7NRtYtySbcsgpqzvDruXzAS8JVIJxnCtcRGaZy/muMwR eA5uKo9yOWPdZiyAmIcTVroJ/n+y+ZXfPM6a/NgCO2SjvsrJE02KmaD5pE10/4GzhScb 8sA3Idgd6F3bIhf7YRdFaNvL1xOELlfeYnAxmoRPCMuJ+uRfns9KIayW9zV/+u1zGJuR /kDQ== X-Gm-Message-State: AFq9FYK06YD95saivVEjbn/spHqm9SVz959ggovijb1vPoDahk9mWS0Z d6rkqCSNW1/e/9CZOmihjyYypXcEIhrwcU7qbo87E8lAMjRIjI5F10ZjXrKxUsnyZgX05htdfeD 82OcCbYnrf5t7JI9ZIKvKCyr7Lz1tqYExnROaAvaxnpn57xHcF7r1WJstMKmfTcxqRQFu X-Gm-Gg: AYBFou1NzXXdOqF9UIpzA4yQ+KSmcVqlIj40zU2XmXSJx60s0JUY2qZGNLbgACCf7qy FOsxCvXSYyBf9tN3DQq25ldjvAcwwP6sQ7uQNw3qkXQc+zOqqhQARFnPuHLIHhqdSn1g6fLlylq TTVV7u3uIHRqOnlAhR2h4Uvd/cf6SRWwFZgx7Ji93Qdrs2YoRTjiMGm0uq7/ZURlXs62ywtoLPU rurfhL39czAUTzC8U21t/7dnM5uAWCB0vSrZiT7aFH+ejjnLmsWjiJeb1xz5/+Gp0HuFaiENh6t w07gzGYf00Qd0MHml2hHHi6/e1aB6bFC1X/xYLOBV4wSb8adLrNJAmiaZNYNyc5lWuk5eN9ot+A Ix0AelYsjLOYLj0PEQ+4/TqwQMeD/iedErL/xXe/yzrxXW33gJLGWaQfpcQcxOyZxGaapu4U62t kqT33x8WTROUfSUdSvwfufm4Uq9rZB+w== X-Received: by 2002:a05:6102:84d3:b0:7cc:25bc:3b26 with SMTP id ada2fe7eead31-7d072bb31e8mr1050878137.9.1793383072767; Fri, 30 Oct 2026 10:57:52 -0700 (PDT) X-Received: by 2002:a05:6102:84d3:b0:7cc:25bc:3b26 with SMTP id ada2fe7eead31-7d072bb31e8mr1050866137.9.1793383072284; Fri, 30 Oct 2026 10:57:52 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 28/32] tests/tcg/mips: Group MSA interleave tests Date: Fri, 30 Oct 2026 18:53:50 +0100 Message-ID: <20261030175357.99684-29-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6/1TsFRTdlDU lrHQOfWhzh2hCtw4KB8Voz0srsV8puMeyaVCE0VUMcbH13c5iroufTCvc6TdPEHOeHugRmjxWVn njggdv9Qfm2xIcrWJkrqe9C0BpylhIJAJsdrZduS3tl3wSGghb2eDLJnN86Nmxg5PJIfpoZkQbR L6CDF0X8mnDAqROgUvSR159dDmLg5TUZMCK4rRc6a/XdipwTMFpz3xql1kgyoURnUltv0jqnsTl 5Wp3h8Rrfglc2qfJCR2CW7RsKdYcP8ubo95LIX9PMCpshoCfh+HJJiu/GHwjL9yGUgtvBJuOU7Q vD3JGLp5vIV1Mb8KUXDSZGPRiBakXLabxCArZsRrncTsGGIdlPRuF0FFsmuNkXNyC6a3UtM6D89 8GM7yHNNRCk1FWUxpp80/1emeZ9o0jYHWgIB03pgLVZ5DgRpm+BHsrUEG/mJEZCJsLL9PcfYRJw 8e68a6+fZ4WS8Sq3bvA== X-Proofpoint-GUID: eB_0xMrbKpcmjBvxHDgh6iuRWhVJO2M8 X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4daa1 cx=c_pps a=P2rfLEam3zuxRRdjJWA2cw==: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=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 X-Proofpoint-ORIG-GUID: eB_0xMrbKpcmjBvxHDgh6iuRWhVJO2M8 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX8Vqmo/I1kTB0 AxEVOZE2ndJVLuUQswfcDYbH1fPaQXHd9dRlRBVkYb9/5zbY7KEqrfn+FKKnTt1efnTy7rSstjp iCICYXsYlJwKV8ypbjdTUzoLO22UdWI= 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_06,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-2610300071 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: 1793383310268154100 Build the 16 per-opcode interleave tests as a single executable, test_msa_interleave.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_interleave.c | 123 +++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 17 +--- 2 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 tests/tcg/mips/test_msa_interleave.c diff --git a/tests/tcg/mips/test_msa_interleave.c b/tests/tcg/mips/test_msa= _interleave.c new file mode 100644 index 000000000000..f561ebe25aa4 --- /dev/null +++ b/tests/tcg/mips/test_msa_interleave.c @@ -0,0 +1,123 @@ +/* + * MIPS MSA tests: Interleave instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_ilvev_b +#include "user/ase/msa/interleave/test_msa_ilvev_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvev_d +#include "user/ase/msa/interleave/test_msa_ilvev_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvev_h +#include "user/ase/msa/interleave/test_msa_ilvev_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvev_w +#include "user/ase/msa/interleave/test_msa_ilvev_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvl_b +#include "user/ase/msa/interleave/test_msa_ilvl_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvl_d +#include "user/ase/msa/interleave/test_msa_ilvl_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvl_h +#include "user/ase/msa/interleave/test_msa_ilvl_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvl_w +#include "user/ase/msa/interleave/test_msa_ilvl_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvod_b +#include "user/ase/msa/interleave/test_msa_ilvod_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvod_d +#include "user/ase/msa/interleave/test_msa_ilvod_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvod_h +#include "user/ase/msa/interleave/test_msa_ilvod_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvod_w +#include "user/ase/msa/interleave/test_msa_ilvod_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvr_b +#include "user/ase/msa/interleave/test_msa_ilvr_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvr_d +#include "user/ase/msa/interleave/test_msa_ilvr_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvr_h +#include "user/ase/msa/interleave/test_msa_ilvr_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_ilvr_w +#include "user/ase/msa/interleave/test_msa_ilvr_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "ilvev.b", test_msa_ilvev_b }, + { "ilvev.d", test_msa_ilvev_d }, + { "ilvev.h", test_msa_ilvev_h }, + { "ilvev.w", test_msa_ilvev_w }, + { "ilvl.b", test_msa_ilvl_b }, + { "ilvl.d", test_msa_ilvl_d }, + { "ilvl.h", test_msa_ilvl_h }, + { "ilvl.w", test_msa_ilvl_w }, + { "ilvod.b", test_msa_ilvod_b }, + { "ilvod.d", test_msa_ilvod_d }, + { "ilvod.h", test_msa_ilvod_h }, + { "ilvod.w", test_msa_ilvod_w }, + { "ilvr.b", test_msa_ilvr_b }, + { "ilvr.d", test_msa_ilvr_d }, + { "ilvr.h", test_msa_ilvr_h }, + { "ilvr.w", test_msa_ilvr_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Interleave", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 516da867cadf..cc94623f8f20 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -15,6 +15,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_max_min.c', '../mips/test_msa_int_multiply.c', '../mips/test_msa_int_subtract.c', + '../mips/test_msa_interleave.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -40,22 +41,6 @@ if 'qemu-mips' in emulators endif =20 tests_mips_msa =3D [ - '../mips/user/ase/msa/interleave/test_msa_ilvr_b.c', - '../mips/user/ase/msa/interleave/test_msa_ilvr_d.c', - '../mips/user/ase/msa/interleave/test_msa_ilvod_b.c', - '../mips/user/ase/msa/interleave/test_msa_ilvl_b.c', - '../mips/user/ase/msa/interleave/test_msa_ilvev_w.c', - '../mips/user/ase/msa/interleave/test_msa_ilvr_w.c', - '../mips/user/ase/msa/interleave/test_msa_ilvr_h.c', - '../mips/user/ase/msa/interleave/test_msa_ilvev_h.c', - '../mips/user/ase/msa/interleave/test_msa_ilvev_b.c', - '../mips/user/ase/msa/interleave/test_msa_ilvod_w.c', - '../mips/user/ase/msa/interleave/test_msa_ilvev_d.c', - '../mips/user/ase/msa/interleave/test_msa_ilvl_d.c', - '../mips/user/ase/msa/interleave/test_msa_ilvod_d.c', - '../mips/user/ase/msa/interleave/test_msa_ilvl_h.c', - '../mips/user/ase/msa/interleave/test_msa_ilvl_w.c', - '../mips/user/ase/msa/interleave/test_msa_ilvod_h.c', '../mips/user/ase/msa/pack/test_msa_vshf_b.c', '../mips/user/ase/msa/pack/test_msa_pckev_b.c', '../mips/user/ase/msa/pack/test_msa_vshf_w.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383195; cv=none; d=zohomail.com; s=zohoarc; b=hYJZ6U0bqUJ5q6pOFKeCKJTZsW+7rKyQPIhLuOAd7bku9ixX3rcXZYEedKJ3InArGnTPkXN+rynHOUcQ5ArdGcZVAaf94f0HU12K3/2Re3+F95JiLH88fM1DODGoiAIiat9yX60sXG39fiRtOFTyYDCp9hMhQOFY+LV11vcp5AM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383195; 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=VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=XVrxHD3SGQMaW648Ktrc9nr7wRCb0b+mYtT2bMDuJLTQgcmezUN0j3HMSqDXD/m+wqsA173AmkKIpMKIvMvwPTLLqwRRtPItrC+Hk89a7WitOrQ3PLVOELL9jmra5MJ4fH3QD/zpKEyUbTB13ZJFwN1/n1A1SHSqf5IDb8Z8JCU= 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 179338319571290.8061977007626; Fri, 30 Oct 2026 10:59:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMqsa-0001pn-Iv; Fri, 30 Oct 2026 13:59:08 -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 1xMqrd-0000Th-Dh for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:09 -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 1xMqra-0008MI-PD for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:04 -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 69UHu33R3977499 for ; Fri, 30 Oct 2026 17:58:01 GMT Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qmd7a-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:58:00 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-98a829c43f3so258870241.1 for ; Fri, 30 Oct 2026 10:58:00 -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-48e71b8c0b6sm4139333f8f.41.2026.10.30.10.57.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:57:58 -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= VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=Pps8XEqnjahPkGNO CkxEzM5ZASrcj+GZkTrcTUKqL3TyhcIqBuLSt1LMNhR8C842uRvU7SFHJrWC/EWi zPSgHe6iSForemdZ88X/nuYY8McLL4gidtqiIDdqZxlqU1tI4kE78RCjY9OmFUWf 9s9Dg9p+suwWAXh0nX9adoyT/dqpjQQHcHRVEbnxWr37LFrrcG/H01ImgEEIUi4E xtB573v69ST91TJcDG9hzehm6EIAW4MvomXBn8jb4DOqXCxyoe+TjX46X6VMR7RK 2i7En3sdZaRWEwiSfI8t4pj4yZ5kGSmchUVvWJQKEPhtqRTGuefKknEqZxF6LzjE gnjRjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383080; x=1793987880; 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=VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=Hzq5BQBHM9tNjRMG+QcGh8bo5sw2RzeAu2+KtuhCkgvSpxHPlgKqbqqauRogW09Jsu 3mo9K1a0ALgtd72fez7C+7z3ZgEzYLCsEzjYCAuxWdp05zfpZZqwg15I/zZML9FiBKrM LmWTjnjC7V9FWUanYs8Gim2Ulqe8BPcEPNBoSbMwBatZH/FPTbRw9S37TjsQwmnozIGv DKedDkPQlHqvG3BFjvNkemA+2POlTnfZhLl6sVB+1eFygH1Hm+1n0johXpFrZ+KfTw9/ OjusKmYTQB1jjijNv4yN+lhma1qWMBXbbHNkNdBpL32sZPeltQHsDDn+8DxcW2m/1Brj DHQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383080; x=1793987880; 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=VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=wJ17RC8LI1qpIPy+0rGv3f355mQpR0tEzkdpp9nUWZJ0KdzD36pssIPTzl150anW2V V0tU17ZksBZUolMUAFTiGx76bCYihT+Duma29tbwvt7ShCWnw39pG6yb9eQmOyj3qV9M 4st7YA6P2NlOHzcoFp/LgjZj6ZDUU0rOZwoWbbO1kdEXHiQbLnYYrjtnjErhVkqswoGz sBzhMrP6Gn80r65BjueHtGs0XFgk0FtA4spU0Q+vss8h8z7SCNvWhqsJPv7e2etd7emX IZNuJWvC+gHcIL7DQS88UQYcoHEFUZ4TUYqugiUUdhtue4AgegVMPjQkIitHyUp/bhWS bF2w== X-Gm-Message-State: AFq9FYJUYKdqusHdipbZcBIvxPJW4fheSaev2Czp72LGB50V7XOvf20u 6bQRR7n2G5axWkNj8UzkUxoomg6utKBhiOu9ErplNr8OdTMATtf4N4lyt8X+9oyt1mdx1YeIG8S ILc3yA5i/JfpRi4uXJ1/Hnn0CXURnaXbM0rsa7E72oCxcXqHazwOfPuiDxtA7kZwR/nc3 X-Gm-Gg: AYBFou1sq6wbybpvkaUw8zSYlTVXpaf470L8RjQaUvWiC6mTwgVBs+673fo3YAbwv9u jJv9dWSTbic1aBWb8lr8M1XbB4K51NKr/kWorjyGpfZ4fdf7a4foozjbQbIMk7GaMIRyaX5VcGq mpHpDy+FJKzFFZgyaO0U/jRpP2Z/PyMby+904SXBQkCMSd9a1I2v9i+wopoZMzwIGNsN3lcDnT+ G1cWOLUSu2Cm6xVTJaeBZNeDjU5Ym+WV7oJG5jqwLfc7wSwAUcASW/cpJF03SNmzKKqbZ/WEZvu U1daCQPxWpMC4d4pAnczvNnK/57pGUesi3/LYpZyL0AdSiP9PPQob+4y1bYVs6W67NBA589beXO 0yXTHcWlafFffauNxMrQuzQ3dS4XCRBUgqLB6yYzKZ9X7Z1fph0Jxz6vgNwKtKUOL+j3jYady+X PuNcuMk7AzoTOBvl2i/jXzkfu2+SIOwg== X-Received: by 2002:a05:6102:3ec5:b0:7cc:2bb7:131d with SMTP id ada2fe7eead31-7d072baa484mr1429303137.9.1793383080000; Fri, 30 Oct 2026 10:58:00 -0700 (PDT) X-Received: by 2002:a05:6102:3ec5:b0:7cc:2bb7:131d with SMTP id ada2fe7eead31-7d072baa484mr1429293137.9.1793383079503; Fri, 30 Oct 2026 10:57:59 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 29/32] tests/tcg/mips: Group MSA logic tests Date: Fri, 30 Oct 2026 18:53:51 +0100 Message-ID: <20261030175357.99684-30-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: ozLpBzaqmVPsd-6SpQCN7X3p5CX53U6N X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4daa9 cx=c_pps a=ULNsgckmlI/WJG3HAyAuOQ==: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=XEEDF0r_pM4_IqxSCIsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfXzEztP8lvXIQ/ fXpKTrN9usMVAVb9Y1nyg2OOH4tOhzmnCLqbUKz1PMiCo4S88m0or7mr25GHw5abk89OKGwV78Z tdDlyxNDg2bMVsdC5VCMmbA8Pg+7m3qAtPk0bCncpaBXZSU5agXOzHjK7Pp4NGnz/oCO9a/Lp73 0/K2FSJyxeaFl9eXGbv1tMj+2eimo//fFjClT6I/62JijT0kTTen6onsC7BpQUEoQDrin0h84E0 BCgfFy8CJMl32Un35IVwf4tnXqsqbAUzVdOZyYpzaGo+aCs6dE9NCfF8nFEXLxylylqY5Sa9SUc +1Fz4n8tszs9Z5R2IPV8Gry9q0H9oDisE8WWAIjUNPUAJ8aR+VCaoC0skLV0JwFH8fL352NQxnB sb9+8t9CWOm6olLCoQh6V8YsClo+mPZ9hAV04zsyfqw/TfFN8OsBCLqshCE1G/2+kww+zY7LYZV hDmzIGWrjxxGKi4gzJg== X-Proofpoint-ORIG-GUID: ozLpBzaqmVPsd-6SpQCN7X3p5CX53U6N X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX01rpk8fNtyZt jPM8CtkuKxU31mN5jDSEMMXXcHTkRfKCbX0KMFc3FJMAYFpgTO1I+2LgPycpZujX0BvUsXM6xYw e2rZM1OcsEbkw28G4/R/frj6ksFBCMk= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 impostorscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383198341154100 Build the 5 per-opcode logic tests as a single executable, test_msa_logic.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_logic.c | 57 +++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 6 +--- 2 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 tests/tcg/mips/test_msa_logic.c diff --git a/tests/tcg/mips/test_msa_logic.c b/tests/tcg/mips/test_msa_logi= c.c new file mode 100644 index 000000000000..4e96c3ebf0e9 --- /dev/null +++ b/tests/tcg/mips/test_msa_logic.c @@ -0,0 +1,57 @@ +/* + * MIPS MSA tests: Logic and Move instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_and_v +#include "user/ase/msa/logic/test_msa_and_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nor_v +#include "user/ase/msa/logic/test_msa_nor_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_or_v +#include "user/ase/msa/logic/test_msa_or_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_xor_v +#include "user/ase/msa/logic/test_msa_xor_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_move_v +#include "user/ase/msa/move/test_msa_move_v.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "and.v", test_msa_and_v }, + { "nor.v", test_msa_nor_v }, + { "or.v", test_msa_or_v }, + { "xor.v", test_msa_xor_v }, + { "move.v", test_msa_move_v }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Logic and Move", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index cc94623f8f20..ae2c2fa6aa48 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -16,6 +16,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_multiply.c', '../mips/test_msa_int_subtract.c', '../mips/test_msa_interleave.c', + '../mips/test_msa_logic.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -73,9 +74,4 @@ tests_mips_msa =3D [ '../mips/user/ase/msa/shift/test_msa_srar_w.c', '../mips/user/ase/msa/shift/test_msa_srlr_b.c', '../mips/user/ase/msa/shift/test_msa_srlr_w.c', - '../mips/user/ase/msa/logic/test_msa_or_v.c', - '../mips/user/ase/msa/logic/test_msa_nor_v.c', - '../mips/user/ase/msa/logic/test_msa_and_v.c', - '../mips/user/ase/msa/logic/test_msa_xor_v.c', - '../mips/user/ase/msa/move/test_msa_move_v.c', ] --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383445; cv=none; d=zohomail.com; s=zohoarc; b=bXhX6GAhUKUplEvJ6B8JIizRLzDWSonkBI2ZpV0kslSf94Oi20lJeB7VGa/XOU4LjIZLbLAzXNE4RNMnD67/0MpmRag4klthG1NWw2RptugfSxYp03laPO3cYgw8eR55XmkC4LbMzJuMAJLVYlXQoy/oY1IICUikVA3+NcwxI+s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383445; 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=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=g2bci4CKTTeI7z50TlMmT+zGgb1CDs9ZkapaJ7sAJJu5OneRax+6wzERjSYT2k/FhQmmbOpDdbWNWfG0cYfPKipQ6u5AUQc9BcNODBeCi0YHw97eNijx2jRj63FDrb6GRbTBd1iEJDE1dUNXaBTleBaJb3Btr6+GQVdzbEBfoAc= 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 1793383445882593.1918931890947; Fri, 30 Oct 2026 11:04:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMquQ-0003fS-5I; Fri, 30 Oct 2026 14:00:58 -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 1xMqrq-0000jb-BX for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:22 -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 1xMqro-0008NJ-DV for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:18 -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 69UHu2YC839487 for ; Fri, 30 Oct 2026 17:58:14 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 4hme754aej-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:58:13 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93ecdc701a2so121343285a.3 for ; Fri, 30 Oct 2026 10:58:13 -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-4aa7f3229dbsm150575845e9.1.2026.10.30.10.58.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:58:10 -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= Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=C750nF2RPysyW5E/ uVw+eS3kCRVyWyF7NQgIcjag6JD5PLozYAgd30u5o/yFvKZ+/l1lMofmYrc+6IpO 4tjR91HQI4+dGwBLkzWWz9QWmyVpTfqPVzGQ4VZG8VW0O5++opCU53u2Ybb2xXMV 3NhdjSb8yUM7p0yB7l3+BhJKGKBN3NxDfJq9AYeUm0bdlNhxlCNMXZxkp4iWKN+e A9SngmZRgQF+3blIHkKn4JIxBLw0Firpz0CT2BJ6QXRQL3jSc1v7eXTH8ngcHRqg WjI011oQSqku6h9BHGYr7F5vM0CmFsf8qVlZU8SNbZIt3MTcHn0RET7uz2OsSJAW 4EVs+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383093; x=1793987893; 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=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=E7Zp/VN5c4lnuPG6Rs0SJFbWd5EEtiSScceYMl8tPlb32f4faWiy0lYsUXXmAMtiml Y9fu3jzTEKqJOoRCnVrq0f2QyYeBBV0PjC2grFNIx3jJiNovLyG+ttrmu+N7KJUpj4bw lSMM3i2cf8iufL/k040UEnjDo2eZdS9LPTykQUj0WwDxSxWX/n5NKjazFonmiWxV1/5h tmFT9e2XGTHYTGCYoZQk0ZYFDdLcYPspj6Ox5/VGFZyTula3oFBkLdloK6mhIP+wLW+K UfrMLpSPyo6AMTtWfEsFxUB2G7HI1im7XqbPJCN5OM6D6NmHMdhK6H7L4979f6OFLtYf qgag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383093; x=1793987893; 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=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=TdqDB38Sy3FcW4sVjx+fv8NkBr8F27dpcVKhqCMc0eiBuZJg6rQ7EUc6DeLCW1jwlw vEp/njl8OZBb0wtOeXDG8PGaAhcj3EFEP9Ch8dd60R/DpgfkOUnKWQ1QiYGheT6dQYus kgF4wEIi/ByjKWUStE+g7hZyF9nK52kMJgV/SYp0/EcLZ8fS+wpjJEYkb7faaXEVS6Jt ngqTjhm6g/+DPoOJORARZSNmtguobW2vn8Bf6xeBLSsU8E0XurkPh1k+MDnsAIOFaZrl CYnWBt1i1LkCZFvbvQvgvK/6fPNU9cNgZXii0jEozD6S8k0fQPx9UVBKJ6vo53ae6Pw4 zeqg== X-Gm-Message-State: AFq9FYLtwY9qHu3Kcy8L0rsEdnujPm9wkzEhmXvhh47aCzx2N7HUhhCL kju4EDe8/howUABmMBjbjVcOITJOTl47oerVJCgXQIZ0kGMT8ZGw8KleKSU3l8GZNuPp/nDJy3I CxtkcFFQAG9BhCrFQZaOJgxcRpWd/uVji7MQuqcg8gijqWgi/f3F7pT+o6u/DBgX4gL9o X-Gm-Gg: AYBFou09SafS7bJXF1B1gZXZN2hG395bktdJT6/qNnhRj3RTaXd//wB5dBG+c5U1rGc pUyOEXoIYesixyPLM7Po/O3YDfMfa9Eu89jO2rNoxwXvJWm8LGhRrWqI/h4spxR8NC1fFUAHRrz +Sv7DVgdKPe0A/3RVePG5Acfyg5zsPARr9XQGxS0nbtlV0YMc/lxBl0QwJkEui5/d2XROPuslPc IHva9aHekHid0Dp3bajymkzv5qA5GukpRzIo7vHpnnALvyO6ZUUiOjIhJDTv/Wj2D4qntiFCwvG TCrz/xqjW8nx+ayMnf6VvgZ7jo3rUs97bkd8w6dNUw9/lc7r9d5c43Egk9IsbpzFhvhdG0YElE6 G19WhB8rEMHCzw1GPwoYydhqvRw6YSWqDxEsoy997sEeMbFbgLb4i/CNyjInPVuBzLE9o3EJ2D9 AL56iZCMuhWtRkUKhayY5rnZzbgMlyxA== X-Received: by 2002:a05:620a:6cc4:b0:93f:34c9:9259 with SMTP id af79cd13be357-94421739a72mr540064185a.50.1793383092711; Fri, 30 Oct 2026 10:58:12 -0700 (PDT) X-Received: by 2002:a05:620a:6cc4:b0:93f:34c9:9259 with SMTP id af79cd13be357-94421739a72mr540060685a.50.1793383092208; Fri, 30 Oct 2026 10:58:12 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 30/32] tests/tcg/mips: Group MSA pack tests Date: Fri, 30 Oct 2026 18:53:52 +0100 Message-ID: <20261030175357.99684-31-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: OotTfr5YnrUNZteYUzP_M7TewqGaE8t0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX2mlfZfqfcKxQ 1m1Rz3r1UbqzfeuUS8n/8ccolSjtJijTgohbFbhdU5yVCqdeYUMoVsnks3TR08PbX+y9nIpBuAn oFG2Ys3mIukvsbyh26qPAvt6o3FEG55biihwMiuYGS9HQwXW8WepJftBoaLSM2nTJCT3uYQSx0K JK2Uwb+zmy0RNxeA47TPs7OduqR2uK80sq5t/3EYrBpzKGLg5xlCcQ/oizhu22S9jfaDMjWZ77b 8RP0KsuLlbF5cZBw4D4zXee5JNdbDglJ4atJR6of6l+gQP2Xel2mACQEs0zr6t0jA6ypC5PgDDo WE/q4F9zW7wBRUnXesBEFPmmKlr0QNHH2vkQlNOGR5U4xRSQ0TQVEhdj6W9jjV9Ws72QS1aBhG7 zSxfZ/TMXEYV+/9u56swcs3gJ7DVy7tS6Rqw2RpuabQt6bLWU0ZwJGGQvH3D7my8bHOZ1MpUC+5 HyQH6bhjHtRuOrsUY2Q== X-Proofpoint-ORIG-GUID: OotTfr5YnrUNZteYUzP_M7TewqGaE8t0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX8DHeFUBtLkkq 67Rpxt8CN7lTMorh34vMPbslzwgpKjCY+S2gHxhWWwmRY7Ae+rJBcwET577vXUB6OMMl8lDWboA o91cq2kAu6wQ1xkVy0K/xujUjTTl/a0= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4dab5 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=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW: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_06,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-2610300071 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: 1793383448407154100 Build the 12 per-opcode pack tests as a single executable, test_msa_pack.c, to reduce the number of test binaries. Each opcode reports one TAP line. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_pack.c | 99 ++++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 13 +---- 2 files changed, 100 insertions(+), 12 deletions(-) create mode 100644 tests/tcg/mips/test_msa_pack.c diff --git a/tests/tcg/mips/test_msa_pack.c b/tests/tcg/mips/test_msa_pack.c new file mode 100644 index 000000000000..d9b911336474 --- /dev/null +++ b/tests/tcg/mips/test_msa_pack.c @@ -0,0 +1,99 @@ +/* + * MIPS MSA tests: Pack instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_pckev_b +#include "user/ase/msa/pack/test_msa_pckev_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckev_d +#include "user/ase/msa/pack/test_msa_pckev_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckev_h +#include "user/ase/msa/pack/test_msa_pckev_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckev_w +#include "user/ase/msa/pack/test_msa_pckev_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckod_b +#include "user/ase/msa/pack/test_msa_pckod_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckod_d +#include "user/ase/msa/pack/test_msa_pckod_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckod_h +#include "user/ase/msa/pack/test_msa_pckod_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pckod_w +#include "user/ase/msa/pack/test_msa_pckod_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_vshf_b +#include "user/ase/msa/pack/test_msa_vshf_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_vshf_d +#include "user/ase/msa/pack/test_msa_vshf_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_vshf_h +#include "user/ase/msa/pack/test_msa_vshf_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_vshf_w +#include "user/ase/msa/pack/test_msa_vshf_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "pckev.b", test_msa_pckev_b }, + { "pckev.d", test_msa_pckev_d }, + { "pckev.h", test_msa_pckev_h }, + { "pckev.w", test_msa_pckev_w }, + { "pckod.b", test_msa_pckod_b }, + { "pckod.d", test_msa_pckod_d }, + { "pckod.h", test_msa_pckod_h }, + { "pckod.w", test_msa_pckod_w }, + { "vshf.b", test_msa_vshf_b }, + { "vshf.d", test_msa_vshf_d }, + { "vshf.h", test_msa_vshf_h }, + { "vshf.w", test_msa_vshf_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Pack", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index ae2c2fa6aa48..8a0ae3cdaeb8 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -17,6 +17,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_subtract.c', '../mips/test_msa_interleave.c', '../mips/test_msa_logic.c', + '../mips/test_msa_pack.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -42,18 +43,6 @@ if 'qemu-mips' in emulators endif =20 tests_mips_msa =3D [ - '../mips/user/ase/msa/pack/test_msa_vshf_b.c', - '../mips/user/ase/msa/pack/test_msa_pckev_b.c', - '../mips/user/ase/msa/pack/test_msa_vshf_w.c', - '../mips/user/ase/msa/pack/test_msa_pckod_h.c', - '../mips/user/ase/msa/pack/test_msa_pckod_b.c', - '../mips/user/ase/msa/pack/test_msa_vshf_d.c', - '../mips/user/ase/msa/pack/test_msa_pckev_w.c', - '../mips/user/ase/msa/pack/test_msa_pckev_h.c', - '../mips/user/ase/msa/pack/test_msa_pckev_d.c', - '../mips/user/ase/msa/pack/test_msa_pckod_w.c', - '../mips/user/ase/msa/pack/test_msa_vshf_h.c', - '../mips/user/ase/msa/pack/test_msa_pckod_d.c', '../mips/user/ase/msa/shift/test_msa_sra_d.c', '../mips/user/ase/msa/shift/test_msa_srl_b.c', '../mips/user/ase/msa/shift/test_msa_srl_d.c', --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383273; cv=none; d=zohomail.com; s=zohoarc; b=mv28/3kv2bHn+sYJP6IEFaJ13eV8MK/zbD1JSFs1st7y+LlZP0staYEA+f+CWUKg3YnPTs+2S5Y8uYVULdNTLFgozKA+x7teYhEnsu2owmhqVntTNAkmmpwjObRORrzH0pM8o71H2RckLrvghl0VilYg/PEr09Y0PnGfxc6dFTU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383273; 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=mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=CKuMkyre2EvXErnN2jGendCdzzTZHjwddsDB54hfq42fpca++HzNtjOKCqAQ/BPoZ0bznXWPfXWBwuT2b3tKlp8+LO4n4QyZZeI/YAgVab3i6PCFdoE4avbihjFg17n51Vb73eYf19Gs41Y+eWaYH1/Bu4qpLO6V/I4Dt2oIkLU= 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 1793383273553750.2396337820376; Fri, 30 Oct 2026 11:01:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMquT-0003yR-Py; Fri, 30 Oct 2026 14:01:02 -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 1xMqry-0000rO-Hf for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:26 -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 1xMqrw-0008OZ-EC for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:26 -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 69UHu2tU2414364 for ; Fri, 30 Oct 2026 17:58:23 GMT Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6pmbmg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:58:22 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-91c6c1e082bso35337116d6.0 for ; Fri, 30 Oct 2026 10:58:22 -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-48e71b728f9sm4489556f8f.10.2026.10.30.10.58.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:58:18 -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= mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=mmFgXTnEgY8Btjkt lkVtLiCQxU6H1yGOGqum5MN2zuX1inavZ0Fxuh+M+n9e0oK7fw0n4w+q8wND+iOd DEF93gH+ehZnZ+VWzDcel+J0oheBdAYBx3IcTPvWftTDDWkifXKDnPrCqaivHikG lyuhRN84LURP8nsU0COMG8kOeKp1LGl/U7lJcAvfvT/4Zpqkf+a4Duv9J362Z2kR Tz8gyrvIspzALiY5Tn9gk2w1vfJCkmseTEBoYEWJwIXl9LZHcY55/QF6CFm9ArVM sKh21hhG9QPNkQoJNspO19X7gYsS5aAqAQ2fCl2fIdYl0OA3z9C6n52tGORm5GlH HTD+UA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383102; x=1793987902; 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=mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=guzKeyEY5RkSA+9KLxnR+4serAV20WNUg8+ektC8ZKJmo4ZNaaC2eTgZCflC6R9cmE 2fGmWu3cjpRtT9K4Begy8zrATsNmJLWdw54DAB9vttt+spcdoiAps8tMU07Mi5eNyfLG o+23TfU+DGEQCPUze4UkwbbSj/1J9jWKNeLO1mhMGms1o6126MExuCSMnOxfCeD40GqR sOUN3pGPjkOS3t31zFk1VPq2OdzmyVcudNYCqzdiimtdX6mNhUoudgBRqnLySzPhNf6A HDTzBWThQSDqw0WXEC8cZQLiTlpeTaXjstXllVnZiy/wXTY3gCidAALEjyGuVGprMr9g PI1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383102; x=1793987902; 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=mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=jOyWJ7uQX1k+xVtVkXaz+1/Ne9D5Qka8n25XhXWKu69XxlSGzIMwFwGVkYmDckWFO4 6/wCAHlZtpnvPflLiwdHw0H/Abl1R4CDmPUVnFd5oPS/ugfVi5h1IELDguFe3CrhKo35 i8JCyBlzN26ZeLQr4hQSoDr7Wa4uvrm60AuaY6jInGTXAsgARrp9WHc7xcY77bpAuC9+ ex9mhkTBDiTWmJbM4aTKhsQpz/04kcQPuoWE5rBhb8j8LaaA6ALjy0ztzpgvMxHnU7c5 kf+xM95DXRkW4oFeJnaywPhETeDXfnYBPxzib/tNcgqKxFcNoZfgH3kCd3d58pVt5RxL Fwzg== X-Gm-Message-State: AFq9FYJTbXLHDhRPivZ71Q/j9+Q0IPXExcUhDa6J2hqLxiNG5gYCbs8T z9NWbaDFyvpqDDhBo6duSpYLhGO42xic+IXre/j+ja40Doq9VriFwWK1xGPt+AQxBkj2H4EWcae AvblNmwoEu+A7IMGc1c/dwy9siv0uGtccqLAWCyKyEJIvrdn0rJ4BNIYSBQD3EjbltYAK X-Gm-Gg: AYBFou0S+dpXoeF1kSDLbspybp6oXwe2QCkPdhsw8pTGSnbgSjLtOrKtmWWyc0pqd88 C8a4U7/3Mv917YzTml/+zM+lOOdH4MSVF6w/yTnCpoBNVbpKE8L17DTvZJMHpg1t2rBFX2wZzLv x5DhG/k35DlGHSwu2yn0CjQV/GgNfuFJUOM9yHAUJBIwAXWiElkJnUHzZJZsLJ7Hll5z+I3OXe7 JtflKugmRQfrox3N1sty+G1b/OsN4Ty64/BMznI5uEPk4JSnRjs8bzymOBYMO4UKPFUT8mY2oS5 a9Wm/ZTA3aiSgCb4dOxlK1Vg71fFCNbuUxqwvVTH+DFbP7lVZUM6alg/AUYHB6K1TrEWqF0C4Bq 9MNsvRwQj/NM4dpYxMW+cSspd67D/uw5GRYCXVvZx/p49oAQgSRdoVXe1VazM6Dd+tzo7W7qYy9 H59bCnFZkDiyygJ8qFncR2394IguhkRA== X-Received: by 2002:a05:620a:1b9b:b0:93f:3193:ac09 with SMTP id af79cd13be357-944133593femr1040458585a.15.1793383101910; Fri, 30 Oct 2026 10:58:21 -0700 (PDT) X-Received: by 2002:a05:620a:1b9b:b0:93f:3193:ac09 with SMTP id af79cd13be357-944133593femr1040454585a.15.1793383101413; Fri, 30 Oct 2026 10:58:21 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 31/32] tests/tcg/mips: Group MSA shift tests Date: Fri, 30 Oct 2026 18:53:53 +0100 Message-ID: <20261030175357.99684-32-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX3dLOQ3pr8PMj A+vwzbOdvzLZYWPuYmJOit+CBcj+icpFLCicEjUYBAKSNNn91Tw9eejtfwdhUnIf4UfznNceXtQ wQB3Q1G5Gj/NuObC2jSEAYGqikwI4pBRVUYvbS4+QnS9jV3fg9QgCbb6Fpb4nN0nez1sZ7LNq6C SE0e65j5qYSJMeBlHSu8gIi3kKl62l3wFiFgcADYFHwTdtJLqgFDlbqkc0xbudyR8oGTKYnovUa VhbnOn7KZ7v2vL2X52PkY0eFX7xlabjkCIbOqmqbVgBDJS8EtwDjFrCgjlO/Z0D+SVwwoCaQLey 4h7UabGGMmCTYZ11YFzt9kwKfhr3Rm18AsZ3WzPsdeVk+XQ81wK7h9orfRGBYMM7wGEQZGI5CvK YFiUCcoDI4HJj9Ypv7yFPbCHE5U2Z9+Nm7IBXsAYveHMSp7XYKW3Alw91VUls24pFvn9Z3X8F15 Z7eeKSyIdRqmHitcQig== X-Proofpoint-ORIG-GUID: bqk2T4O1XkLZFFLRMg9UjGiy2WFh5yCz X-Proofpoint-GUID: bqk2T4O1XkLZFFLRMg9UjGiy2WFh5yCz X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4dabe cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==: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=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX7jS7lt8E7jlS sEIGGLBlg3bPrehKuUW603wOgf6GReGVUStN6IHrmX7c+njswCqw13ha6Jz1U6BOwXjVTbGiWQO pQJwzJ5R82Veq+5COPp0MQKDS1PBLQI= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383274609158500 Build the 20 per-opcode shift tests as a single executable, test_msa_shift.c, to reduce the number of test binaries. Each opcode reports one TAP line. All MSA tests now emit TAP: select it in the meson setup. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/tcg/mips/test_msa_shift.c | 147 ++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 24 +----- tests/tcg/mips64/meson.build | 3 +- tests/tcg/mipsel/meson.build | 3 +- 4 files changed, 152 insertions(+), 25 deletions(-) create mode 100644 tests/tcg/mips/test_msa_shift.c diff --git a/tests/tcg/mips/test_msa_shift.c b/tests/tcg/mips/test_msa_shif= t.c new file mode 100644 index 000000000000..14a73d90935b --- /dev/null +++ b/tests/tcg/mips/test_msa_shift.c @@ -0,0 +1,147 @@ +/* + * MIPS MSA tests: Shift instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "../include/tap.h" + +#define main test_msa_sll_b +#include "user/ase/msa/shift/test_msa_sll_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sll_d +#include "user/ase/msa/shift/test_msa_sll_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sll_h +#include "user/ase/msa/shift/test_msa_sll_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sll_w +#include "user/ase/msa/shift/test_msa_sll_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sra_b +#include "user/ase/msa/shift/test_msa_sra_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sra_d +#include "user/ase/msa/shift/test_msa_sra_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sra_h +#include "user/ase/msa/shift/test_msa_sra_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_sra_w +#include "user/ase/msa/shift/test_msa_sra_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srar_b +#include "user/ase/msa/shift/test_msa_srar_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srar_d +#include "user/ase/msa/shift/test_msa_srar_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srar_h +#include "user/ase/msa/shift/test_msa_srar_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srar_w +#include "user/ase/msa/shift/test_msa_srar_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srl_b +#include "user/ase/msa/shift/test_msa_srl_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srl_d +#include "user/ase/msa/shift/test_msa_srl_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srl_h +#include "user/ase/msa/shift/test_msa_srl_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srl_w +#include "user/ase/msa/shift/test_msa_srl_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srlr_b +#include "user/ase/msa/shift/test_msa_srlr_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srlr_d +#include "user/ase/msa/shift/test_msa_srlr_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srlr_h +#include "user/ase/msa/shift/test_msa_srlr_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_srlr_w +#include "user/ase/msa/shift/test_msa_srlr_w.c" +#undef main +#undef TEST_COUNT_TOTAL + + +static const struct { + const char *name; + int32_t (*fn)(void); +} msa_tests[] =3D { + { "sll.b", test_msa_sll_b }, + { "sll.d", test_msa_sll_d }, + { "sll.h", test_msa_sll_h }, + { "sll.w", test_msa_sll_w }, + { "sra.b", test_msa_sra_b }, + { "sra.d", test_msa_sra_d }, + { "sra.h", test_msa_sra_h }, + { "sra.w", test_msa_sra_w }, + { "srar.b", test_msa_srar_b }, + { "srar.d", test_msa_srar_d }, + { "srar.h", test_msa_srar_h }, + { "srar.w", test_msa_srar_w }, + { "srl.b", test_msa_srl_b }, + { "srl.d", test_msa_srl_d }, + { "srl.h", test_msa_srl_h }, + { "srl.w", test_msa_srl_w }, + { "srlr.b", test_msa_srlr_b }, + { "srlr.d", test_msa_srlr_d }, + { "srlr.h", test_msa_srlr_h }, + { "srlr.w", test_msa_srlr_w }, +}; + +int main(void) +{ + unsigned i; + + TAP_START(); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + tap_report(!msa_tests[i].fn(), "MSA %s %s", + "Shift", msa_tests[i].name); + } + + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 8a0ae3cdaeb8..560d07ad6357 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -18,6 +18,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_interleave.c', '../mips/test_msa_logic.c', '../mips/test_msa_pack.c', + '../mips/test_msa_shift.c', ] =20 tests +=3D tcg_tests['multiarch-linux-user']['tests'] @@ -41,26 +42,3 @@ if 'qemu-mips' in emulators } } endif - -tests_mips_msa =3D [ - '../mips/user/ase/msa/shift/test_msa_sra_d.c', - '../mips/user/ase/msa/shift/test_msa_srl_b.c', - '../mips/user/ase/msa/shift/test_msa_srl_d.c', - '../mips/user/ase/msa/shift/test_msa_sll_b.c', - '../mips/user/ase/msa/shift/test_msa_sra_w.c', - '../mips/user/ase/msa/shift/test_msa_sra_h.c', - '../mips/user/ase/msa/shift/test_msa_srar_h.c', - '../mips/user/ase/msa/shift/test_msa_srlr_h.c', - '../mips/user/ase/msa/shift/test_msa_srl_h.c', - '../mips/user/ase/msa/shift/test_msa_sll_d.c', - '../mips/user/ase/msa/shift/test_msa_srl_w.c', - '../mips/user/ase/msa/shift/test_msa_srar_b.c', - '../mips/user/ase/msa/shift/test_msa_sll_w.c', - '../mips/user/ase/msa/shift/test_msa_sra_b.c', - '../mips/user/ase/msa/shift/test_msa_sll_h.c', - '../mips/user/ase/msa/shift/test_msa_srar_d.c', - '../mips/user/ase/msa/shift/test_msa_srlr_d.c', - '../mips/user/ase/msa/shift/test_msa_srar_w.c', - '../mips/user/ase/msa/shift/test_msa_srlr_b.c', - '../mips/user/ase/msa/shift/test_msa_srlr_w.c', -] diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index ebb4006e7eb5..ad69e36d9165 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -39,11 +39,12 @@ foreach src: tests_mips64r6 tests +=3D {src: {'cflags': '-march=3Dmips64r6', 'protocol': 'tap'}} endforeach =20 -foreach src: tests_mips_msa + tests_mips_msa_groups +foreach src: tests_mips_msa_groups tests +=3D { src: { 'cflags': ['-march=3Dmips64r6', '-mmsa'], 'qemu_args': ['-cpu', 'I6400'], + 'protocol': 'tap', } } endforeach diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index edb59a25454b..1951c3c437fb 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -40,12 +40,13 @@ endif =20 tests =3D [] =20 -foreach src: tests_mips_msa + tests_mips_msa_groups +foreach src: tests_mips_msa_groups tests +=3D { src: { 'cflags': ['-mabi=3D32', '-march=3Dmips32r5', '-mmsa', '-mno-odd-spr= eg', '-mfp64', '-mnan=3D2008'], 'qemu_args': ['-cpu', 'P5600'], + 'protocol': 'tap', } } endforeach --=20 2.55.0 From nobody Mon Nov 23 04:18: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=1793383394; cv=none; d=zohomail.com; s=zohoarc; b=Rd8XFjRkFIAR0pdYlVg2ztiEtZQEmBW2LVBPpD+B7x60K9u7ZeqNsJxUcrrrEhpZAOY3XGS1kOOk1wFVZ8H9hJXbY7y4J4f1OgDZNg1RprIBZKHSoS58GrdzEoAOiZiKG3/AB19aXL4hgEpZgB0rRRgZk6rziBv4xIAyBV0ZszY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793383394; 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=+MyDPkZFnkC2V63+SpPR9axBurtzML6X5sZJvQlbQV8=; b=O2z54a0ilvUTDh1A7qh2vDf8+N9MkPvu8KB6A/ZutWJ4dwtLWoWedl2S8zLWZVeg78fmXRXozbk7i4+nxvOL+53/KZo+Nc4227C0+e7c+s3FNfnncPtJfiBgMVZ54OPRALCV3+NH+gmD7hPKTrp6WHPTkxpmBGQ9G2yiu70Tfi0= 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 1793383394974177.51940127547152; Fri, 30 Oct 2026 11:03:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMquZ-0004E6-B7; Fri, 30 Oct 2026 14:01:07 -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 1xMqs9-00019u-UR for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:46 -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 1xMqs7-0008Pd-Ry for qemu-devel@nongnu.org; Fri, 30 Oct 2026 13:58:37 -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 69UHu2tF2414394 for ; Fri, 30 Oct 2026 17:58:33 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 4hme6pmbn9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 17:58:33 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93e49a1d3b1so227626185a.2 for ; Fri, 30 Oct 2026 10:58:33 -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-4aa8213ead6sm149754045e9.14.2026.10.30.10.58.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 10:58:30 -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= +MyDPkZFnkC2V63+SpPR9axBurtzML6X5sZJvQlbQV8=; b=Z2v5yjRHVWbSWIt/ 2O90u70a+xIp+1O2RBxTBRJxJTbkZTdfAdd+jhIlURWCdWyeLJlXkISNvAz+8vR5 Md0w4+tsXJJSRXisPJRPIZreS2y+fi6dZQN9viGTEWvtSKrkSZPTh0Hv4hRX3ViZ Xr2tL2Sb6kOOi0sx2Hnjj955ZQy8skNH+oaPSy2eLB6WWK+SX2m2rUovAiBWZT6w Id57dHabS2Dj+85iO/GCpBcdqYNXiyK9UfOqwp7rtIyR/uLkE4iBGMvggogbrYkR 3f8Fw7ln5/A56KLgE3RGWstEFpDa+w6+wTFP83BzbdRGSX9nUfuS0gXbsMoLiWBL 6TlRVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793383112; x=1793987912; 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=+MyDPkZFnkC2V63+SpPR9axBurtzML6X5sZJvQlbQV8=; b=jCk7KZKbT41J0cmkxiyrv0SpDuRgqNg9apQKtOd7kywAS2sofjyTNclaCh9b74x4dh TIBVOZZDJsPO222t6Qc9RsLIVyIq67UvZcjcJ1q1EA+OvmXizMrZse8Xtv7jV1pc+sni M5iYiNgQElnLqGED/mUFNUEKEwZnzeKopk9IgqT22RRVmDevP4tWAHBIWfTg8dXYetjg lwsv3KpHYF6ob1r86hnZZc5atl8pdoot+FuQ4b1snnBr8MBtGJkb6w6l8f+80Xj0BPqm sXmGhVG4pKq6KS1A8K5RXUVsqo1bpM615UgG3pmI6GH4b+MefujXHlUGfndMkb+ZxWJY sYOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793383112; x=1793987912; 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=+MyDPkZFnkC2V63+SpPR9axBurtzML6X5sZJvQlbQV8=; b=FUEeTWfn6m2F6HhOCA8MPYWAB40Fog8RjF8c/2Y+w4SSA2abq+13gnC+ZGOT1BNHN+ 0RVIt+nZRfhaEFRVNIARIVlya18lhz09Lf32+Qs6a+cjIcB2jdjJ+42CRnsAFj0T2cQW apT1BhB6S5SUvCf1gMFTDnMhkSapaZuFtvwo7n9EF+HySe2pHlKsmlP4oiiRg9T34RRW 9Gt5eGOahfIU8nTOQ+MW3/CV5tA4/5AD13tNY6zGuiHR6vtBBTJz02jDMIfmzHgOX0fr Gf/kVOvJPsBtT2DcyRFQ8XPoGMqYhlx2U6Tok0nfBSz2axfJSpY2O2VDVMkhLljL6IZR qmXQ== X-Gm-Message-State: AFq9FYLQ8g6TVDY/QjCeflPyYarOK3OOMRL4jsCCFDBrHsu4aJ7Ulmad g/rAKe6y2MtIkkwdtZbrPEzMv6RMZo/FbSGVbjKKXBwNfdVnb7NLS8R43kRgII7j5kIlmyViE4Z gTGvNE+Uyok3h2KnwkTFjFyjIZmbg/Fv0/feXfAyHxQ7iB4Lw+HSo6l0+PPGSJa5cVWkU X-Gm-Gg: AYBFou37F8qi6n3qsF8sj5BswPXs3CPOLBAxj0MVyF00Taqlh8XBCEQ3aiqwGmN7ID7 z6t+f6PuaKEuN7MuQulnlojOHJ7tck243gH3skKps7tIHplRbnXDPNOthxRz+RbRl+R4LC+bMsN vNLrqPNRlRugqyhk56S4ycfY/B3xTBwsdgn1i1dR+sq1WI1sp0YupyeJdYqs5yc90OM5ieWQjGz cet+w8xSGKotV0GKYpBqnUdMHfDIc7qhsjOioC5PpqCFC2ZRgmvU+wwYSbV59HN1mkL2jNvO7W8 +MRV03Ml5Cko5f+GMoWUtt1SepTozO5tDoV1V9e8kLSKWogJKAz/HCLP9eCV7pWliPW6pQ9pUS8 dgMpfAGXITAtQ6NGOD86Iy/JGKYRIRbkrpMp65lihNvJq4YzFgZ14RHFoLKijbMtMqa/2m4mmon vbc3ulpY7MseRyzJdrfZC0osohvO3+Ug== X-Received: by 2002:a05:620a:461e:b0:93f:707f:28d2 with SMTP id af79cd13be357-94421712d14mr521113785a.26.1793383112193; Fri, 30 Oct 2026 10:58:32 -0700 (PDT) X-Received: by 2002:a05:620a:461e:b0:93f:707f:28d2 with SMTP id af79cd13be357-94421712d14mr521110285a.26.1793383111701; Fri, 30 Oct 2026 10:58:31 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno , Jiaxun Yang , Pierrick Bouvier Subject: [PATCH v4 32/32] tests/tcg/mips: Add MSA load/store tests Date: Fri, 30 Oct 2026 18:53:54 +0100 Message-ID: <20261030175357.99684-33-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030175357.99684-1-philmd@oss.qualcomm.com> References: <20261030175357.99684-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: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX5/VA0GiOTMyR Xp7YnnJTUdFbpuslI7L3eGulxGyvpmRTcKHZmaoxhJXNro2WQ23SkeQkiP6UQJBkGmXvOKKVUIk WV7vSnpr7xN6Max7VQcrj6iFUpEnGIEE7EFVUwpjd8kD1y3WJ0cV0DWWrMdf5mbVlMNqPENOVfx uQFgl1eRNvUQQi133niMt0i1+1PaDHUuI3+yrbaCHJTGzvHPb55jnMTVUm5//4ifYixoAYQZi94 91RraxBXD/wz9axXBRRpmjoiBlbesKEHqrN3prXZEoZyYLkyr2tL8+rSKDqGGwU2wMT7Mw4A0fS IWtbGbGTUmIFHH1gSULB0sQYXukb2pLye2e1nN07UFiMMqzHVzjnHbpapsZhSDHY+uQfAJPvYXt bTZm7aBlddkGnFBdAJ82QQiqnDIVyXrG3vHlIJUEjqgVopOcGcG0AE3nx2nIn1TV7tuyda7CRop +vtijnwyCPhYdq1FRCA== X-Proofpoint-ORIG-GUID: hvilZawSWm9ae7riHKqyxri4A6kLuo8B X-Proofpoint-GUID: hvilZawSWm9ae7riHKqyxri4A6kLuo8B X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4dac9 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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=kUBLggdYPbBL_tJofOAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA3MSBTYWx0ZWRfX6pxbu8dbyHbL 5GxzvbWN2t+K3KDkt5Bc5nSlRWFQPJZ/T+A7tvcerHXX3seOb9ExYGnkYnMMHMpmN54vjqfhYkw i7kZFW5wbqRZkkRCVhwb191eA9YqRj0= 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_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300071 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: 1793383396867158500 Add coverage for the MSA LD/ST.B/H/W/D instructions at every source and destination byte offset within a vector-sized block, including accesses that cross a page boundary. Verify per-element endian ordering, destination contents, and source register preservation. Test both little-endian (P5600, MIPS32R5) and big-endian (I6400, MIPS64R6). AI-used-for: tests Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- Since this is a TCG test ran under linux-user, ignore checkpatch: ERROR: use qemu_real_host_page_size() instead of sysconf(_SC_PAGESIZE) #138: FILE: tests/tcg/mips/test_msa_load_store.c:110: + long page_size =3D sysconf(_SC_PAGESIZE); --- tests/tcg/mips/test_msa_load_store.c | 168 +++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 1 + 2 files changed, 169 insertions(+) create mode 100644 tests/tcg/mips/test_msa_load_store.c diff --git a/tests/tcg/mips/test_msa_load_store.c b/tests/tcg/mips/test_msa= _load_store.c new file mode 100644 index 000000000000..b0c9404f122d --- /dev/null +++ b/tests/tcg/mips/test_msa_load_store.c @@ -0,0 +1,168 @@ +/* + * MIPS MSA tests: Load / Store instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include +#include +#include +#include +#include +#include +#include + +#include "../include/tap.h" + +enum { + VECTOR_BYTES =3D 16, + BUFFER_BYTES =3D 64, +}; + +#define DEFINE_MSA_COPY(format) \ +static void copy_##format(const uint8_t *source, uint8_t *destination, \ + uint8_t *loaded, uint8_t *after_store) \ +{ \ + __asm__ volatile( \ + "ld." #format " $w0, 0(%[source])\n\t" \ + "st.b $w0, 0(%[loaded])\n\t" \ + "st." #format " $w0, 0(%[destination])\n\t" \ + "st.b $w0, 0(%[after_store])\n\t" \ + : \ + : [source] "r" (source), [destination] "r" (destination), \ + [loaded] "r" (loaded), [after_store] "r" (after_store) \ + : "f0", "memory"); \ +} + +DEFINE_MSA_COPY(b) +DEFINE_MSA_COPY(h) +DEFINE_MSA_COPY(w) +DEFINE_MSA_COPY(d) + +typedef void (*MsaCopy)(const uint8_t *source, uint8_t *destination, + uint8_t *loaded, uint8_t *after_store); + +static const struct { + const char *name; + unsigned element_bytes; + MsaCopy copy; +} formats[] =3D { + { "b", 1, copy_b }, + { "h", 2, copy_h }, + { "w", 4, copy_w }, + { "d", 8, copy_d }, +}; + +static bool check_format(size_t format_index, const uint8_t *source, + uint8_t *destination, size_t first_offset, + const char *region) +{ + _Alignas(VECTOR_BYTES) uint8_t loaded[VECTOR_BYTES]; + _Alignas(VECTOR_BYTES) uint8_t after_store[VECTOR_BYTES]; + uint8_t expected_vector[VECTOR_BYTES]; + uint8_t expected_memory[BUFFER_BYTES]; + const uint16_t endian_probe =3D 1; + unsigned endian_mask =3D *(const uint8_t *)&endian_probe ? 0 : + formats[format_index].element_bytes - 1; + + for (size_t source_offset =3D first_offset; + source_offset < first_offset + VECTOR_BYTES; source_offset++) { + for (size_t destination_offset =3D first_offset; + destination_offset < first_offset + VECTOR_BYTES; + destination_offset++) { + memset(destination, 0xa5, BUFFER_BYTES); + memset(expected_memory, 0xa5, BUFFER_BYTES); + memcpy(expected_memory + destination_offset, + source + source_offset, VECTOR_BYTES); + + for (size_t byte =3D 0; byte < VECTOR_BYTES; byte++) { + expected_vector[byte] =3D + source[source_offset + (byte ^ endian_mask)]; + } + + formats[format_index].copy(source + source_offset, + destination + destination_offset, + loaded, after_store); + + if (memcmp(loaded, expected_vector, VECTOR_BYTES)) { + TAP_INFO("ld.%s endian mismatch (%s, offset %zu)", + formats[format_index].name, region, source_offset= ); + return false; + } + if (memcmp(destination, expected_memory, BUFFER_BYTES)) { + TAP_INFO("st.%s memory mismatch (%s, offset %zu)", + formats[format_index].name, region, + destination_offset); + return false; + } + if (memcmp(after_store, loaded, VECTOR_BYTES)) { + TAP_INFO("st.%s changed its source register (%s)", + formats[format_index].name, region); + return false; + } + } + } + + return true; +} + +int main(void) +{ + _Alignas(VECTOR_BYTES) uint8_t source[BUFFER_BYTES]; + _Alignas(VECTOR_BYTES) uint8_t destination[BUFFER_BYTES]; + long page_size =3D sysconf(_SC_PAGESIZE); + size_t mapping_bytes; + uint8_t *source_mapping; + uint8_t *destination_mapping; + uint8_t *page_source; + uint8_t *page_destination; + + TAP_START(); + if (page_size < BUFFER_BYTES) { + TAP_INFO("Invalid guest page size: %ld", page_size); + tap_report(0, "MSA ld/st guest page size"); + return tap_done(); + } + mapping_bytes =3D 4 * (size_t)page_size; + source_mapping =3D mmap(NULL, mapping_bytes, PROT_NONE, + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); + destination_mapping =3D mmap(NULL, mapping_bytes, PROT_NONE, + MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); + if (source_mapping =3D=3D MAP_FAILED || destination_mapping =3D=3D MAP= _FAILED) { + TAP_INFO("mmap: %s", strerror(errno)); + tap_report(0, "MSA ld/st mmap"); + return tap_done(); + } + if (mprotect(source_mapping + page_size, 2 * page_size, + PROT_READ | PROT_WRITE) !=3D 0 || + mprotect(destination_mapping + page_size, 2 * page_size, + PROT_READ | PROT_WRITE) !=3D 0) { + TAP_INFO("mprotect: %s", strerror(errno)); + tap_report(0, "MSA ld/st mprotect"); + return tap_done(); + } + + page_source =3D source_mapping + 2 * page_size - BUFFER_BYTES / 2; + page_destination =3D destination_mapping + 2 * page_size - BUFFER_BYTE= S / 2; + for (size_t byte =3D 0; byte < BUFFER_BYTES; byte++) { + source[byte] =3D page_source[byte] =3D byte * 13 + 7; + } + + for (size_t format_index =3D 0; + format_index < sizeof(formats) / sizeof(formats[0]); format_index= ++) { + bool passed =3D check_format(format_index, source, destination, 0, + "buffer") && + check_format(format_index, page_source, page_destina= tion, + VECTOR_BYTES, "page boundary"); + + tap_report(passed, "MSA ld/st.%s", formats[format_index].name); + } + + if (munmap(source_mapping, mapping_bytes) !=3D 0 || + munmap(destination_mapping, mapping_bytes) !=3D 0) { + TAP_INFO("munmap: %s", strerror(errno)); + tap_report(0, "MSA ld/st munmap"); + return tap_done(); + } + return tap_done(); +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 560d07ad6357..179502504582 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -16,6 +16,7 @@ tests_mips_msa_groups =3D [ '../mips/test_msa_int_multiply.c', '../mips/test_msa_int_subtract.c', '../mips/test_msa_interleave.c', + '../mips/test_msa_load_store.c', '../mips/test_msa_logic.c', '../mips/test_msa_pack.c', '../mips/test_msa_shift.c', --=20 2.55.0