From nobody Mon Nov 23 04:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372578; cv=none; d=zohomail.com; s=zohoarc; b=GYmDX7g1Hsb11Fj64LpAt9hMRRf3etnpg2FWVSJ/fNyZdLTJTgQmxLfWI93RODcwCIt2MUk8eoE9cqRl47RwVy5LUNsewjk5JV791kkeQ5iX6Wd+N/xQUULsa8Sf5BJoIWNMeEkN+jzaG7vRvYP9TQPJwmcf2vrLZ1OKciwgspA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372578; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=hYpLatjn7L7tJVWqUCfxO36SpgeZ0qU1W1CEFD5YpEs=; b=ZwIKxL1p8qpTbgm4v73E6AjfB1Qk4v3YKMq+4HrnH5nDChA4gMIwlY1pr4dPJcBkPg46NeJSYJrOt0RBAVvjlJzaN9bDHGbntiCIENO60vocHkXcRuv+9wKwn8ATg1Qg2vV83kaMa93AokB0o06FbhSoQEn1ZJXGADZO/RnUhZI= 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 1793372578697666.4818732116653; Fri, 30 Oct 2026 08:02:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo7b-00078s-Sx; Fri, 30 Oct 2026 11:02: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 1xMo7a-00078S-6g for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02: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 1xMo7X-00076R-FQ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:21 -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 69UERKFl2968098 for ; Fri, 30 Oct 2026 15:02:18 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 4hme6qkmqt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:02:17 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7bf71bbf197so618425137.2 for ; Fri, 30 Oct 2026 08:02: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 5b1f17b1804b1-4ac0a0a3495sm48371625e9.4.2026.10.30.08.02.11 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= hYpLatjn7L7tJVWqUCfxO36SpgeZ0qU1W1CEFD5YpEs=; b=DJgTjv/+E+EPf0t5 BFfUZ6n0p/6GsI/sJKchsuMmwB11O9qdhPg0TD8u62pTZlcegqJvHKbW3oLZBHUe yZvSmGnjiYVxigiHa4hi0poLeTct3qo76PTU9WV1LBQEtKyIm0y7385dIIr81ASQ iq8mI02zPMcdrzZXjS1kEFT+kXtQit2wYHlflZ3b3v6JStVDBUDC/Fs6VdFprI2k 0+epsx4GZoQKVTH9ZnizvNUBmF/HMw3xqVvdyHj9aIPcZu2iUQN9gcYvp/dUJj/R Z84aA6yb8fM0VonOwnz7kYGPk8Pj8CFtD1z4FlAXqiP2kb27XTcBpG8h8LQQyxAk tMySGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372537; x=1793977337; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hYpLatjn7L7tJVWqUCfxO36SpgeZ0qU1W1CEFD5YpEs=; b=I2EX10ZkZd3VwpBRmlLW8+T2zpQ5fKdJiq/sxnV/EHupFp5PH5x03DOq9wWFo9J4qq OoaWwB6E9EBe0LSUkxBJjqYx8UpnZ5Jg8Um0MbTf27nx+i7mXYHQLzEjwd8t6hVH31bt r9/zxltgo/cc5YjY2wMay5cDNhgzu9He/4nLY+ZRzEBaP/URGJIQabHLex2J1ZrRTePD OZMBKb6EQh0P26f9TQFyOfXix2Ky4g2D8MuyFK5AAf4hEXBgxHYqvuPwhsS58Cjuvgqg XlYItGjHNqcGu4XBsSRbtjBRxpzxVnTiEtAA4AJjIjCOINLDAyUgyWpyHzwFSNlS0Oba K6zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372537; x=1793977337; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hYpLatjn7L7tJVWqUCfxO36SpgeZ0qU1W1CEFD5YpEs=; b=ZvIVrdhlpoHBqoTRlDNM6c5GhYzOdZjEyrH4UllVY/jRm1lmh84D6s5qRD23VOy229 qXB1kztNrozUa/1VsyF+Nj/NS6RaXwIr4c7sRtSn1TSxNBz5GVAp2wtHJLHHyxS95Cow x8Y76skaB3EqfkFU/0bdax4sbXqwrLdd1Iy+C0Q0qkg2c55nMofR+AEvIc+nQgY9go7q n616pCxl+kLq+1JRUf/1AVyAtTinKzYhfA9zFtB2Bt63DSnjpcH0+nwS2mZuFz4k3O0A +pZnQl+T4nC+O61Br27K5XE27N7kKrrL/mPtYVNRe7l3I3b1KC9l5ATbQx8leaeQ96b1 vW0w== X-Gm-Message-State: AFq9FYLpDdUBvEDlzVTJq4Cr6QjxN6F5ktNNCtQ7CRDuEVcXsKAYzdY6 g655pu0FPKEsvPLsGtegHnAhuqGiDlTUGT47q92b2emHbSXrdyvKr8iId+UH3OgTyeaZfpCOlPy jNEFqDQF1nXSVzKbC/sCQa0CqQ0hWv8dseGC7hjiR20A+/0I0Y5fy211LixMIZdmX9zzS X-Gm-Gg: AYBFou1t7HEm7zoy1WesiSRGr0psANF3WO1BC9zbjo9381Qur2xD/KOQggFevkSEcLH wJkTTpfqImY9vZ8m0u1tNW403ydRnDcG5VmXi5LqpIvpK9SbW3W8IcaboW+qoZpRayI/kTjBt1x sguzHuTLRXeZzE7YIwxRl0p2XfVzZZkV16KmO6a94DU9Mq/mGkcbRQTlKQi7DDqWAi4XXu+tHPj 4Beshes9X9d6Tbl50D7zosyMq661xj71jUZiRKp2U01jaE6+NujD9dOC623x7cNpsLzZ2y8QlSr YD5DWrRSTAniLYwHPjjVHsHrjyt3qbzwBkGJqndx1KeNF5YIwBx549Nk5RfFXu6bO8FShyhHcBl noZ/WQJmV+lVHcyLCw04X/Hp7ZGG5dzhEfJLf82NSNq0N70LRfG3OTH2kzVlluLATbD/tA+D1zb XRgyw8gKXEbAj0lZbvdRUR88Y/AFBRyA== X-Received: by 2002:a05:6102:6047:b0:7bf:6218:bc59 with SMTP id ada2fe7eead31-7d072d4aa8bmr1187058137.32.1793372536143; Fri, 30 Oct 2026 08:02:16 -0700 (PDT) X-Received: by 2002:a05:6102:6047:b0:7bf:6218:bc59 with SMTP id ada2fe7eead31-7d072d4aa8bmr1186976137.32.1793372534955; Fri, 30 Oct 2026 08:02:14 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 01/31] tests/tcg/mips: Group DSP acc tests Date: Fri, 30 Oct 2026 16:01:31 +0100 Message-ID: <20261030150202.61556-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXzdVS6oh1umA3 c30fcsl9gbAcb6GUw6CBLbeKlwQz5tco3jZHu6enbRxRjrr5BzTE4s+WV7d+cJgH2E8KKhQH7aG fbu/I38NcHCrDPPtGywjoE2whE0rxT25U2Mn3bbY6ZcKVd3T4JWyWUfDc/ZqIg3vLq/rGB7qBkJ X45R3TP5hUw8yavzJLRMVJW+d5xq59w/MWOUy9jt+EvAX1YNyZJi6t9nOaaYb7dXvG/gVVRhySQ Zl0oNiTLPUG6QtbFWIXpNwjVMxhEq0SCL1eKayqDdHdCCfjBmJf5rFXNNfOCk4/lI+jIXw9pxjU PJamhNus1xkPsFAISWT1QC44imcKnYZQWmLokA4iRtVWc0TNQWAEy+Dh8Mtp2EOhwmmDmOPWDiT MEeL5Xrd/oclNd75kiqJqmCEO96sNIRP5AGfWefWlyOuvRJ2STlfNHEpgo+yTBnitBZXz6icrgQ JfVvqADYX7FbibHB1aA== X-Proofpoint-GUID: 65x5fHGnfBYTZzlPBFIeHezR29eKKxIw X-Proofpoint-ORIG-GUID: 65x5fHGnfBYTZzlPBFIeHezR29eKKxIw X-Authority-Analysis: v=2.4 cv=IumL47/g c=1 sm=1 tr=0 ts=6ae4b179 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=kzXELmrAYARPUxPIdzUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXxHkRWkabqLqZ 1x2S9VXqd9N/Z4hHbXftRUktSHm+lEiRz8XoASXZ+c10vuMRMUC03SDDjm0DC0FClvHrLcIb2Ty RFQ86u6D57cYKFqdWqZSY9O+gTpRr88= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372580899158501 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 | 108 ++++++++++++++++++++++ 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, 135 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..fa5b1c2e7abd --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_acc.c @@ -0,0 +1,108 @@ +/* + * 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) +{ + 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:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372579; cv=none; d=zohomail.com; s=zohoarc; b=KBDS7w3fB5b0m/9O4x+z77XKIReSpuQLP6Mx4/YKGf7JizgJQ3PUWqajBFolp4u6RFDoYXrmxmaP5yzKgxNrSEMe7EbKpeskEOGaJmIJ8hDOiL9Tj7ehnIkpBczcYJt2Igs0xnW64kZqCN9Hw438lTLhtgkMxal4l8qH+V57uLk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372579; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=FjEO4La4/4Chfq4BT+QGh+fqYIFXDpX7p3xI4AN3B/0=; b=n24V3ZXzDp8btNd+PqkcGTFnZaY3A4cLByG7bLN8Kcjxxc5j0AcUUy1JSvm6/ldZg33sFh8tFEE0s6KRUK9X3Lu+nqdDUP4Wr0TEIYutVoYTlI9ZJziV6TwueyWItshbE4ez3BjW1aNU+ZqoNuTYvYzHS0FicMR7SmjLN54PgfM= 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 1793372579898703.2035998811717; Fri, 30 Oct 2026 08:02:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo7i-00079a-HH; Fri, 30 Oct 2026 11:02: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 1xMo7h-00079N-2c for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:29 -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 1xMo7e-00076u-D3 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:28 -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 69UER8Nw3552208 for ; Fri, 30 Oct 2026 15:02:25 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 4hme6qkjyx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:02:24 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-980b637ed69so111476241.1 for ; Fri, 30 Oct 2026 08:02: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 5b1f17b1804b1-4aa813d2640sm140420025e9.6.2026.10.30.08.02.20 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= FjEO4La4/4Chfq4BT+QGh+fqYIFXDpX7p3xI4AN3B/0=; b=LqteJMc9lsAZHwTw UOsSZ56OwBRKSTGIXO6dtASEI0FcImfYZI23vW3dw11riUMqXtFYLgsQCdz4YIGL UwQh4HxpcWC0aRx+Mvh6GG/4QwOjR3dlbSx5bL3vJ7Qhue3gRqEJHA/rSF6Y1L/5 WCY2sllKn06SB0uI4Y+K+VAUM2TXaV5F/tQg2K1yCi3gWouKEmL4IGLMZodDGt3x VFop1fmH4e6vfjlJtfP1kMM5DrPULJQIjh3JMW2qRNv6tWAZAXvBSw/Z/vnb0CyS VAfC7IN3mOrOYZ94FaYO1TXvmumcqIjrrxfUIozjFeC5UrJWIVo3C30MbzieUlAy 1gdDOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372544; x=1793977344; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FjEO4La4/4Chfq4BT+QGh+fqYIFXDpX7p3xI4AN3B/0=; b=NuhLuJ/TjE7+nQWrb6MiZz87mqmwwMN82h+7RAE9HTxgYuKQI/sHE24eG7JQ0/3Jnv XccYOiqGn738jDJhwuAKhIZW/MDfcFJZDAGa/Zxpr2Ww029CVOqa+fzW8o6n4LoUyGvp iG9ndFeBB6mGC8Y6I+HLnnCts4S8aB54COcwqA7Ia+a05bJX/t/DF1ciaTcSNSuGe0WS Ui+TUNul5/eoD9PUtUChpODi5TUqFgWu5gs+/LY7Eh4vcrjW3c7G0STQ+SzSpdQZDRGl VBqwdKRI0u75MdYY0aGEV1moXSr7b24O5LIkJhq5KlaiLGdvejpA6KhdrQGaSmuhnvT3 Ngwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372544; x=1793977344; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FjEO4La4/4Chfq4BT+QGh+fqYIFXDpX7p3xI4AN3B/0=; b=JiNBSU/WBjL4IkRu/W0HnRaxjZnppN5+k4w+xUvPe5m9hep4hvdwt6ZhNyCJpdcWkB imbIpytk5b7os+6BSmyW8i62F2BHRVyi19zPFDyzBE/cm5BhTHuLXaTChhQZPumlER8W 7svPOjIsQRv7mg/yC3sEjlYPOGD2rmwoTsgfXfmFNvm8FJ4vLW3/GqdyErYtK101lFy4 QhZbKmOk6Ubd5u8xE5NgFanamNi3wmK1h8hlXbpeY/CYdABBDD10RAL0cYQ8qkOZXGUa jiF4IOnRP1jjo2vyBkvXc1A+chKJAQNizPZvlum6KZIjEjGhSzfWyDOJA/DW7BsPDffH 2a2g== X-Gm-Message-State: AFq9FYKSJlbCskN/E9CampX/o1Dk36IWG9j2KqJ0B/utHfpwbmec3mA3 8MapnznFKk9TuXJW8L2xeAr35lkHigLYJJ6VZFicmCtqzYffic50SRygW3x/M1DyBbaOGpdPgVk UOlYEOfJJC7dVA2fNWwFNqyk52Nh46Mr4il04aUBJ3ipHUREpRLQuciT0xh/PtgFqaecS X-Gm-Gg: AYBFou25Qa1G9nvkmqhy92b8WwNYAux2nfnTP+gTbOWEa3DxYxtocyWjjDqZxS72tM9 AZWWjZr+6jFou2maEb95pig52yAniSRew2swn/aBTCIaCYwgery3qL3Qgci+caBDy4+bfrEUSJr JkXa8Ef9n6Ma4WTCJDLILjKA3D2M2LIfki2Q+JTV0g3e1IgglPFF9iJ4TChaVaOiVZf5cxY362E qiaz8+NZp+D8D2hil/J32jpcKh9WHavFKaBFQPlmZPQuEt8mEODGxha58PQrq30eI5QEIsqqp/z AONUVTP/NB5D8mgbee/6HpxcIvF5dwSQZeSLuoACBjtzPTKyMXLx9jHYvFvhXBq5sh3eN0kz6Fa v2Q3sdkbHSLKLKccXk/VGjWDymf7NlohH/991mHwIfTuuo2bhJd0MoF2e+Y0GV8nk81pmNymvlU KYsl1Gg9FgRWsNYxNdxhguQpS/N1qRig== X-Received: by 2002:a05:6102:a4d:b0:7ce:6288:eb0a with SMTP id ada2fe7eead31-7d0725b617bmr1207813137.18.1793372543361; Fri, 30 Oct 2026 08:02:23 -0700 (PDT) X-Received: by 2002:a05:6102:a4d:b0:7ce:6288:eb0a with SMTP id ada2fe7eead31-7d0725b617bmr1207664137.18.1793372542131; Fri, 30 Oct 2026 08:02:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/31] tests/tcg/mips: Group DSP arith tests Date: Fri, 30 Oct 2026 16:01:32 +0100 Message-ID: <20261030150202.61556-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: wkKYFRb73aZFI_V1Q4-EPht3SPeQWF5L X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX+Iq3+utDebZ0 QZvEE4xX7xbE9iIk7sOUfFD1kIwc9/dkHmV68kuseYtk+pU04z8AgeL+cPRHrV4dvUEyaZb3211 C8LDdmhCjITCU03syYF4aqYmp3fRnu8= X-Authority-Analysis: v=2.4 cv=DfSCOftW c=1 sm=1 tr=0 ts=6ae4b180 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=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=QcVZmDX5zYVA5dVMsrUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-GUID: wkKYFRb73aZFI_V1Q4-EPht3SPeQWF5L X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX1qO/p2QnBZTL bUaXQCxH6bwbkR/WM/x4VUB4+sjhr1iEzeRho8My5VdRGRYEuZtN7+qj0VN/OLHJdAJ1g27D3MQ lmuvZ57KuanANpr2LWmTLC9K+ZvTKOoSZEy+bWyjYlBFkC6oi3SzQjIkOqXwS+qMlJ5FZ9YuDsR DucubDdDcEINQnTPJsY6MDoI464fEZBRPXswbiDxsCB7YIFytNyo9E3zF1TcGGqxOymykmvD6YP 4OryjPRcEdSudfHiOB1Rrzha8HIRXX/0QjePAQl9TSq20o/diIzP/BO0JiOcIIjTnvc63FExj8X nDZZM74fE/mWjsHpi6Yh4D7zR0f7HWvG3m4ZEwiGX7BzOhbEQIlaXxG2+TV+0C+ENiBJFLCnQra r1g8JUSJ0qobHlJLOy7E65bOwCWeIP4qkQka9N4U+04JFRrj579p6WWhfpqMCIU+HBsSxUO1Gem ShufZYbSfvHgfvql7SA== 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 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372580899158500 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 | 178 ++++++++++++++++++++++ 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, 179 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..df5b5eaedc31 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_arith.c @@ -0,0 +1,178 @@ +/* + * 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) +{ + 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:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372580; cv=none; d=zohomail.com; s=zohoarc; b=Fn+wwAS111LtdN2KBmOmLB9qXXvPVQ6+0BHMpxHUwCtMopDYv+D3L1sJaAfjlOmGwxCHVf9gCWg716LkpOUGR3WhTuiMYJIBI8RaW6Qp1oPHcuHxQB/lEgx+ZEBuITHR1koPUvnNvSRQUqkAIRCwAgOQh9POhv6o9gN2m6vCRMY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372580; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=3BOiSu4vlk2F6kRbMbvOSyuAde8P5K4yfc2fmbZWTw4=; b=UJeAsAcaPClfdZFEI6a8OYjPCKBxx/Qo6gxKrmHrSzZEZaWciiJ8XB1nbjtdx66LVP3S6m1q8FIxuuAqaTqJ6qokwsmpPzNt98tUmBM1qRYws6DOrWi5mvjDh9I84x11BCW/mUbaQAHeAv1fj9MXfnK5Xs+gKUrypFCRzvTlRj8= 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 1793372579852245.6504550621804; Fri, 30 Oct 2026 08:02:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo7p-0007AD-2x; Fri, 30 Oct 2026 11:02: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 1xMo7n-00079y-Dt for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:35 -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 1xMo7l-00077D-Bs for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02: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 69UERJaf378768 for ; Fri, 30 Oct 2026 15:02:32 GMT Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme753mcu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:02:31 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5ec62c05c25so1292483e0c.1 for ; Fri, 30 Oct 2026 08:02: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 ffacd0b85a97d-48e71a4d4f9sm3751311f8f.2.2026.10.30.08.02.28 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 3BOiSu4vlk2F6kRbMbvOSyuAde8P5K4yfc2fmbZWTw4=; b=AngkBqWvbGeAse/A oh1knXXvwF8P62gZyMMFTxBtnR1SHp8KPki7NzXeVIqYf7X1oqLdOn/DoU97NlxJ sgUy7vHXx6SNPIdxtEy/VuFlWNadh0pX+cGMJX/eIhKUqrSU7HaJaq143tVhXXaz IoNI7bT23r/8MoKqgjrv9K1B8oPIudoWS1r36dKZXPxCTBZPbJzU5d2pRhEB9G3q I/i7D1mpmixJbfNknX4UZcROd4PdTlIlB1qEURpESOH5hH8pTI9wzd7U1t13jR1M zsrxW/NWES8HiFyjfvuNfPaFisCruzjInYkR0Hfa0WvW97dfFuOM0HnK/yMYL9Xm WpSgSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372551; x=1793977351; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3BOiSu4vlk2F6kRbMbvOSyuAde8P5K4yfc2fmbZWTw4=; b=Ti/dsM3VqV1tACUT+ThL3hhWzMqfmJ3bJJNWgX0cYjviplIM7LcCEuQ8MNP2Ks7Nvg YaVsNyPzlKyCya9fSPnv8ZsQPL/wTRMDEHoBZEU1v+R09zRt+aa7ar8msCg0R+mC/mTm rVqbp9T2o5J0QHtZSV6jAbTJotjkx3M0fF5aeZhqlzFZFafOVQBwD/vcYRSCkcF6YrQ3 nUctzCXZuZzHQYLIquTtDVY3Np2g/HxT/x1BRSG7+1ZvSVHyqb4CwYbDYNyFoFYApOe1 2bmyclDMIUgvqWmp5027g5lJEyJtNkQkZSuRYeD7auxXIV2ur+4Xps9anHq/TiHY4lk3 Sz+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372551; x=1793977351; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3BOiSu4vlk2F6kRbMbvOSyuAde8P5K4yfc2fmbZWTw4=; b=EuEZ7aHb+2PMYXn1DyX0QQWZHvxgsepT14PhOSFgl/0K+y4UbyXkaoBCF9Fy3MrHnb n11pgX6Wz2p6g5zfCsiY2KVmv5qwjNcUjzVVeso72lpC5EVWxmV1z93lurZnZw8/O+gj T5vJrcQHz+OlsXMxxdA6ob6iG/sX7nNEADq1Sp2OKTbU57c5xrkv0sS1MSsNh+Kfibrf IutLQ8cOr7iRh3vMNsqDLQ5JW6OUuf+oeIO/F5KHHZo2H2ncHAzkF31uxq1yylwBDHVc 8Xgfixbm8zVl8njO4rME2thS8oo8iALKf6wZuNrxrhB30JGpiyL2NWKYe1NE7aRhC0ro eRbA== X-Gm-Message-State: AFq9FYI15y+xbT/pJRYiJUHB6ni9Amg1/Exm2lrHbnvQ7B5+nz7pS5Y5 e3aFLUx/M/5Pq4xclp/CVvTImDrr/ktlO1P51yJfF4aFqraoA6w9EHOABGNZ2/nujvHwCfNGHyN 9O0iSoq5rw/3Eh84ZFlEZOzVVsOjzNB2T2Lfooah8gXzH05NTFQvIn2SUzoDWmRmajrpx X-Gm-Gg: AYBFou2jpFlfcEVsy7L0yJHpvoLOJq72LFrdqaKOCGGYYziByoCJmTGtyqLpsawL/Y4 +Z49otEhdLeGL2WVDom0BQewvG4tCy3Q3XAh2LovCD4+Xa1DX4q681U0Y4646mV7u1bRcwirnWA Urwnbm/Q27jUVriIhyTc1Ca5KAolJOI6K81E4IiTamxaFlUh0nP0H+lRmczhzk2Mhwi81wU/uMF utF1wBOA2vWrPUDxwPsnBNgSYkZGZXkC/+/Ncx3ciJJEkJegfwMHvpUs2wIPOICIViI64TBb5ly kkpkOephVmHUj+hyUh9Nw0CXTbeuK72dKobv405xRW9hEdtxBbiONpGxdm5cHSeuozRmfWbV2NE NksEM3GOhQoiZWVyjbyCOLCYzMBkqaumBjd3J625aghjrxjQdciT8gv3JS3HnAYUMcsDvCE2ShX pPn6F5y0kCV4hWnRh1ROO9GbueboVqMw== X-Received: by 2002:ac5:c984:0:b0:5d4:3376:f42b with SMTP id 71dfb90a1353d-5ec586bb37dmr1615900e0c.4.1793372550371; Fri, 30 Oct 2026 08:02:30 -0700 (PDT) X-Received: by 2002:ac5:c984:0:b0:5d4:3376:f42b with SMTP id 71dfb90a1353d-5ec586bb37dmr1615838e0c.4.1793372549593; Fri, 30 Oct 2026 08:02:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 03/31] tests/tcg/mips: Group DSP cmp tests Date: Fri, 30 Oct 2026 16:01:33 +0100 Message-ID: <20261030150202.61556-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 4bxzsLKtfH3PecrpxgXuvJ_507Rd-5dR X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX4gegOBoeb9oG NgHyfuTbn2Czwp08febmY1zoe1JywPikTUWk7is1MAbiPs7XXlV3q/3GmAv1bzZyhAf6jfxUDfG 5NZ7vEIgxGoFDHFWSpLfjNUUzFtorUkP9aIwBds7HG61nKIZDcSSAPkRdTUrN27QbdSZzBcMHqM nb4RTjcJFXknYLZbqN6YE1TT7z94poBO2zaP8ypr2BeBpkIUCnpj4759NcFFcJeJ8m9MwFwbmjS hz4/PySTrYRqBtfSl7B7r0yW0jE7m0i7bIEBYwl9+AZY3CNKD/7W5hLYGKvVm3sQhE4olKN2AuO 4q9eNJaR0MUm2Ex/uDpL/vrm85o27nHz/K+cxnWhEoa0sbq/Rhftozthyv77WVaZWgzp8JGBZte 9fpOCnfAvJeFDv6Wt7d5Swz5kNdPMGMwelC6aN8MF3qHCp32hpASxdv7u04T2kxaFoKEePHAdfO kypruluvCSloPG+KpzA== X-Proofpoint-ORIG-GUID: 4bxzsLKtfH3PecrpxgXuvJ_507Rd-5dR X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX5upWVPG8u/LL xdmxzXPYG3GOdZKfEaCS62hNis8eFQR2YbkiLKDVd5AGeRkV+RWpvWpRFOxnRlG29tnVJCLTVDd MtbnZAZWwBtfOVRcwW/A2EAD8h+iJ8w= X-Authority-Analysis: v=2.4 cv=KdtHIgYD c=1 sm=1 tr=0 ts=6ae4b187 cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==: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=vmgOmaN-Xu0dpDh8OwbV:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372580896158500 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 | 83 +++++++++++++++++++++ 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, 84 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..aa63737e74ae --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_cmp.c @@ -0,0 +1,83 @@ +/* + * 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) +{ + 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:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372600; cv=none; d=zohomail.com; s=zohoarc; b=mxA5b7okDY7Z44VnEJTW54x0Fgmd61YiwDA1wAi3K5XImnajBEgdv6U2s4rGXKzB+erdDW3/Ag1rzi0TpbuW/eJw7hTEeG4biRkuZ1ZK3LoVldiVcan68LTfyN+4n6Fk579kNN0Rh1VQ0e5th72iiOR+mauVR313y4qyOobwvCE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372600; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Z63GwOrdI4x+GXU7UyHKS586C1xC/1OcZnKuijV3FEM=; b=MrXvaTJ5AB/BN3Q43SLfXXNh/12qhhnCHLPB/HMs1CkbpS4k6PVXGvHMf8Sv2Iyp8P/KhU3FAPY20rmxbExrqnGLoPk5qmO2Gu/rJz5msIUROpxXCI+Fbth2f63k1eQjqo32QLAIIcrVGfUSV/lgxoKOQzpZ1Y5X05T0P9Cu2+U= 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 1793372600613489.99725553447195; Fri, 30 Oct 2026 08:03:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo83-0007Px-8Q; Fri, 30 Oct 2026 11:02:51 -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 1xMo80-0007Jy-EK for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:48 -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 1xMo7y-00077n-EW for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:48 -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 69UERBq52494580 for ; Fri, 30 Oct 2026 15:02:45 GMT Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6p3p9x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:02:45 +0000 (GMT) Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-5eabb3a1bd8so895895e0c.0 for ; Fri, 30 Oct 2026 08:02:45 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71b9c4f4sm3655393f8f.48.2026.10.30.08.02.36 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Z63GwOrdI4x+GXU7UyHKS586C1xC/1OcZnKuijV3FEM=; b=SfSybaHO5VAgAOjR MsBaffwMPEFjOuG5f+heHp2kddkq/g5Aa7b5NbfS/QX5897rvbnfnWf7I2oOyCVr lMvu2DJlpYWkXxb5/lV87SvTHLDiLC1aD+2cXmtUOZXhS9UuGeJCTrxnLfMy0Qub XmybmlMpb+bjNsLIFRXC9vVJN1hv4iHPN4e+P+EIqFkI/aLhQKSyKHEaqOJifcGe lzEV/meNxeW41VxlyMd5MceY4JTsCmxhk30Xm9XxtL3BV7UHXAtSgMOeCTRrSO3m VFpKK5LxukzRQMsOihn5l43OivK/Jkg1aMReZGGfsZjniaqzHHBfep0kLLTgiHZ9 Hc9l+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372564; x=1793977364; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Z63GwOrdI4x+GXU7UyHKS586C1xC/1OcZnKuijV3FEM=; b=goTIzUpbDWk/iczIrBxHTvRH9i3p65ObaQpb1yinwHbA2AWtvxB8dumtbFAfmUNj0M HBp8SJrUykWHg7ijUvlOkdlZ0Zjr93Nfo8/ZC7bzTfnbzgDAoqY3ECWWCEbd3+rFDJdE WJl6G9JDxtZaOLXD9i4LobEO3UtMGdQi7hLahKswgzkOt4thZLCbagrsqOMT4+5PwU6h k2V833wJ38outQ/NPIqcxRAPf+8HzhdIWTxlGxTnlirP6DzdXcdc3rV3zCvxMARfvbUM 5awVgBXWglwW4L4OkebmaiFJo5SLJGf1ciOVn69yGqqT1pQpH5UbWpExqkYVCkApltgf 0xSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372564; x=1793977364; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Z63GwOrdI4x+GXU7UyHKS586C1xC/1OcZnKuijV3FEM=; b=IbxufkhiY/dTHTpYo1hWaj3FUZc+Lrjind7gZO+tjnW0evR5VM6TQHRg0+IeuyQTPW SMshJJVpZkdRaEGNaI/+O4IFALQl+L+zECTDQJp0nrNo/2OCpvwipaNpQZMuiqc9U64V SpgOITcLKFn02XvwbLdf3Iz2WV53ReUbyp2gMjnx0oAXUNW6ZvgQ5/CRkiE6Er64FAbr KDad1VSHCBBAznXe3FysPUaJW1DDeJ4gS4HamTrbObjcY4zeIlryBJ+fC4srydj88wE5 2LqjkYnhTChq+3tzosJR8pNY7b7PsdVIMO82ZG6lnbxaYOpHfzB2l/ST7IEYeYiAXK9L 5A5Q== X-Gm-Message-State: AFq9FYIoVx5BERK7/nS2OW1wkhuvfIPjzxlv4tlrlxr/Oqj8PwB+7o4L a42tulU9TZd1tMyXuREvHrxS4haAthCA3QlEsDrPPcx9x9QA8vMG5DRJ69Zzc8xnwUYRyojhxCn e3Owbq4F5LT6u303SluMyMN+r93uGCHXX2AiNDOKknpvuEOwAg2PRyCSn4XWYFlkMxERv X-Gm-Gg: AYBFou3/EI7k7Nm/mF1ItkCe1hIfUaRGIjpb+NVV846g6wNBesuWX92LwXg0vdutZgx wUvH3BmWgPACY1NTGKqdxonJcJuXth483MgX3WoCcLFiYK0CdB2meKP7rEHnxz3gmocwGgsNV8p bELFs9iQOLeibUmRZndEplPcUhn4OtLMDkekEOLbqzYSn1BtEmw8xMbRo+esaOctaN29S2mbZX2 QF4fkBQaT2T1vpQdwENaFQFjXQQ6CBDGpUkv6L3MhJK6PQ+aUUxNbyd3l33TGnF+kE+EIKyPNeQ MCjniYXnB2i6879VLQ3r+1hZzdNiDzS8KWX0PDy3+/ej9txv+h/Z5bltsIcWVKdug9Dt0ZoSV13 qv04esWMbG5DGG/saqeNOr3Cd8tQVYQdHuUIWdvbKX//WARjjvQXp6chKszudfD4dMem3mfBrLO SaNjtaaBmRZ7/HeKAKUgw4OjFZ+GtiMQ== X-Received: by 2002:a05:6122:e46c:b0:5e9:6d96:a598 with SMTP id 71dfb90a1353d-5ec68953084mr1447294e0c.6.1793372563829; Fri, 30 Oct 2026 08:02:43 -0700 (PDT) X-Received: by 2002:a05:6122:e46c:b0:5e9:6d96:a598 with SMTP id 71dfb90a1353d-5ec68953084mr1447205e0c.6.1793372562770; Fri, 30 Oct 2026 08:02:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 04/31] tests/tcg/mips: Group DSP ctrl tests Date: Fri, 30 Oct 2026 16:01:34 +0100 Message-ID: <20261030150202.61556-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX0JlyNNMQu76T ez1LmevNRumQR0hOPO7oePly68cGTT+AoHNbH0+T3eWtLP/f3Bzqsbz7u9X181LJzv5j2i8KR68 tuysvj2o5FsgZHsV8Y7sYwerGpEFdMXW3bewormnjU3PcXTUF5v33VDxndDM0ATydKWQEJ1kK74 w6ofVVsjg82aKPv7pStyBpYYcUKoLAs4UzgCptLy57Rriuxft/8/oV9wxOa0KDweErl/+MqB32L aV5pqzLjAgcakM+WZ9qbnMTvcFLVkhvxLRCul17q7qlfVE4nzBgAuhb6ds+uFTpXeDR3FeBo85B eqoqUKO68ItgpOx0/GjgjP2yDRAf+uefLRP/vccBjCossXT5FnRWk2ASNnvii7sqMTK1EWEOmuo wnQwaeluDOWPoTpfB9x0IP997ET2hbB89wCObssVZPoMRZ58eZwberwK0n8sweL6fC0TDBL2+b2 Z2JN94nW/hU45j05QQA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX2AqwhR3juv7K m01Zo6ZFY5vmfBmrkw5eG3g7o8WBAWUzvfWEBU4UImqYABkVVD6Yd7oYT7nfFi7R1khGCZky+aT AIOXyScPnVc4Avf7Y0Hn6imjYbAhWVU= X-Proofpoint-ORIG-GUID: YSqANjIUBlLLAA7C3f8c3MdIL7tkCb0g X-Proofpoint-GUID: YSqANjIUBlLLAA7C3f8c3MdIL7tkCb0g X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4b195 cx=c_pps a=1Os3MKEOqt8YzSjcPV0cFA==: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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=hhpmQAJR8DioWGSBphRh:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372601154158500 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 | 43 +++++++++++++++++++++++++ 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, 44 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..4f7c648d5472 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_ctrl.c @@ -0,0 +1,43 @@ +/* + * 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) +{ + 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:26:34 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1793372598; cv=none; d=zohomail.com; s=zohoarc; b=ewDsvxXnh+ZCXfv9T1DPSuGtwmv+LioJkYpn8EblclYosALwqp6/Vy39DpV6kLupfve51r8p0g4bGOZwpASWEw7zfF9JjDkF5WxsazQjBymBwGZ9mcMNlFEupLHhTdCloqQs1W8pgDooNg6MCGQ6nCpEvxyY9/qZZxyNAfDHFR8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372598; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Y6iUJBzjLMb142rUcRxI2nGbYdvciJWZ6b2O6Rm7Fi4=; b=P8hjZImleEluDyEjebkBPeX3/jmGrCSMRhpWBwFw7MlhiwP2vjxR+AKrBV5R9D9jLbjWlumGtuoFmrIJQYK5KzeEL4T24mTAlxEx65a7WO7zYbvH15rOL3DffBHjWu7Mfj4bDlGPglp+B2gZVMb0oIp9KFHX4Kq4XvjLUbL5VRA= 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 1793372598373469.10020241562313; Fri, 30 Oct 2026 08:03:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8N-0007jY-PO; Fri, 30 Oct 2026 11:03:12 -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 1xMo8A-0007Yw-11 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:59 -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 1xMo85-00078n-UZ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:02:56 -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 69UERjhd3207537 for ; Fri, 30 Oct 2026 15:02:52 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 4hme6qkmh0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:02:52 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-988bea8fed6so618401241.2 for ; Fri, 30 Oct 2026 08:02:52 -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-4abf368bff7sm67360455e9.2.2026.10.30.08.02.49 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Y6iUJBzjLMb142rUcRxI2nGbYdvciJWZ6b2O6Rm7Fi4=; b=UwQWSCyS86tFsjec VNbNtpezWC6D6bHlYKERcqLn82EchVpCAd36OeW3RrqpI/plancAU8WCab4D/J8J avfTAe2TaVlQWVCWjWWixgzzo04rh3PBvBaH7ZxzPh0/46Fv6NkXnd3CCeaJPjii oAw2zFgM8qrMBKK9lLqpdpymnxvweHdWne2yv2wb6A6hh4q7xvaWJN8QKRuyxxus yTmjKNSg0gHmGF0xWpT0E0XQYGYip+GU33Cs99HM+J00UCF8Tw2tTojA7hjIR63R ZwoO0cOxpMoVShf7JYDwqdxievRQuJ0oWPIcqouNmpHbXXw/BIENpgd9a/AW9Nkl rGFI6g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372572; x=1793977372; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Y6iUJBzjLMb142rUcRxI2nGbYdvciJWZ6b2O6Rm7Fi4=; b=H0LcIV5sj/Z6KGueEjUFHjVlAew5rBG0q/U6cAzu8LHNMFk3PuALvzfzkTeTe60TXN CIdbbt8/KyzrTkvoIdMkiM7iSh5fx3YQZz7gX1LhkVQqkFkx39eLdIoPcprvh8gfoO/x A1eH6QITB3qY9oduS7ewceAfSxoXxLWdV040407ashlaIjZGONLpMsdphKY0uAzw6nAt w5IEXLswXeKtMsfQ6cqWuEzVhUT/IyZi8a683wcIywr325c5AY5Qr7hQfrJE8Vhj/R42 U5OcgcaYppUfpGU9lgbZlVfFymB1ZAgNlNSVqzKfttCKm5gATNfOXhZKSXJAJjVq3a2f bqoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372572; x=1793977372; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Y6iUJBzjLMb142rUcRxI2nGbYdvciJWZ6b2O6Rm7Fi4=; b=tYpi13ahQmydG2r2Vo0gE2HLioMZYHH4pth07Fi/TSWVUUG2DA340U6BfFXD6q5HGN ZyRnN2e6d2MuEKsWsNQIZJR8ejpzaSIiWuEJHs8Cf1jd3+kMKPPDLlZr6KccpcLyXgBO CW0ZjmhoqQLFQ0hSMXYBTKHufo0YpfQffqa/0w3Jl3O9UJBBEAbO2rZxPssI/ar188Y+ r/SpNa04wi4p2HQhErhPYkqYfDEeOWKc+G8CeQxovfII1RLTzvloQTHBJg41n0NmAEzR EelK7E8lVysxo0uuft548P3j+kjS6OB0BM2a/RUfqPu8AdpVl7SgJR9v5ZMQ3ku1Zgjn GJBw== X-Gm-Message-State: AFq9FYIy6hRHbrdE3b3AIuKN1c5gENQGbNq4nL5oVIi388ePsV1MDssZ rwFouPiI5D8hhmIYC8+VaStb1St0O9EPY5wq66gevNDX9ODLIAzPcO3ASMh7+/bNVb/eu2vdxxY 7pZlMtBg7P/2zndaoK8zkxf6dODCIZWL3RyoD1qZiPtvAFyIDIL36Q4q91jTUfEfWTT5Y X-Gm-Gg: AYBFou1iN+9H69PuvZrEdO6be9Zfjcm9E1Y8aVV/DtU+d2bdeCB9FsURca7Lz9Kz0CH jDiATUZ0f1k9XWy/mp4mZlmQx7QkoqO1om8dgglONrXCRg8U6h+hnHtd8uA6Bz5L1Az63gUraaE 2tAc7C6hpYqV/JPzRQx6EMFhR7d++ON+AkeFbqV0eawvwvhl9Py2Z6gT5HbvlUwETxX/4+gFlCS 4BDVwXdca10yarzlSuQXHfCamnTitZ3sMa7QqMNK908JDkD33N9T42Ac7SqXYlD2FmttSh9Knq0 vFh6eX+DFcSJKQGsX4sOGS7UuyTvJ1isjdDOtIjMrTupMp+zOBB6czMkNkp7Ep00kzAlMci2KmL Lm2ShJqbMzIQRLf1GboOe7gsuo/Is3SDCaWJTFETZN61VN2CUKexlCdSyWBZGtEjuqnn7jlfCx3 g7vFxQQ2HS9Wb/JaEsEn8UrYq+A4HA0A== X-Received: by 2002:a05:6102:fa0:b0:7cb:70ed:ff90 with SMTP id ada2fe7eead31-7d072725679mr1323794137.26.1793372571439; Fri, 30 Oct 2026 08:02:51 -0700 (PDT) X-Received: by 2002:a05:6102:fa0:b0:7cb:70ed:ff90 with SMTP id ada2fe7eead31-7d072725679mr1323662137.26.1793372570272; Fri, 30 Oct 2026 08:02:50 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 05/31] tests/tcg/mips: Group DSP dot tests Date: Fri, 30 Oct 2026 16:01:35 +0100 Message-ID: <20261030150202.61556-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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=6ae4b19c 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=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=Ss58A6hLZCuk7yZQP4AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-:22 X-Proofpoint-ORIG-GUID: u6UNB-anSIaWM5KlRc7V5FIE6jrmjlLk X-Proofpoint-GUID: u6UNB-anSIaWM5KlRc7V5FIE6jrmjlLk X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX6GV/DODpNGb9 hMi+YZZ4kQXBHiPslJ6qhF7T8m56tQoYgwBBYGynpQgqDvDXXoGMeU7Cobw3RCJvXihuTGWhZhm pqLed5YfW1d2mHZ/71W8W0+7PewPXyTarqRUy1Lg7EzAeldycULzr+D2OJTCH4y4ht/nFJAlwdZ Cb9HrmyWFQ82qo5ns78yJg6+AvPZgmcXC6bqHr3ppHiQ8UCJxHCtyvxaDOpranK8HAXk2H+OI2L VIL9lkvHK18q6DsTTM1I/bJYWzZ32Nf6gBpZCMyt93lx2e8GoN6BdU+1YuIs/Ifz7a97uLtQSXy XJYlN8INkgFp2QoQ87wDI5lnpH2reggkTzZTYldFF1nXFLwuakexVaDMfGPkUIHgve032SZImLy F7gbxTHZb4oibylk1r/i0R61srelzXzcm4BnD/FsQoWbOBxP2nkjUcHk/xhToR6wq7Z8vw2QF/v BHUl+xWugU/D/LcoUMQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX0Ldh1TA7m6ud VmQcAD1xU+cplu56Pd+RM4PWFbmChN3MbxMoxmC7u1Vi3ImNiiPl4Slxi6MPl+lpLWmto9cik+Q VLxBrYRGo9Q34ZTBd4F8GrSG/CxmKOA= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372599063158500 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 | 153 +++++++++++++++++++ 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, 154 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..4086bcd39741 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_dot.c @@ -0,0 +1,153 @@ +/* + * 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) +{ + 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:26:35 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=1793372632; cv=none; d=zohomail.com; s=zohoarc; b=nvgUTilPM7MqdemduxOEgua9BsSHs+DFeNFJROvt1kF7MfjqM7zYHA+K0BxSuGKvPVKa+KA8Ic0CQaXEa5gRqmZLfoQPkeKKshtcgTm2Y6kA62rQsAKTj3PkYuBWyT2YNBSUUFUgDnoY5baMBTeqKfewpTbqZgMINglzJkX3i+I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372632; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=PgIGCs8t50qe1401c13AZT0hnzBuVzHPPVhO0Nzt8Ug=; b=GsF46kP2ZMm0NjDRY5b1CKy60tgv+g0sf+wte7shj7x5VoyUlEYnwGyqp7xFWGFBVhgyb1fNuCM/jzgrcuW7t8WtsknhoOLz7fwb6kTyGwQFCmUOzDFP8u2gnaJZeNM8canN56XuTKKKhiLnpkjmZQyqRhS3scXJ/SZDIc4fHBw= 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 1793372632523344.15190427116124; Fri, 30 Oct 2026 08:03:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8Q-00080A-Ce; Fri, 30 Oct 2026 11:03: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 1xMo8G-0007iU-0D for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:05 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMo8E-00079N-4t for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:03 -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 69UERG1r4141583 for ; Fri, 30 Oct 2026 15:03:01 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 4hme6qukgd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:01 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-7bf45382794so626498137.1 for ; Fri, 30 Oct 2026 08:03: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 5b1f17b1804b1-4aa813d2950sm141232675e9.8.2026.10.30.08.02.56 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PgIGCs8t50qe1401c13AZT0hnzBuVzHPPVhO0Nzt8Ug=; b=dThMzNFNXmUE5hEc zhSe8g9Q8N+YS3Bg3h68oIOBXeXA3mbPznsvv/Di0tKUdojoUTLsMKh8Ez4BhIQS uKIINnqpTIcWysfUEkKK9Dmkhgi4HG3LkaSRuOgf8/Hz6E7mdxdi4s99eoHODVYf M/BrimC5dHUAMX/Z/LPtQ9KD8ftG0dEfTRypxdcMeYcyABDnoSEZb2dxzkTQ1/UB 5k1CAFNaIkSzuqSUMHrx0pRzXGxwO/PmFOzCEGn4KPdG9FphFOoiYuQ+P/P9PJLL 9u6vFI9yJMNpOe3GGlqLfc0v8DWmyV0YyG81iKey8OJfuvofeUFE7JJyC6asJIRw maRxYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372580; x=1793977380; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PgIGCs8t50qe1401c13AZT0hnzBuVzHPPVhO0Nzt8Ug=; b=A8R8ar+y9ihRhU/a+di9+4pHdOwI6+8xZJtytOzvuXipAZUixVhEX9fa6nbzD6F1XK ZomjaDx+bOnsy/ARPONknU2dQORyeinyk66Gw2Ow5hFpYexwPwG/9g1SkOO0e02xkRP/ FC5mtkX1aS9FTyJQi3Ww0plX+Kx/4QA2GVS2B3CwYiZJlBMDh5WtLpM3eFf/fEtiGsLf o9ErMO6NzBnJKiPdN0jVqZ+DxMLFGr12h+mrMpwXGRyqbvZeNCs9NQH9U/mhsWcFDg8d THC5jSaQpE1xuUbvahmrqyZdPh70bY4zwzwwYexKyRiG/Bg4qSCGOXWJ/Nz39AosmvFs NJ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372580; x=1793977380; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PgIGCs8t50qe1401c13AZT0hnzBuVzHPPVhO0Nzt8Ug=; b=O0KdAhFizCznXosjVJ+dUnJrofqDCEmos4jpS3K2B/bitqjvQsp51ZlvVoihe4Z4et fuRwZHUiRYvDP8d5x+4aSaqC11PYsmh8lO1Afdn5gP+XGsd+O1yahZ1jdamkeH8Qt42M APptlbLA7DHUG/1sIJaID49piEn07j5QjDluaIENzJd1obu/pPf0+q7s1HW+VwT9UttY YDUmDL0Z1SAeqIjT0DIu5G90QIi4ZYtX9ZwsUWweP5fJcIRO/2b3j36pYChMMAPno1Rq UhWfmRDUVfgPqRdXgcFBIyjPea2SqnNOiOL2oxL1KHYlPP54xph3oSPw5dT+39HbjZeH eegg== X-Gm-Message-State: AFq9FYLKSy4cjgJm1BceisWzx9ThixVgw/vfor6ihmV1cXKAZiRsyCd/ WCaN1EQL27txDTp38JP2YKpgky0fRUABNPJL2YrtNgeDbleaIt/l7G2b5ABxPaNqsoLWukGeA22 8EVnOPm0hsZPpjX0ugr+Vf8pm+UjS1qVaqT+BLWTB21URwKx9KQx0FEL30jtphT62CXGw X-Gm-Gg: AYBFou0UQ7zIixfOIoPoDGTzxf4Oa852UrWkFnfY6c8S2ds3CAz0zwFGN6hRf4erE8S QeQ5h7Tw3bVXBIFv75eFH2i/SZf15AfVVFhfLsioKuS66G5/kBSAjmoTTUrjpOKxwhLbCSe0O+k KgzDXPK27cHUcvaEfIk+MGscuFLEF6QxhTzvPgz80nLN8WADTaQRDB5Aael7SevZR0WzX8lkImW F/QCIytI69IToRn10unfbXGHqIYZybgFABMqE7ahCsEUmKPqSjB4mODC3LXyXO9Z/PmzaSnVSSs gzHqPXYQA0REGdwYsymYBmn2s06r9vz9iJ9TXamoLwx4qyqjLERFb3SmnsdHkMLJc3IRjnvXy1v Tkw5cafepMxtiKTINoVdQJCAvCYNLr+985vvn+fvf8gtsiWP+jHbqdwvUd8BDkAQUYE7wTtZrry auek8QhKOcf1UC8EO6Iy3DUfqONdX4oQ== X-Received: by 2002:a05:6102:9d0:b0:7c8:448:5237 with SMTP id ada2fe7eead31-7d072722ed0mr1499103137.24.1793372579914; Fri, 30 Oct 2026 08:02:59 -0700 (PDT) X-Received: by 2002:a05:6102:9d0:b0:7c8:448:5237 with SMTP id ada2fe7eead31-7d072722ed0mr1498889137.24.1793372577671; Fri, 30 Oct 2026 08:02:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 06/31] tests/tcg/mips: Group DSP mul tests Date: Fri, 30 Oct 2026 16:01:36 +0100 Message-ID: <20261030150202.61556-7-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: yYeq6YgyaxWtCcrXp-636_3AbefFq1F7 X-Proofpoint-ORIG-GUID: yYeq6YgyaxWtCcrXp-636_3AbefFq1F7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX6pjCHpBGCl9U Sa3ElMvJT2y9dWLz37ksEnTSSCWsW7Jq3QuG4uGvQkNiGa7xR1RJE6L3TqNnQVAJaUkwYu+L/bq lz78Am0wImzovh6zyoNdGXsqggtDDFh05+Gms7eX2+evDeTy90wXzXnAf9TpFCPp0SF1yDWdGri 0wjOuoCXa4bOGUFHhbf+DAEWsz7F6g7NCJ4lX1qklpuFdSEK3JrqdNSlpdkysvwoIutKIRbjSuf wBsluWYk0WsXDuWSci6eXSEkmZQTgE1ezdsnNqNi2Pju9hIiIA7CuiYrCTuOmlSfc06zIYt/0kb vSZGeuZxsNz3hQCa5C0xzKZxV2HWjSK23Z5dRvSrTrxie1PbVglto5Og6EJorFjGYwiBXcR4ABb iWg0BE5q8s3JDxQorhsoBfj2SGUtg3ILwFF2aj7sb0tFnQsO1fC0reUrgPGi3KU4SPMYaAnB69t uLSbdC4IAK1vV79LQ0Q== X-Authority-Analysis: v=2.4 cv=dPgzC+Zb c=1 sm=1 tr=0 ts=6ae4b1a5 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=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=MrkvrxfUm_GaFPyPbecA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX5Wie0M8kIuRi MLIQNsFAz8fySvrHpSJfPlRohGCzLES+dZh7PypKbO51qAMje3KELkLZe4CHkYT/QDzJEhD3+JF wZ1DknSUxy9PjZYFUnCBzXPm8KwbrcQ= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 spamscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372633793158500 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 | 63 +++++++++++++++++++ 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, 64 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..d5ac6141cf11 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_mul.c @@ -0,0 +1,63 @@ +/* + * 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) +{ + 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:26:35 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=1793372605; cv=none; d=zohomail.com; s=zohoarc; b=DKrpqcCixTvyFEQI2n8S7nw/oNy+hP3ZKKonFJ3WiYfGUwUJY4x6YZMy2j/Md7t9IeNP3PicdiG7oAg/g8xg0cFvfc6UAjX0jBOzGFRHGQV3DtoYiuf/bVcoWCujygMTTZDrNgPrEBHj69ag98ij/shJN9LvbYqVKJhseNkgr1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372605; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=T7lYUjirXa/qDfP8rUjmpxO8QVkCJ//Ah25A5XocXvk=; b=LUB8ipIRIVggQXsvF/KRKWxNC6Xv/oZMPLQnvXxSAeeTBPMjS4b6oNotboyz99daYHhGhQUnhar9LaQGal9/rZ72z3FXWvn5O9F07J0vj1h7y0RlhGwohyDVJYv+CRibwMeJsP55l7VaNV86i78zmDzPOtiMlzuxh0LRn7g4JPI= 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 1793372605663997.7631045508889; Fri, 30 Oct 2026 08:03:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8W-0008Ik-LY; Fri, 30 Oct 2026 11:03:20 -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 1xMo8R-00087n-9W for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:15 -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 1xMo8O-0007A2-Hg for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:14 -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 69UER3xN3515272 for ; Fri, 30 Oct 2026 15:03:11 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 4hme6qkp6v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:11 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-990aa76e3daso236158241.1 for ; Fri, 30 Oct 2026 08:03:10 -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-4abeb77c132sm47179395e9.1.2026.10.30.08.03.05 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= T7lYUjirXa/qDfP8rUjmpxO8QVkCJ//Ah25A5XocXvk=; b=nk1n99uBlMAhd7sy /VYtEYcz3Qr8xxw9XIet416epwNZ/DC0olbJQkwXYB+6LnMfJ9wmbdMJEbITpu96 2LAzHwxboHzWSIbeS0IT4jkN4cfWtjpttKLQnGiZvEj+pW7Clg8LUL+1hhbx9UfR HL4CXsNZkrrjVnLvkMUXLnSlyMHWGffLp+b7+IvtuTtICiYti8Ro7ko1EJI5tuuo ec5GTtjv7YwKOzW4hYcp1j6aZN5poGPOO/fbrjmc/Q3fMNFrUAfflUbWgpEeJaGW ++97p20B2wWb3J4sOwZenA+APbXb/bDiIBj1d7v5wWdB5l4GRAjLUZH13/eJypw+ 2F8z3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372590; x=1793977390; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=T7lYUjirXa/qDfP8rUjmpxO8QVkCJ//Ah25A5XocXvk=; b=aQFGsXuiYmcgVXeK5Ps6Gf82wfktpdX1S5wLn1tNY8SLZ2mOGCf6FgakgKLJTac2qI Tv9yizWOHbEG6Uei9LcthArTdffy6jFpe10GM4GRzjKzvUWS7Zlt2b1L/yOOV4Im4z0g O3ekkBouk2idrl/dB2e/wY5KNYb6xSuhdib/efZH9sCWPB/dLCcHe0C5XeC2th7a+Clf FyQQ5IDjQ2SCH7k9kEoCYsiYEPNkFaQrNwDLW7n7qtMyf5jVjc6ktdx1QLy7c6dfPhda B16SyD80uGJCTrK9Ce4TJMv03ZzuW1LPox9LLOhOxYI5i4aHR++Zk3wqzm1Mq7sI77Lm 2/mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372590; x=1793977390; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=T7lYUjirXa/qDfP8rUjmpxO8QVkCJ//Ah25A5XocXvk=; b=az+5MmXLIlyxeK6VFVi1lTJc0Df6f4npwRt3JO2z5noqDQyN2/H+f0bychd1BxYhZJ t2Gk72+BRy4g1NaWHajq5X16s6oGBYfcjdU6ysHKIBu+4cB4C9x8nG7fLLb3EULAszsu oorAn579818viyh6SWNoO9Qu8XwConyrfJh6hWa6PNygJuT1YEKDjdoiptLRZfwoOA9J zrrP4+tp+jTLKeLKXn9JCrwhEG733h0iRai5NA3ivbH1v6Z4H53WU0GnPlSIo6br1XN1 OQ/goNSZAOYRYGErveJwzXV48JZNjy25rGNeocVimM4A/UNeQUpyIc5QMqPIbNIj8XXN tM8Q== X-Gm-Message-State: AFq9FYI8CfVryc8ojyvwyt13UDaYCNtYJQWE29UceGlTxFOP1RRsvxqD 6B0Z1kg+ucfBMZThGZJS2o9CzVjK/f8ELnSnIvUWa7Ne8lD/Ku1z06mywX6DFs7/a7znPHPc8VV +vW51sW0d/e3Yqrpz/QCFF98RZka/+D+9Rv8HjreqUdQRL6ZFHpkIp30FfCNfRTpm9t2/ X-Gm-Gg: AYBFou1GL/H2qlh8MAteiPnAe5wfNS1F6oGA09GIv6gWM6utzRUC+pEzSXtKV5D2eyl G6OpTYzLg/gIfdoY7WUPSstPXuG8MYX17lXE4jWL7QV/4PUZPiWknRmaX+ppJ40YH38eLgHfTNj xMRpA6PJYrg0btisLB2CGw/gh6OJLLbHbaiUVZxBIQdji+tejfinD9S2YdkF1BE/aEKt+r9TGS3 XnV9jcgMnSltWHrw31iyBBj3G5wdyDY/o6jvB2L7plMVriyHjfhI4bPuB1QE2XO/qJddXtvz0qB wnFmB2UNXpk50G8AUDCfFrFToh/vdRaLRUEYBkPW38l7s7O3X0Qmy29tLoLmO9CSUcGYdwm/mCP xNcAA/PEaUVY9/S3k78ICJ89kxNhAIzWyjvn/S8F775lMDFgaMJO7tLKQsx6guObT8Rr52e7WnI 53QuRkUUkwyGyGYnVs+j2dLGWFUUmM/Q== X-Received: by 2002:a05:6102:f11:b0:7cc:1192:563c with SMTP id ada2fe7eead31-7d072ca43e3mr1219429137.25.1793372589660; Fri, 30 Oct 2026 08:03:09 -0700 (PDT) X-Received: by 2002:a05:6102:f11:b0:7cc:1192:563c with SMTP id ada2fe7eead31-7d072ca43e3mr1219341137.25.1793372588637; Fri, 30 Oct 2026 08:03:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 07/31] tests/tcg/mips: Group DSP pack tests Date: Fri, 30 Oct 2026 16:01:37 +0100 Message-ID: <20261030150202.61556-8-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: GT_KdvLMVgg9F-R4HabAFSTVYs_BkpbT X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4b1af 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=wx96bOdwd-L99dZWacAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXyenJ1bbdXok6 /Sg4V2NUByixvTJoFlMTKiaSnx5fnkV8Uyi4B2chGJShIEkgXgwKpG9KdyS6JMkIyeMVRH7phJU cPCKUi5H3oxF2v0zJSXaaC7ROaq8P4T2CI2wQsVimQEdoV1vxlLusq2kiLr0gv4vDPz/ELoGpJ1 gqeIapI1qtEpgflfZg4nBFG1oYXOCu0D0szu8VUNFjRnjv9qRXRGxKyoEkQu/pSy3IQjNM55PXm Au0cLrFkx2UmnWGQFJs6aqG05rltqHBqeekNk7Llw0hj+Vd+T+A9N7coNj3rvlpZvdKtxTaB5Qa RBxTi6B5TTzOvelkdXjdyQxJUtxqfgWtzUF0BBeufCg1N5wqttZQ5b88Lhupuyl+Mct1Qrl0jik Qk7AL8bozl8JmAgnuJRAMCqaqLi50vbdfnYBbYF2tfwEP6aYlhuXXd27XUY6pLvdprjJ9l5oJTe keevR1blcJrqe2N0qyQ== X-Proofpoint-ORIG-GUID: GT_KdvLMVgg9F-R4HabAFSTVYs_BkpbT X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXwNW8fivHi+km v5610psbnI+5AVuIXCfspfNl/k6gQCwMZ97andsrfSCCRulPBmiU4hF24thR0529LCb2k2Rv1w3 1hxlM5XdaBB3/GSiptD55LZSX4JQssc= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372607250158500 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 | 148 ++++++++++++++++++ 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, 149 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..7ae3b41ff55e --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_pack.c @@ -0,0 +1,148 @@ +/* + * 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) +{ + 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:26:35 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=1793372616; cv=none; d=zohomail.com; s=zohoarc; b=f6zSxaN7KGOdW9GMD30wOVGCxOVOUY1bME3NMnfN80NSxliwoZMAp3PShUXXWMrsjUqFqbeILzzUuLFdkBbrTYJQRD9nr/nXQNsRLrttDdFSa7KUkOvhFC1qrv3G+rbQMD/fmOn68lLz1DxpgXsT2cX0dWw1nMKsAwQR6wu5Cg0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372616; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=pHBfphjFk72RZcXH8pnpvBiHw5H3I6zUtVVH2ElhPEU=; b=UskmNB9pZMBL7/sXjAxITqPkZ+Q84evVrUew3styLOM5xpOSzjHCWDbsr+htS5NbT5RJgXT5CndTPtoi4gRqsKSx5duncfCFW1oU51HJHs3S1ytjHFARcuPDFN7FjUet84DOPDtNJjmWRtcLfKOSP4XoIZG8QzHE9S3uO/YYMbs= 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 1793372616218926.1028825620762; Fri, 30 Oct 2026 08:03:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8h-0000L6-W7; Fri, 30 Oct 2026 11:03:32 -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 1xMo8a-0008Ux-H3 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:25 -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 1xMo8X-0007BC-W5 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:24 -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 69UERDm13564437 for ; Fri, 30 Oct 2026 15:03:21 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 4hme6qkm04-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:20 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-7bf5c02f7a3so179368137.2 for ; Fri, 30 Oct 2026 08:03: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 5b1f17b1804b1-4abf5b27e46sm103437665e9.3.2026.10.30.08.03.14 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pHBfphjFk72RZcXH8pnpvBiHw5H3I6zUtVVH2ElhPEU=; b=MP9UkgpQo6xv/Pf/ VH+EPf/t1bIPkG/7o/M/68sEY6J/jLh7t/+mAw8UaXOXF7NlbmeuqE/XPiMH60AB iL0l4cpHvn9fmaHaONtrFMeeYa9ffN3yZiQUfhX376N+wYD4WgqfGf8o6UT8b3NK LUtfFdkPd9CP/nZIHUJlYHNRPAv+q6lu+gusHUetVmW6IxLitOqa/JKMcSWvEYpd 2QanYM/YmgpCJC7lwZWllSArxxKNKJfsFkwC4dFq7kj5ACoAxfs7jvuv4OJXiYcq ei+eJBnwXv7YnkxyxjLeGl1kquQ0KQZhKHknZRzv99jK5P2S5WbcOjzWbRkUoRHa GlMoxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372600; x=1793977400; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pHBfphjFk72RZcXH8pnpvBiHw5H3I6zUtVVH2ElhPEU=; b=VINy10ahr/IPPYRTYahvq2c1Tg8Du7+U/Oalyifq5uYjCwBQg4S2KYrXqFcazFExUK 2pfg0/AFUE/27VLrOvsLRv7ivsmIwiyVZC+WUoMFkr2CJHdpw0Hoq/DAj1zN0fmX7vre rl1VuyShwCEcBOHiKofAY1xfcBIdGVcAmFHc6mfVIDvj1eOcf0jR/7eQsscBXAB+QR6a MtyIKoIom/AT5tzBq2AmBJu448N93t9e/azP2wR41Qz6mDtDWgBRwz6oTnoGbKqCyIwt EaZKoUs/SuQOG36uDLyEYSfJmIOQ28Ud4dsNqdBU3wnrHqCOEIk9z1uztqtKiEWoPtqC fUGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372600; x=1793977400; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pHBfphjFk72RZcXH8pnpvBiHw5H3I6zUtVVH2ElhPEU=; b=SNDSzZPf7dS6CQN6UvWYSda3DN+/BGNcfiiRpBCxMPccd6XlYwlYfR3ReNCR5yDqBX 5DVrnJQSifsbGZonxPJdRlVe7zFccLMx955geMtuXPvK6iFfzS9vM7e48v3oroilqvSR YYyMAzueE+6vr31KNDFJWMfiuqPjAP3iyhRUFb6oVVoyd7wJa9wJSbxlbfvAuQcdGVt/ NdTwQcuPQMzsinAIVQl5fX6jSAaEczpKLdGmig+rQ0aYSfYvyV/qBA9tBmFP4InXELf0 XUdoJ+p/GojvRtc6f249+O44W3bhQWpKzlTmfnqZnN3LdwnKGuYoiOJzOnyrPuak8xV9 omrw== X-Gm-Message-State: AFq9FYLJCGJxJgpg6QmHvqgLDvuBLeSYoW8ZM8MfPPy+wT058Ry9m9jo WQD48dVjxoo83z4ZLmKzYQuxxCubMkf2mGCRs3chyMyv1SLGLWTYl2EZb/JBoXM+K+V77JPu9op dUiBu3NaGUhhBAaTLNFYWtbW1SmAzy68Slrq0TDb7/860mufezSU5YCLkcFk7uN3+YLLW X-Gm-Gg: AYBFou3lxGazy0mn7BxVQYENdVzSJ9RsY0D4TPv6UZbjG++oSIne48H8VaaAY4rW4Im 7xs0fd1ZLDTbQ9y1KnEalCfumv1f0yYfN439trxnNsyigh7WbUPOnJXuEd/ESORO7CFvt/cZEbq +UU06yyIuCfi2pJVFHSBm6rbKmKAuArOOZ0ws0FvEccut9qt/oGEXUUDdrGAlI7v0RAXNvyp4Gq QcD2v4hSBQfAeyKm+03wG2L/HM3vtb3Gk5IYcTvDRtUoY6IoUeXZhF80aEgSlrqEDak56BGOee8 5b4lhM1nCJCTXnu35qoGkL5/yLALgFYTbaYewnuiIa9hzadg7B2aZHYcADnyLWAdf7Xpd6lmneD c3IUDz1HxuoAy6oV8Hlv0zVkKeva+ARLZcReJ0RrdKEtoYUp6doONTGJCm85DXsFRsP/eIzsKqY r4abKq/1GAGtmJoSNB3Mq0LK7wr8mC+A== X-Received: by 2002:a05:6102:5126:b0:7cc:56a:58e0 with SMTP id ada2fe7eead31-7d0725e16d4mr1062744137.21.1793372598349; Fri, 30 Oct 2026 08:03:18 -0700 (PDT) X-Received: by 2002:a05:6102:5126:b0:7cc:56a:58e0 with SMTP id ada2fe7eead31-7d0725e16d4mr1062561137.21.1793372596167; Fri, 30 Oct 2026 08:03:16 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 08/31] tests/tcg/mips: Group DSP shift tests Date: Fri, 30 Oct 2026 16:01:38 +0100 Message-ID: <20261030150202.61556-9-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: VpgbddvX6TCvW9S6xS3vz-sTcpMrJZ1T X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX1BPvpvfTFk99 ozjjnyUXa6iKhGyNv4Ms2NwnQkHgOGlQSKG9UR3S3aG23C+X/tPMnmOM2yDKyHxLFlDsLXT92qf hckQVF21KkAiZZ0WRhmivDI5Ipga0E0= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXw+v4FbmYyGV7 5Tg0rIbU7a5nfC50ZxMSjHGYoNycjKOWxNm61wV5aCNIpi/sM5umsOn/jiME/sqfePjjbkdNZNh 0L+6KtAwjpe8JVvpEXjhM3B5RZ8RapkS4cBpoPAiTayJ9X1UcdHvyFEG1Z2KZiBMUQHN8TWO/8D vkhQ6UCamIs7OuKud6nJm2OBrgd1/4KDd4orON+Q8d0NXbxyy15wNl9jEu3PWxp566mGlA1zZqF FzY4eIxfjNwBftWYgfrumkbT+/n0iDXSwqie4i2tndndHgLptGfP4P7l3u1ms91IN5O/EtX+JH7 iz6E6DFmjH6xUuP4PFq/2NY9K7rw+ogqXtl2RbfS3yBNQhb3BICxNzJltNuqcdYDgSdabt2MRky o7Rp0hKgFze0lEBMN5W5wFMafqegKfadyAnsBuXHqBRuY59kTWJXLcy3t0zY8hs6HueuP4ECgr4 cegFik6xRtEUEBzmsiA== X-Proofpoint-ORIG-GUID: VpgbddvX6TCvW9S6xS3vz-sTcpMrJZ1T X-Authority-Analysis: v=2.4 cv=TpVzFzXh c=1 sm=1 tr=0 ts=6ae4b1b8 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=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=PBVPcx0-DJstsYKfvf4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f: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 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372617712158500 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 | 123 ++++++++++++++++++++++ tests/tcg/mipsel/meson.build | 24 +---- 24 files changed, 125 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..a7e8ed342718 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_shift.c @@ -0,0 +1,123 @@ +/* + * 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) +{ + 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:26:35 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=1793372624; cv=none; d=zohomail.com; s=zohoarc; b=JM1RglC6QDG7ImRJlRRp3xR7xK51+iaq0tzsJHhj/Ba0jnsU7/RgL3mLxxtODRlN1Rh5SYjfF0otOhyPwwtMpfGrygilH+Vq44dm4fRqpU3AEYRoHy6oyml6zMxsBzg6Fc1g4ie+ma4IIFwof8HqFnQVEPVtKV3W1wW5fF27hNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372624; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=3EGqTn0/oI1pqHGrcg21L9ZxHJGTKASOnJYyCIL593Y=; b=E+zDeChUUYIEEk+iasKnWO0aRi9mjXSIJO2LLNvIY/hJy+FazqUW88OBdT0lvhpcDW5XshplJcpuE+kTXv0eW1FTcQO2es58b47VJPrqUOESprjnkdGq3pqhCGL/wEmAxXwyiN5jjbSAvJh0HdxR+5bHO5gNg21nWjMQAg6ehes= 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 179337262404073.37976703434379; Fri, 30 Oct 2026 08:03:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8l-0000ZD-8Q; Fri, 30 Oct 2026 11:03:35 -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 1xMo8f-00009F-4l for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:29 -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 1xMo8d-0007Bh-1z for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:28 -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 69UERDUo4141541 for ; Fri, 30 Oct 2026 15:03:26 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 4hme6qukk6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:25 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-98e3ad6dbb5so176756241.3 for ; Fri, 30 Oct 2026 08:03:25 -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-4ac081d1944sm39370225e9.2.2026.10.30.08.03.22 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 3EGqTn0/oI1pqHGrcg21L9ZxHJGTKASOnJYyCIL593Y=; b=l5O7bOGWPkUz9Jsi Y6j1m+kzwi4HZCPLn5YH1HfFNZQArq3+91LeUEeTqVwyWdcPoFWOV7VYpBaGhazk 0LxN+gb/7rft/y1CxCYOAXIZ3y/8X97z4FAXb5+JE56lSpx0++rSqneGg63vrbuB 2O6HtZXQkrY/0ByW1ts6Kt14pMcFi9h6vm7U9KdzD+rj9bZ3Tv5PvY5osqUcvi4E Hz5G5dIjMDd3EYmqbcIbmq3Ek8c3tviuNoxh3WcvfnaTYF2zzaIZXve98yZUnHSX yIcr8Bl5e51i2RH57MVeeRw85mqgR06k7jW0D5vtdCKEFsjnuZ16Arebjvkpjlag jRO0Gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372605; x=1793977405; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3EGqTn0/oI1pqHGrcg21L9ZxHJGTKASOnJYyCIL593Y=; b=E1S3MNUQGgxl6d9Qd+MRAbZhdlstHvlvtO9wTpmm5qIdb/NCFS28K1zmvJxPVOJD/S IKtADrLLTiPd1kY0I3EUDOKcQTHNM3VxkTWbOireGhhFDyEkVRkz6B4iItCsygNXbYFI xzx79DwkU2vTQzcGz0O12h2dzhstmM7U7Cl0fGRI4e/Vj9zddrvSiIceN/9OXQwyujVK 7/13ZyrtsP+6xVy97GZPAUJQQnGaWOBExykYCpkrSqSGDml2pOUVgIac6oyIcEs3b5Gx /WeZit+6LS9cirAt1CcVJqhsXTXVeN3INbarwI4c4JFFIZKrIVmyT1S2GvWKAGVycwB/ ztaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372605; x=1793977405; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3EGqTn0/oI1pqHGrcg21L9ZxHJGTKASOnJYyCIL593Y=; b=moXpujtqsaUAqVgRXXk0QdKrFQduaEfSucVBRI7MUdyCMj3lCUHaPcmxBw7kn126sB 2wxi/HjvF5dv/jKcjpIdGcmpFasOlRWK/+nf1tiv/gaDRJag9SfGbdoKRY2n33QZZrPh bginGo4QEAUqmyQMFOQbZJL6UbVHP8+GHFtkDljzCa2QhMpbJ+fNY8s9irA4HKX/2tHx 6t9DGTYchFyTjdUe6XLQ2CsjJtrp9kJ47uvcV3TZ9BwOErDCAuh2uOuUlRbnpj+FrwEO ng22EqJgzLFD7kj+iopNmqTQ1UB6V9ctm4sL6g92LJbHi1XSjzYf7TsTwJhKBJbCEszR zdow== X-Gm-Message-State: AFq9FYJKRfrmNAapQBQ2vy7upNeiQSo9D552/AjpNQsEy/EcduIJwIwG B8cuZsVYkEEKfdlNIGrGWbLn0Qt7YhMfhQ8HYQf+3iuXlFl3PusZrNhTOikg2/w4ODx7tfx1MNz pyoeDxLWB8CIRErwUmHSX7oCnM3C3qXQLmqZHcSjb43hVDsa9yMxZ9vyd4Jbu5w/qQmZE X-Gm-Gg: AYBFou0cy+uKr9Oqyxm2S9SUyhRizeb36VaOc6wSHJxi8XF5nqE8ZBhgVcGl61k4otM OJ27ggW5e1E+OhL19pbBRfxL5njf3cmG3eDVSitdpJ7AIMngWj2eprE2TBKc0M6OwV4Wcdobs5J jwaxXFEHTjtxZ9w4Snde1OKkynLtaTfSt6/c/ozoamrP3wM7mDQayNNt8938su+j8u6hq2dchWj 58n8Na+nw5oVFMwA+z5mNu0wxCL0UozbDHfJuGQ32UtKP9PC6UtlZBbhnsjsGBQeg08yvUkWW3D 4gW4xmOeVSF+ARTuXkJGrXtirD4w509y/FMiRSBfcSHcf6pBmVJZRkviP8nIrh+fK3qFMQLxqt2 RaG50GMwhzZxrSsGy/AmEuh3loMtUdLh/GXndffQApCwoxhPYXQw+H0dsYIElCZC8aV95Nm3BHv vTutiBytO4GYY+O6QzdmkdTf3fAnzPQw== X-Received: by 2002:a05:6102:c48:b0:7b3:7653:5487 with SMTP id ada2fe7eead31-7d0727a7372mr1162472137.32.1793372604035; Fri, 30 Oct 2026 08:03:24 -0700 (PDT) X-Received: by 2002:a05:6102:c48:b0:7b3:7653:5487 with SMTP id ada2fe7eead31-7d0727a7372mr1162430137.32.1793372603293; Fri, 30 Oct 2026 08:03:23 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 09/31] tests/tcg/mips: Group Release 6 bitops tests Date: Fri, 30 Oct 2026 16:01:39 +0100 Message-ID: <20261030150202.61556-10-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: hTkPPBs7i0gzA8Du4lR7Bwpun215k3qS X-Proofpoint-ORIG-GUID: hTkPPBs7i0gzA8Du4lR7Bwpun215k3qS X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXyQdrfPEKU1rw Ci/ObdaQGH7g2733JGSFCUY+ffsynHXC+J4mvzSI8vXKPx9yOPrWd+xdHnbOglxmDVbgpGdZFQY DiTCdrAI+DANxJYF2WYV5c68PDDACDLsjiIM6u6nLHocy86ffCe074j5lqppU3YZK1QqQeFsr4L eemVQ6wX54FpP9HNZ2ziXzRUmNSA9w/uUhE1wVHEuBd5V0ihW3zAoOzzKAt4T/lsNJavoADcR+o fOFIhTozXJ0K1UFlLunF9WfXFUiNipW82guyfTWAJw7qk6cGplh12W9uAoGhlxSKvaUDRK7klDq tXqPGOKrsHrsz+lJjcBLvYY26foZJt5rZPIGqHdTjvuATbunIF5MMn7BUn9dxfrYVpdG+k15Dx5 NH+7ArX446AqPcmzpw1SH9mPc7CnWxzj+CLQxHu6sZHa4vaQb2Nr/o5eYKxw/yt8eQSjh9xKxmS ZinYhc2FZoNj5TMlNVw== X-Authority-Analysis: v=2.4 cv=dPgzC+Zb c=1 sm=1 tr=0 ts=6ae4b1bd 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=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=3BM3qnCwOLCbP_TLtZAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX9XR3HocD7+jG LJetPyGlrlL10J9m3FPZNgCYsu0Q3uaZIgX+S2zmIKf+Vf4bVNihjZ+yIdlcZcKpEa/tumlft/2 hl/ip8MBq+BTZ9jm3sXF4eqJdpk5Yik= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 spamscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372624931154100 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 | 6 +-- tests/tcg/mips64/test_mips64r6_bitops.c | 60 +++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 7 +-- 3 files changed, 64 insertions(+), 9 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..fe9f5f3b000f 100644 --- a/tests/tcg/mips/include/test_utils_64.h +++ b/tests/tcg/mips/include/test_utils_64.h @@ -58,7 +58,7 @@ static inline int32_t check_results_64(const char *isa_as= e_name, uint32_t pass_count =3D 0; uint32_t fail_count =3D 0; =20 - printf("| %-10s \t| %-20s\t| %-16s \t|", + 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]) { @@ -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", + printf("# assert(0x%"PRIx64" =3D=3D %s(0x%"PRIx64", 0x%"PRIx64= "));\n", res, op_str, input1, input2); if (expected !=3D res) { - printf("// error: expected 0x%"PRIx64"\n", expected); + printf("# error: expected 0x%"PRIx64"\n", 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:26:35 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=1793372628; cv=none; d=zohomail.com; s=zohoarc; b=Qkmb3sAbH3Mq+t56RJSiEI07+BNxfyybnF321uGVeXgq4UYanm5ISpqP+N/OF7rcSt2HTfqYfJFznAmL3FraRQnWQ9xZTQc+qXi1jvLRsjceHplGJibI0mREsBWJCtu7mNd1K1eKUUokpd3pQL80pl2dVBDvJLVRzE7+vnUuCHw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372628; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=hQ5qrpEF5JvBSBsHWZ311Lk4FesuP8cFhaECmV1boXt9iaeeRcsYALuSW5J7rgyVEdaQf2O5h+WGNAIGZaV0hLzhgyDJ9ESlHsnlElUBYOT+45pBpIBguNUXrX8Uje27fEo0MCQIsbV/4qnDu7nFTByiarG6bP98S9Zeena36eU= 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 1793372628880689.911979027078; Fri, 30 Oct 2026 08:03:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8q-0000pD-5H; Fri, 30 Oct 2026 11:03: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 1xMo8n-0000kF-Pa for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:37 -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 1xMo8l-0007CU-Vs for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:37 -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 69UERASf3515380 for ; Fri, 30 Oct 2026 15:03:34 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 4hme6qkp92-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:34 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-9913f410ba2so180136241.2 for ; Fri, 30 Oct 2026 08:03:34 -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-48e71b8011csm4193821f8f.31.2026.10.30.08.03.29 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=nWXeGpA5WoBMOAEy wojZ50JJ6EAjttvC7/OZC8qrPKZ4fB3BbT3gLOqdEPXH7k4nmVpz8sNRqAZCQjit glqEXVKrD0Te1DBF5D3ts7jd4NDC7iZBGDqPNtroPUAI1Pz2zU/9v1+05Q6LkZqU eD/Dc9TG2N4KJLyNjp+AB3mGTA1M3/VtfvfZIRVCQYggFhHzkDutZ49hv71QCavg za5Qs9WYfXKDvSe2zHpPT9/po43aTDUGZQJ0AkG3jxiUhlxl99ViP7U2pScpHkC4 W6cXX8w56r661YgemjXcfTGv4e2SWwBtLQq1cR41OoyhUjzKLOMi59TReWv1sPaM inLZmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372613; x=1793977413; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=QKH+S5Q43XLKgqBRom/S2I8hQTPHEfrCa+/BJuN5e0mRSaY3NYxv9IvG/rZmR70Svl b/ICZtlR+uzD/ZmV2ytWbBf8HrPTKuMzMOgfLOdz2X3fu6MWK7T/3Bn0JerQkD0UrVmK f2ZDK1ktBQ5/4MJ6QkuqeocBywzLmhBoE3CVB9rTRqIioEtVKw9HjLa+wiCP4VVp25sz YG7TZjYjwUKjZ25+tCZtwGQrnouTZEtmB7TUbumJTiSk4hC8mRyDJH5q58Fe9g/JzHts QkUWEJABWEx0qJq96Uodd9aHVL+SMibHAqZKjd+yrQo+xtamAOyQ7Hua9GuWLKKRynYW QQyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372613; x=1793977413; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YyKKmaUgyc3XUXqP9qbvza1eK819yaAt4RhY9LOCstI=; b=SsQc3YtfUM1Yd/QAXm1glmAF++urZH7qgxiaYgiB5PzczFjAQFEo3Z+N43IEqXp4tL M5cL7rP5BjtCijqXVZCVO6nNGEKKrDetW7o1erjXIO6O3ZbNAahoyft03b9HTTNuDkVm I3/MxyevIqsvWAnLDobn07VsD81+FcANAw8b7ZeTxHUPMZlal2MgTHIdBebIqMt7Qqqj nPKNjFEFkhqvI+YNJ3nMnTETgXgdB+svaZDoPbj27OIqoroTxNibUbU29SPViNqAKa7k M8NXymwAfUcGinN87DXottSrYg5JYfRFyus15bEwywkPoN1wVqldTuQD0cQZC2JWAfoS 7Epw== X-Gm-Message-State: AFq9FYIm3Q/Um7vV1RIQEKf5hHuAGvPbQG0qvo0omCcwn7UmFprbe7/c FVaQHHFaPht+zhQsc+rBMBoIyfoyCSnEPLTlnyRJSKcoVRro+aGBGd7l79TSYO9Y34CVBY8LkG4 ymEx3DpWYFMYgRQevLjAc/kS9TACoYQ+re8HyYXZ4vsAFl4ugT5caS3El0LkhzCkp8wdU X-Gm-Gg: AYBFou1/GjIsPhqu/Fo1WC168cxNC6iJIcgtzW+jrgqKNOpZOjdwQMpTY7hlX5S2u5F t8STftGbnmX3xst5UQodQnAco/jmetNqWkiexbJ5KS/HrJiGpl6buKlaPfByYBGHpWeVD+NBO/V plHXn7JjkhJZVrK38LXA5WUF5UjOm71iVWJn0LFpVlf9vF/Adc8o/tfHF5808xR3DYaamr3xxdH qbCHHAzKsejLFDluVGo1EUnpqiFjBH2svP6VCwJWG9UmrrSEbfmVOKVbKJcx/92St/rCisWIlWM xJc8ewu7wxeFuv6V9YUEuycp7T2/SDguRYNPbHOv/++6rQPWTTkQqGuYwocmlokyCrOclf5XJrh g9wx90Z1XahWh8XZI241URa/jPxydW8Yv2bNuCbZlrA0E9w87h9L7PhfGeGitlesda1FmZQqHQR LXNBtkrQdSfuwRs3vys2bg4uDurYc6eQ== X-Received: by 2002:a05:6122:4b8a:b0:5ec:4112:6839 with SMTP id 71dfb90a1353d-5ec6894a356mr1307275e0c.15.1793372613196; Fri, 30 Oct 2026 08:03:33 -0700 (PDT) X-Received: by 2002:a05:6122:4b8a:b0:5ec:4112:6839 with SMTP id 71dfb90a1353d-5ec6894a356mr1307202e0c.15.1793372611075; Fri, 30 Oct 2026 08:03:31 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 10/31] tests/tcg/mips: Group Release 6 crc tests Date: Fri, 30 Oct 2026 16:01:40 +0100 Message-ID: <20261030150202.61556-11-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: C_UcVZbnuxirfVIqXTpBo2rBNCLW3EPu X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4b1c6 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=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=mgfkhx_GbAYBFjwR9pIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX9aruuj/rYvk9 4LrL6iRKEJVFt8HnjcCdbMU2kBXelztv092NqtFAEKoC9/DNMOQx8XTMmu3Jh3Wvk4GLW4SVxzw Zx100xtdwgX1vUhtSxo+X3LmMjBqdq6nxQKaLDw2uj9n12IeJivLB+OHZBS04y61B/eDMtx+zHA N1hz2qEvrgCYGOfHIWjh+Y0EGon0Cp6+x7oWwjOMMWo/EawijTROvVvRU/mUopY4ZT9fn3oT0B4 fJTuSSLiJrgtQ3aljAgJZtRhP6qCeHHSEMKncShkO7ZCzoKFXYZ9/piNyhnFA1jY6XWjRpRKoBE DsJok6t85xXuFvTPfj+0IncvZa4uAadJRYObNf/P7m1KBYjlkr1VmdasypMrJe0ujZnKNnQbpon XyVdOAjpQX9cDC4IVigK0m7xwQt2InTfQaW/ZW+XryHLRSpm9m8J40B39/n5gCUevcxIQflwubB RLPJJCtfVgoUA9LxEKQ== X-Proofpoint-ORIG-GUID: C_UcVZbnuxirfVIqXTpBo2rBNCLW3EPu X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX2f/rJK0JZ8CM uoxsGOUVSm8H66KaT4LWT0cifPqZuh8LuHvNDTxFQApBR+dVz6KIaaGU09ciI1OQfQYavISGISZ fPsjkcQsNFevsJsVsYp9x1e28VeJJ2s= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372629826158500 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:26:35 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=1793372639; cv=none; d=zohomail.com; s=zohoarc; b=VBKfiw+VFPPoN7RyaOazN63yd6zEyCMdKxKRzFV6gaysDZZw8+B67upXO7wgHGqwaXTUeIGU2abeGBjUMfgZcE8NxVaJBSbUJKsRRQgxUu6fDulRVZsTkhBPd1WtTLe9bmrT5ztoKYy8TqJhtfXU+fCcwsWPdBGBOg4ZRos9h1s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372639; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=FAXs6dpjDDXsD0bPDrjoogCKlGMF05ZM92Xj82mD6Aq8EeM0y+WZ6m4Q/Ryv2CgB9GjA8TPJAohHdCDH+H1QMYhXb6As8UdqXUy7ViJqdnezdA+qa63wZ0/u+0yPXxJUXP9u9tsspqa25Zw/ePtIczVszlvW+MkrzMQPD2o6C+A= 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 1793372639015520.2053840776924; Fri, 30 Oct 2026 08:03:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo8w-0001R2-49; Fri, 30 Oct 2026 11:03: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 1xMo8u-0001Fl-9L for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:44 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMo8s-0007Cy-Fv for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:44 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69UER9CK346925 for ; Fri, 30 Oct 2026 15:03:41 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 4hme6rkr1c-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:41 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-98c70917433so720152241.0 for ; Fri, 30 Oct 2026 08:03:40 -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-4ac0b4df257sm35922485e9.4.2026.10.30.08.03.36 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=RpJjw5MvtKQGjdCb 8liQGN1M9jctAeyecBpztfkKeFOYN70jXvbqPtde07p+pbR3PvQiBBLHEqoojK+u +JV87WmHbQV46GY06N+IVTU+KTkt0W6CtYxP+4j/P3vj/+0ie2qSitki4AJLTA1k ymGMqleHuaJVzZAFAn9by4E9V/YM1EuzKbcagaee1q+iUUyc84RCVzdqfcnGRdPi wTujMjdtnAEHNwWrdvFzd9SEgTwyCmbQh70BwcA5YkJz6T2COI+lZi/r/EQw6tme bcfpWkAvHzBApYkyiNTKssnwYYdSSMA8Gy3ruupq4YIp3/SpM35Gh1RbqrBJOn4C jcQ3yg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372620; x=1793977420; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=VB6ZOSjg0bgEDFGKzQht9Utgww3XNLXNQI4JCNZvEmx4CdqchG7HF6dLGYq2HxWGNA bCEQK9DQJHfSLHNbtisayqSbAGrB1my2zRIgz9HWlaev+pEt3lH9oit7Tno3fDnwWmCQ r8yCEdGAWqx5mkH8OWr3ezFQR7hiPoC4VOmvu+370ysidloVPmetdwy/JvvJWjmBDPur BIxaTN8PyOJynNoPr+arm3cTTjl6vBBSEHZ3KYnjto1uAT5Dt98reGy3quVX2yjumxni vKrDs+oNpUm4K8bJrOzucYkIY9JkX++yyUZGqL1s5avBSjWinoOhcgTjtd/TRbq6Z71k OiPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372620; x=1793977420; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xBo1o/3MTJzD5BhQYt4bn566lViAjeBZIdJjcWyJrBM=; b=Et6DZGPdgBuF5+d1a1H/qoxq92MrcgTxNzP1Ts7hQbH1HkPD1QHw1sZsao3t+IDl1o Hs81sOogUE09KhwDWM/5FxkpcyHWGAt8ux6kQpVClFaJXrGGrQK2+FKzvM4YxtXK4q4d JBt8xu4U49My6yKeMFFHjsfswAoNJTimCurZ4uxNtG/JVLt5TqWm7nK4sziEQYJyKCD7 ywc3bTgOWa5b/jJjHJd4OR2xYNWJxNjKgQTtVREo6SnU8rN0QNeQYjrpGKMcNqEiV/vR QEv8ZYuINPsoqWbrN3wMFJkL3342mcrlCnMXRXOONW+CjW/ZGxsXdPLCSnHFrTFeaCpv yoKg== X-Gm-Message-State: AFq9FYIXSuXqjtFrIBmn2dOVqWawWkQZAXvMfesUWEDDyP/ZUxXlfAUZ fsVXOceUpoaDnz9VNMvCdAPCRua0Z6crTHQywe72dIjcCyHsHFhRK91tYnaFVBJCpiCkXYtuIE/ k0X54yigJTmbHW76tPcqjFAVAWAX8py173vjHiqPH5m+6GBHJk1pCig1qgPnylClJQL61 X-Gm-Gg: AYBFou2HrvSKzyT63Os0eXa5p8WwdqxDx58+Ce+aObVfJm4vcxiy4E0b1T6GZ76bYtt DG8NuO34WjV1Kz4K5lNd18w1A2L/6WW8/wxxwmpS416PkJ0Jc3bMwJiqFuXjsSJws81IkdTXn7d DP8Gttqa5XtoOs2GeFG8w/I47xVEZcJYgYFRVz/r/vqZixEuV9BVIixSFqyux56kAme20UyG5ky P8w6iosm95EiQKfMavbClyGV3ck8GJr/exYCPH7Qy5dLfXfUl2Fyreaj6RJe81NMZc2vRo3s+7b gsoxNe42jcAXJtehtnEvi1ux0QWDEK7waNxzFlIYxC9hvU3gCc6/93hC4dPC4WnA/xiCK2fk3IE 6pWb437iNyNchYZ9uc9d2Z/GyXPwH/i6VFac7Vn1EHtJf4kQ13P+6aZIrxw38gZ6TMxPAnGrI/q k9BkmxHYxuFXs+OKcYjhZB9QvuCR35SQ== X-Received: by 2002:a05:6102:809e:b0:7d0:6cf3:d8f0 with SMTP id ada2fe7eead31-7d07269b132mr1496031137.18.1793372620075; Fri, 30 Oct 2026 08:03:40 -0700 (PDT) X-Received: by 2002:a05:6102:809e:b0:7d0:6cf3:d8f0 with SMTP id ada2fe7eead31-7d07269b132mr1495839137.18.1793372618054; Fri, 30 Oct 2026 08:03:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 11/31] tests/tcg/mips: Group Release 6 logic tests Date: Fri, 30 Oct 2026 16:01:41 +0100 Message-ID: <20261030150202.61556-12-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: p_Xcq3tFsYLfTiL3hc2ipgB-kKXz7u3c X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX3uutEgnK0sgX +dro1tgqZGzlJP2VJW+yUPSgYROgJZa4HBE1fzzuYG8vzynppWrS4Ksx8WMlFSE7RpJH1z9GlWP JfWojYhz5sN9kYWb6jrKgAgp+EhKYdE= X-Authority-Analysis: v=2.4 cv=PIqaavqC c=1 sm=1 tr=0 ts=6ae4b1cd 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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=KuQ5aknWMmF4MApjBakA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX4VOYjIMPPVeo 6BP199h0ACjObuh9vvjSVkFdsE/0LDsU3GOCzabyWQgU5sockBABUDQ2PwRkgf5uwXZ1m1wdVLC EC0jA6hWUE407+7VLGfH59k8PNNQIGM5l464zSVJP8G+TxSeyDTG2K8QzJbCmS5uu3pJnbejiK6 44Ipz6cAFI8Rq13nTfMBmB/RoTkXtWvHgHGszxgWmATLIOqP6rrruFqlyYj2IhqqAaqe3uwtBFH lKRJDIholq0CuFhvDntBqsrdTzSgSYhvNEQksJjrg+ZvKd1PZAGVQxH8Lv1buxyX6UZhPAth9QN Uc10RjududM71K14m+7VScKwmbMUBl4I2MWXn1CUPr10hKPFIcdIYp1G4vseD0ESknoGvxJM23/ NScw223miyLVOBV51IuKfcZ3Jh3Hpnq8uVDOsmWlebU8SqBDFFvDfXInqGdi5IOhJv16/cFtwEF 5mMc87Dr4ZjABuUuskg== X-Proofpoint-GUID: p_Xcq3tFsYLfTiL3hc2ipgB-kKXz7u3c 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 malwarescore=0 bulkscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372641027154100 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:26:35 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=1793372680; cv=none; d=zohomail.com; s=zohoarc; b=Z3N9I2dwssm+Pjf4eIKv5LLXmEmxeuLreYZICTW9KlJCyhVYvqUXWpvLwFOdT/CTbGpMd7vN26BlA26Tzv87uSSebdExCA+xtZ4IGdUAGeVolpPVdNWDHetMHXoANy48dA0xA26iJNQqvk7Iwu2q8rRmZFBwwBvJ/Si1ROXExuM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372680; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=bvp9fC15KAIInO8K9Mp7bP3VLoAu8Mw7sz4Xd8A5So3MO3OlpL5WXYOZ9LXWXMgkp1XTWbn+l6NcFMVCuBiVSE3YcjTaezeoqXqWKJ1LJHSHqOLSGdV4mRHnJ1AIPxeqgyRtHmtGFLC2QYoS1MEp2ZWZg4T0rensE8+gOw5xal8= 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 1793372680699392.43306410918296; Fri, 30 Oct 2026 08:04:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMo9R-0001uK-Bh; Fri, 30 Oct 2026 11:04: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 1xMo91-0001k8-Gj for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:52 -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 1xMo8z-0007Di-TP for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:03:51 -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 69UERCl03564337 for ; Fri, 30 Oct 2026 15:03:49 GMT Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qkm2k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:48 +0000 (GMT) Received: by mail-vk1-f200.google.com with SMTP id 71dfb90a1353d-5eac4de614aso708136e0c.1 for ; Fri, 30 Oct 2026 08:03:48 -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-48e71b964desm3663550f8f.46.2026.10.30.08.03.45 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=QGeFKUdX06GhlF/Y OnsD58HkeIehQVX636cngmQdoGasejie+k5g0JHgJZeE5Rmsz8B3IqIBLnwa6rqW +IjEwxz0G8kzelkf4XKyFBZGMzDLj177hMp7ZIITTptMnxqTs/m0yc3cF8NMVtpA 3+gXxfHluRIn7Rz19hQuxEPHNaVR2SyccMUdkHJKsyT40gnQh2UyhnqepFWq8g51 Yg7/SFzTosPrb4lyESyNMOX1934vzuprobE3q37zVyv5sTArYcedO0U/wpoRJRtC 8mUu7OE/9sQ+juVPlRnblf4NgYfx6wtY/vgubpgotb0kiST2X1W1LcW9YVcApUlx +pyGaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372628; x=1793977428; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=WcO+i+nK7QVYHj82ecK4FON6v4j61iypMiw8m9+4FmXHoiCWAQPR3+MezGvGtuhsle rjNlAEdFfC9ndoP3A472Sl6ickbQMxO2OV78VpP4GCOcIe0g9f3TV2kht94upjp9Si8Y XvOycN+IEkgwlxbsEYR0nKgmnXzHCBWiUSp1O+i13fU55tQMFslsZ72xg2q7urNhr/+z oJJRJ6xCPuLpvICODBfVycRI6bhjoXfpI6hnhqixvm8B71ZLPY2CYFExw6vDSR0ZGVib 48j6UPa8l37a/FQXyGdwz0hDqAWzyIFWXLI+NTNV7nVugfhcvkZbRaz7PA6WLLkz/pw2 JWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372628; x=1793977428; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YLL5RXWILMB7fjfKuCCyY50o+eS5IMIpVByg0Qj6qbI=; b=0golwfhuU3c2WwDUBoKZ0AO8Jgg289fypfX+t7kmRsqrf9jwG8/AJuIEMvvqfvM8AG ZbZ9tEB9HLtjJTTXDU9UtEkUbzCvUxNbrYw3Zb5gH17oHd9GMjRdWYkhJSuEcQHGtxXL 34VEy0DOf7D07M5uNKxbseGtPU2TU1KNTEyEPDqwXQOgAUUdrjbGnS6tRR37JXsyAusH BaLfqutGopp5b5thdUuHEqcm499VXGfgTE6ugr6SBajyoUVR7TqNUtpsfMgFs1rPevIE XFeCE/zCS2+l77M+IpNSpbhUv6EPxNh7nHIT10ruuDgfStagb5bVeX4q5uQl+Cz9Ibas q23w== X-Gm-Message-State: AFq9FYIcRKLEvEt7imzyO8wx47d7eBlylpVySB3Tmd75VUEjV0Gv4wgr yY0gL4mZkv5W5+k303vQSJcywF5lmdMgiEeQ4J16QiO8mNBYMjhZRFUyTOaDIDDUWUSW7GPakOE gTzDe38tAHxTPASx/Y4fNX0GEGhso0zAcn37Pjl5pThH5roxwvDBwKJEj3L4mkSDkANR+ X-Gm-Gg: AYBFou32ameJvGITxHZwOjIkKiCWZR/Z83geG3ePeZ+h6EBkq5l2fpwjT1j3cTYq277 jpy2ANHIBeUyyKjR4ZQ+6Gl4DRhhPT2Xu1rXSwGpoR95/HlyFW9zKSH8cchZMs5WfU0yMHGktlT krBnG2QE1bW5Brjfh4cHkGvaO/nFSNURfqyD9VeL6Rk2WUYnAXNXKOFdTjG+4f5fZ9YT/IY81B1 j6SdEiErI5Msg4HLUzfCFpX89DtGz7oKoXPb0pty3KdQmubxELTquOh66PWYACCqYFtr9/AwSHB 25qLuJLhFo6K+9tVcM+O2WF5wCmc4bo3/3cRdrfXyObeVria5Za4wDl0mny1CjGJLu7qtS1eoxV CEUW06zIZZpGjzhR7/fVAjsKbruD6LX6csz0cQ6qweZVr+8b/PTxg/0X0D+TQCTmYw4HaGZE3H0 tMRDW4oTQItGMSRaCpgGE2RPiau745kw== X-Received: by 2002:a05:6122:3119:b0:5ea:f399:781d with SMTP id 71dfb90a1353d-5ec6899f93amr1607893e0c.23.1793372628006; Fri, 30 Oct 2026 08:03:48 -0700 (PDT) X-Received: by 2002:a05:6122:3119:b0:5ea:f399:781d with SMTP id 71dfb90a1353d-5ec6899f93amr1607812e0c.23.1793372627282; Fri, 30 Oct 2026 08:03:47 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 12/31] tests/tcg/mips: Group Release 6 multiply tests Date: Fri, 30 Oct 2026 16:01:42 +0100 Message-ID: <20261030150202.61556-13-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: g6Lgyu-32lGh-cS7S544sZWcZ6BIV-L6 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXwofSL5e4sufT ZTRFiANLJJF3oonqcaFNYt96MKXd3SOhBpUDSdEIXsnDPyIuvbZRMmCRODvW2TRf0EfyeSqXauH 9spGqcGgotKoLFyClMZ2srPI4bXS/is= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX2KqNgO1DlClA +aWCC1pW6BjvhKcVzterTnUO68b8tLZ7WfpOOS+KgmxuSzDTpeN59EEBr7FjR8Tr0Pp82bNzUq3 zr7eh4TM0dD25q+U1AYPR8Pt40OIdx5elL9M4EkfDx/46tarqgOPIUdL2Op1bhXJNV/cUp7NXaM JTblzg5zMW05NpJYxI5Z0+3MgjLszrar6gjtHaaULv1myESNW+hgYWNNYPcAaVEFOGH4LBqSDC0 Q4cgZEJdLL1Zw5PgH62oHTVp40A68QKmWVRm/pbRdAZPPZNO6Q1Bhn2nBIRcD3Yy/3Q+Hi1MJ9A emfEuni2tMuqkwUvf8+sRekhtcRhVvLSzTTGURAQSYR4nFolbJrOscQCxIiRtL5Z+Jq8nYcMAE1 JGTZ9qRfqQh1EcMA1b7epadv6+wQWOcqiFJnYCqKXY652PaNy9tNZW9YrGv7kZC3qA/F7g6882P qlBPmC8QPM1xpBcsfXg== X-Proofpoint-ORIG-GUID: g6Lgyu-32lGh-cS7S544sZWcZ6BIV-L6 X-Authority-Analysis: v=2.4 cv=TpVzFzXh c=1 sm=1 tr=0 ts=6ae4b1d4 cx=c_pps a=wuOIiItHwq1biOnFUQQHKA==: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=bvgRRmj5kG-2naEzI9QA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=XD7yVLdPMpWraOa8Un9W: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 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372682470158500 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:26:35 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=1793372707; cv=none; d=zohomail.com; s=zohoarc; b=I6Wtx34kvrZG9ylc/7pD8ORqVlvqwirSyQC0AIENnL4t/5IrJPT01Y9RMiKvNHWvw1rVeDff9PVUD7iiGZ2ibdqhG+72M+7Hxgq4tJfJYkex7BBkfZdo2uCAxgchFWpERg0a+To+vGAFr2L02UgS6Ziton6JJKGX/qCX5aHZnpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372707; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=ZP4XI6CEt2Rx0N8gYzaJJekbYdCLeGSlKXL2ejXufpOzVcGgBSmgMEmfqR+QFaVAjJbbvFEf8RTwzv86v7tUpGxNiek6yokCtq6uutN5qrhlQ7eUuHsZUjYNDdLV5C6vvSQfSgBOFyVi+ax+7gc0VQI8l7bwrp38U+nQfctiR6U= 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 17933727078481012.7460740150452; Fri, 30 Oct 2026 08:05:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoA5-00025V-GH; Fri, 30 Oct 2026 11:04:59 -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 1xMo9C-0001to-Fn for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:03 -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 1xMo9A-0007EX-Ip for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:02 -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 69UER88f3552223 for ; Fri, 30 Oct 2026 15:03:59 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 4hme6qkkat-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:03:59 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7c0bad5ec1cso184868137.1 for ; Fri, 30 Oct 2026 08:03:59 -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-4aa8213ead6sm141294855e9.14.2026.10.30.08.03.53 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=SRXFXDOPF4y26HL8 2PNCbL3mmEGjiOjUb0KDYP7Gd82lWzySdqR3JMHk1JIw5k9ApPaRLiKneAVmcWlO b8nQcTD5vogbaewaZ/0NbADgbHGQ0ntx/d+zxcIOBlC2hT88hcdN+nr2qtbWL5qe cxdBcLa+4JTsm/9Nwxs8jxLD8wa3/yjQt09ZQLPNPLiibhEByU3f/D8JHU50KYj5 no69fINc8FElkM122AgN6O+90JGT8ysM+STReZtcAiW9uqhIykkT9HI48g9tCYhu gbquKcSxU72SoHoyJBrKO0vfHbDph8GUaX8X1WHV5a1k67eC0vD6+qRMvOaEIxu8 51cicg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372638; x=1793977438; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=GTdPRkRtUjFhnfAStD/FVpGBNJsrRVYycALJbImxcciKUyirxBzFw/HKjTn40tDPwz z3BoDQw4s4F/ohiLiQeG0mjzJRfKevr4QE52uVyQxd/x+ozCrRijpVYPj6wCPCKHPscZ JE6evDfAazc9vHhyuXLseecmUeCYlk/5GU0OnQHyRM/6M/yqtactC055ZZbTjY5rxXNS 7exstAYxlBjdI0igvjuKIrhcoHZhR9mLjMOQqSEo/o+umE7bAdSqTWQ0i4k/FiMYO1WM WG1zrULkGNgU+vgMZHeiybYM7oCGEfEeS4HSklm/ohND3u5URYrLSpRZJUE3O7Cpg24U k5yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372638; x=1793977438; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uiBgXIYWT1lKSeD68gMwZsgRcMUOVYm6Nfc+9WFPjig=; b=NvHLvTk2ADl2DLDcb7496ttTt219n+i2fCiqP6Rx+ITyVeEMzsLu2tQT626/ux0j+t Igw6J31krAtwmHoyRkKns0V397C6rBYR7U5ypQev/8qyHGFLHOqAA3kP7LjcXKujkhAB 876pEEplwvP3UsDM8Tn27/NRgA9UAs3SbRxro59qHiepUgoNLBRyXo7SizGMjFQAQtd+ q58bfU1uqNBil1PPe8Lb8kO/62TKvvSFgXydMqtygj/IRlYveE/PPk1uykSGeXvI94U5 HSZxTTt2FGjnvfjOipYVuJlJcWa88pIw9gLfqGyvzGcBqWbCbRXmfXGBTHqV/3tCK7no uKkA== X-Gm-Message-State: AFq9FYLF/MdCO6Tf5edCpM+nHd39uZDLXAJcUxv+tUQHIo7/SXGMuYfd EgHACSMT1RrsuAEmF1N1RSnFoAm1BWngMztt/EfYEkNvicXag58COtpdk7SVtEdF4+tSOpBhq5g BdaqZt3VqY2mbjT3KNayvI50t+JqPoLQL82LBR0uw3gm5HTcdBxJtT7zkVQlcwzgHzCbu X-Gm-Gg: AYBFou3E/Hfl2vpXjt4AxOY95RzMa0COcQLcgqSBEI7vFRQeQy5pwyjyXqNmHmJaqjm bbTiAUAc5gQRIVZ1zfiTHb5AQ9p8VIGGANTRmZmZnh37HnXAubgRsW8GnY91efqyRhYGJYDM4GM kkG9maKemXPcPNsQ9FcZ1t/U/SThUF5M6I9yPnTyXa3fsS6nqmZvIBtLRsb1/MLnPMGtQ34t/EI Rk+c1bKBJUTJj2xaOcNCR84AZxLC8waohaSvftm0Oqb5aqsw/yOyFbZXLRjF8TfRFSToftgBhsb rZXQcglcMgev7XP5xrOVVnshvKBLDT8RO1migksE+CgLBmWfZQuI2qf6gropzoDCeQ+hdqTybLk JXxbsh05jCkddF68hmrskl2XofIeN3c3boEtWeQ7Gu+/Bp+EG9qeSZglh6MOXnR35jlaFdtnFPM UhbAT2A1kYIcRQwkOs1b+uQiV9VzFJzQ== X-Received: by 2002:a05:6102:548b:b0:7c3:6466:3155 with SMTP id ada2fe7eead31-7d072d2ca10mr1103285137.33.1793372636916; Fri, 30 Oct 2026 08:03:56 -0700 (PDT) X-Received: by 2002:a05:6102:548b:b0:7c3:6466:3155 with SMTP id ada2fe7eead31-7d072d2ca10mr1103030137.33.1793372634902; Fri, 30 Oct 2026 08:03:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 13/31] tests/tcg/mips: Group Release 6 shift tests Date: Fri, 30 Oct 2026 16:01:43 +0100 Message-ID: <20261030150202.61556-14-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: XEjus6XgBWo1iQeKeqx0UYAAB-4n5HL0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXzedAeyxXzT0T CWcLtj2OXl2kkROi4n5Dz+ZNvOMk/gqEskWN4B5ke+GKsLq/VzAa3RDXGMtk2S/n/lCW6qD2C3r 3eiz0MtkW21u+yaF8iC4Nf+ylhsMlDg= X-Authority-Analysis: v=2.4 cv=DfSCOftW c=1 sm=1 tr=0 ts=6ae4b1df 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=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=XEEDF0r_pM4_IqxSCIsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-GUID: XEjus6XgBWo1iQeKeqx0UYAAB-4n5HL0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX05ACZEpzestT QeKixo04/Hwn935LAs6zSEUyb+/TBG3jo+elaUkJjiVZHMTwjfNJ/RuZgleQfs3yv7mQ0ErOf6u O2MW9Qc9cDJ957WXZqdkFQ1XOtw6RzSVbswE7OSW8J/FN3LsDY7NGA/GvmXBT9KeIPlUIUSe1zv RDMb5aoWKzMV4OmHCo+wTY38LfiagQ6iaDF++DVUL+dw7XyDUroVI+GmzJ/8UttecRXKeK85bn7 50k29QCsZToeFpbR0oQ1OkC0Cw4rOKzLaJR45B2xUELAJzFnocE2wnBFhuSh4gOtDs7uZDF4XxU BJBXQzhGPEFefvQfC9Dh87A6yN5FYAz7x3QMNzDDBwiEUdt/QUpBTdN5n1g4QuofRJf/YkN0aw1 +YBavAZX2hpdsuc7oNUvbi9XvHjhd5An/IHsBEfxLWvX1lKrXigSxgULJKN7cYdiy9QT/Sf7PQE bkNv2vq0f5Pxcqk1+zA== 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 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372708959158500 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:26:35 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=1793372742; cv=none; d=zohomail.com; s=zohoarc; b=FKLrPRCU/YhdQ2bcwk6RgjUzbR3iG9QJh3G3EQLI9PxQKNIOa9Ub+FOGv8pSoSIuvudG3dPkObiPvQ1fd5dvxxax4sbf4jaX7BBiNn7BnbIeTE+GvYcDJJ5se3QkyoGgLWDavFvEhDvMnJPOs0G4v/XowQEvWHx8j1kpdmrclCk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372742; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=uh7R+WUK65DSoj2eoTgV+wO/P005Serb3BiQpUylYyw=; b=aKHxt6iKmKcavpdwR84103bWMhryY/TjnNX0arukUh7BTWWY1tlm8TXSmwPCmX3ixlCUIPJ9UCXLZcYkEs6jFviWHMHvLNaQKRo4NWoXHQmletjnS4D7mf+ty0WHO2RDVFYlptPTAAMg/eK9wXxN554cNlhZOuQFmo08zcxJbwY= 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 1793372742394853.6935461333026; Fri, 30 Oct 2026 08:05:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAM-0002Mc-UI; Fri, 30 Oct 2026 11:05: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 1xMo9O-000201-T4 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:17 -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 1xMo9M-0007Ew-7w for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:14 -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 69UERhUE3207514 for ; Fri, 30 Oct 2026 15:04:11 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 4hme6qkms6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:11 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-9806756ea40so685322241.1 for ; Fri, 30 Oct 2026 08:04: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 ffacd0b85a97d-48e71b723bfsm3583392f8f.15.2026.10.30.08.04.02 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uh7R+WUK65DSoj2eoTgV+wO/P005Serb3BiQpUylYyw=; b=Slyie1Hutuy9J0/G hKEqE0Xg7iVdMb9DjZlMASMs93YRBK8yMPJiY47vmQoG0cMR9/z4tIFDIH5a5n3g SUW2atCmmTVtKoYhKMwe7G0MBnex+hhqaYGFmdUClaUloQIjboKYSxOveEqe7u5a 0L0y+baK+YxMW8d9Rocbdsq8b2KrDis7OjlrVeWQVofGB9gpGE4dVE4T8T1wXa6Z Ishf/pBkWucqfa+1YOlnLQtpfK//Ms4766Rmhd/2HsdEWYLc/Dy6gRPUGVj0JpcU GfLlj4wyFe75IeyTVKg01CTgc/oIo4pHFpN9tG2KqLhTamQ442rqZSJS5DANs7Ow deZjiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372650; x=1793977450; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uh7R+WUK65DSoj2eoTgV+wO/P005Serb3BiQpUylYyw=; b=e7kkE4cesR889fRm2GPL1KBrmZQsazGPBlFmp9isu8DQQqSof3Sh7QLlQDKBy5jiAE ED+pedBUhJv99q/lgDccx1NixY3pMFil564sFYD/Vb5v9X6aQBkxH8Enw8+Qo0sAkf4D w1TDwcchAQb7xdVJCDYTQTBhmU4jwnT6/71/jLCdr9Pw/91u99t7NzhuVnhraQQyINRm Qm1z9bEbsZI9OZNhKaxwE8E6pmgCaBJQwnjxScE423HSbHC2YB8+GBIWBJx86Nv0ZRMa ybfWAM1uHNcod6/WDwrcNuaxiIEvFqMcJLfnJsi5nh3EesiTDeNpkwQtp2Om4gYn4fom E+0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372650; x=1793977450; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uh7R+WUK65DSoj2eoTgV+wO/P005Serb3BiQpUylYyw=; b=mXXz3RCZXxWXnkhQ9RKCs/mZR3Y7xIWiz8MFZakzwSi8+t3QRvr2wz95FROotipgJG Fr8fGnralSBSN3r98O9+YX06/r56NYLCEOyonUinwKnjRxijBR10RZ7V6T5/8wwHQ/7X PFgmDZlbRYrld7EsbCfQfMy+DSidUpVn1ux4aQ6WZB7CdLXHPlf7aD3nZffsaXYo5E6X IaD/57ZTrBhkpY1ZXUtZcdu8mOjtXfF0gj7mx5DtL5PcbD5RhL4gQWUc3Sy7nFDivs+N eu7WWyKEpHT295Y21E/t3NeDl0uMl0lgSJVyzSpj505zAya7g7VxslSz2ICQJi3QLjvX s3JA== X-Gm-Message-State: AFq9FYK/0A0Z0mL94dqAXv7zC1Uvi/5KPWUEE2rVRxErRfpmLbl0oChB 0wc64twZ/n6oOF2Lai6skdOX03TFuV0yA7KGJ4aNzlBVgtLIeuACc2UtKQjI7vk+yU4ukH39Wm3 fFXmFs+poIAj18MXrz2JzSH/MQ4GEWjEdfjh3txVcjT1K8X6RO76GCc7ykDjRZZ3QK5Ng X-Gm-Gg: AYBFou0XCAEmjWoE8CJx/q972gnfUvFMqgHAAeaz2+uaQ77DziG6jxiyKnAfnBaKlFQ BPkMFHLAa/orTCttsTOyt9xEnx54xL/IFbtlZhKO1kylH5ksLgbUMNnWLHgMPMG+7t+K7aPTjqo 5/DWgrMR2VOMycok35hElqcGt/I8RzzXEaopXipqppSHsXPZyaWXY5/GI+m30ZTnHivpvU/oN5g WJBmSNkZ8nVkZfu229S6z4uRTEUJDKkZoTIBgzdSlZiS8TEcqG0ICLjL9HpBITBqgcqdp9PAlRe CbQmzkYHpBbziWPJG5WPV+pEo8mnOrFxZPzySkLEG44oK1mLnWA0vjJgSP/HYj24AvpNzVy44mD i0kQIhmNjXwEcJuIqLUaH7EU6NYvQsua7kWHUhYhxaf4GZcW950Zbhw+ZP+YEUEd3Mws8PoxW4I 944BYyPFXrJ7n/XjQ= X-Received: by 2002:a05:6123:86:b0:5ea:d0b0:e6f1 with SMTP id 71dfb90a1353d-5ec6871d3ddmr1289947e0c.6.1793372650095; Fri, 30 Oct 2026 08:04:10 -0700 (PDT) X-Received: by 2002:a05:6123:86:b0:5ea:d0b0:e6f1 with SMTP id 71dfb90a1353d-5ec6871d3ddmr1289887e0c.6.1793372649419; Fri, 30 Oct 2026 08:04:09 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 14/31] tests/tcg/mips: Group MSA bit-count tests Date: Fri, 30 Oct 2026 16:01:44 +0100 Message-ID: <20261030150202.61556-15-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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=6ae4b1eb 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=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=MrkvrxfUm_GaFPyPbecA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-ORIG-GUID: -4tYtETqHQOl-PSd57wYf0SyKDIqxwdS X-Proofpoint-GUID: -4tYtETqHQOl-PSd57wYf0SyKDIqxwdS X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX6i3fr0HTnGkY Szi5ka77SKvnE5Q0fhlf8f00m2lkn7m8iRH57w/zHpS+SlCD+FaZAeJT9yMvCKKB4Kp40e3RBTj YALuT71i4FZ6uAATFz1sZDje13SjJJyt4cU6JSiFJpqqEKv4Tvu8Tup1m7aWDjXsRogBNK3Yx4Z O2HOobVVGL9eQmY7JQz+sc3ehITGDKFCH5NdisV85ZWktIg6NJIlIR43m83WYSwR+LgFctYLbij /pnZVn+i0NKFPYpYM7XfPHq1dWnat4qHEX0QUwPxTWsg+eeERqBWxAtUQKQIw3z+rzYn9CMYpVy dtUyYNKPHgnReR66iQsz1x+LgB6hNTlD02L3FzUNfWh0mAThJ+1PAqx8E0RK/IPwr1rPPbKQEJ6 71UomtyIyvHRleQUIYibHJZnjSubvcpqze62hsGG59hlE8zQH+w0z/cksZ9mwSM630HPh7vOedH uA8i3ub8tbBfKmFOCOQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXxixTF+bCyHW0 zTthYSeyX+tVpP8YRoTPUUF21GGyHWVK7324jvsXFkkU28WmD3JXLyJrz5S/UoT0aQ2twVaGZ2E BLSHO1QX0aLQRbK3s7d+FwIKi0IGZz0= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372743496158500 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 | 2 +- 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, 107 insertions(+), 15 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..9ba877d84b5c 100644 --- a/tests/tcg/mips/include/test_utils_128.h +++ b/tests/tcg/mips/include/test_utils_128.h @@ -59,7 +59,7 @@ static inline int32_t check_results_128(const char *isa_a= se_name, uint32_t pass_count =3D 0; uint32_t fail_count =3D 0; =20 - printf("| %-10s \t| %-20s\t| %-16s \t|", + 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]) && 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:26:35 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=1793372826; cv=none; d=zohomail.com; s=zohoarc; b=iqV8B2hz5O3TNs/K4WqC7NRxddVydbyxGWBNHbyt+leGn/CixQKglvBTGB0rdhV4z4CHWGoyyVPalFkRfSiXRzWe1bn4YspwrRCrWLk1RuT21EJPobaVsCjoaio+x9NMCrnnge9GBbqdwDfc3CAv4a2VLjXUBNj07JbXwAuSgGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372826; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=gj7LXVs/irDU9tb63Uevxc+ftdg63q9sAo7Q0GZJWIqfPfYfhzQSBqPAPxXI0+Nuvi7Cy5F87ovTuc2K1BohXetBlMysdsmn4Gsw5eso3s/6GgvvqpZXFAHvzyCKDG5Qq+NZlEse0WRbTHKC0760S/J133J9iA60KlpDuR9h5Iw= 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 1793372826894487.7154597781242; Fri, 30 Oct 2026 08:07:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAq-0003PH-N7; Fri, 30 Oct 2026 11:05: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 1xMo9c-00025B-Hq for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:36 -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 1xMo9Y-0007Ff-IG for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04: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 69UERBUO2494589 for ; Fri, 30 Oct 2026 15:04:20 GMT Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6p3pkj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:19 +0000 (GMT) Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-5ec62c05c25so1293948e0c.1 for ; Fri, 30 Oct 2026 08:04:19 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71b80eb1sm3916436f8f.34.2026.10.30.08.04.15 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=lzYpidYRo4irZuhR pyFV/lD6efnLwkkTlYFb1QcIi2cjM/70byoxyxAJGOivID9IdRD7S5dacKhUTTEl V/5Os3JrXqIl1y2wzWSeCQcVzaNToUN/ibxxM3MfGezSgSWfalrOmiLUM0f3Od3x X62v01CUvbPLfxrztz8ayDtfxJ11FUQik9c1oA6L+8qpleNgJZ66KMPT62ALesII Zj+Cn4E/tzlakhTQwya6TjuWjHxXQtFdUWpzDYMPJ3MmHGaGDoIn4/+m2ygQARdC VE/9I+hULx6JWxHc9quRYbv1nnpLjZh/YL96uN9cfCAkF3EaWkMyaHHMRrwZrGbE fY0Ucg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372659; x=1793977459; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=TNShIFEGPcTRi2cPB1Az5lspC61CMCuXnnunOOo0CNl+rwqTQ3gbUx0SdAeCqLHFu8 vCBb8Ryw2epOPVC1OzrLvZm0XLgq9SZiJvd4Uue5W34eTqVHT4Bz44GgyAg/85XvDzmf zYNdgkA//+RyvJHmpltrnmsImfkO4i0J5uVuR4+BDXrByJ2eXvTrC2Gf6g07u0B3814s PZJ86066yvYZVHvEt+LoVe/M4OM5J47Aezweyz9vIZ0ZNsuWtuHRlWA3PMak4tY6p66/ LrAvsF9IJg6wAQFfNdvZhCBpTkvbltGiheqFOSdN31qDv+lXRiVkujElVhkPy6uQl+Qh /2FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372659; x=1793977459; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=U+DHhcr5Gx6BqM4F1GfoxoVxHm3uq2UsHlTMcsYEsgc=; b=189qZ/cMD1yn+SKuW3+RFcFHPLqGkH4gFd7AQWaI4oSI0uNzDiOCTDzuNiJQCRS2wY 0OPK/T2ozWqyETuiD4+gf+agu8i/hCd96HXdjLq+gsZ/5cSaipUWT+KURtB4To94lhWx GmHzjq3HLO6DlKOapyIx00NNaHbBbyhQRWzaehermrAxmAaOuRC9UL2iYNj//GoAbvbd 8f9SgqnlUpVWsA3Tq1EiA1Xpe9xOohWQuE0b488yyjEK48MKpFmYZg49QG9leC3tiJgg lgUWqv0Us5MK+8qTqFu0lgyur68X5vp8rI6Hgc24e72t+1fA5gGLhNuEBmqVFl+ZfAxg ISlA== X-Gm-Message-State: AFq9FYJdq1c9MwG81vGKED++RZJdUgo6vnpRYEjDkKJYw1oJRnendW3x RLiIS2nWXtczQiksfI5zFIxmoxNxM44xtUYZjWAwT6j2+utnbw2OSl/nao2pc3Bx+A8y93GFTX6 dgYdHO4eWwX9l2dQnWUkZV39JMeu3mzU+vjIeToUXyW8cJreKtppR0wpWRxgfi7ZDvEtO X-Gm-Gg: AYBFou16QdzC5V7aCx5kSeFFFiSxxkmqsxtSc8psn6lpbBdRqfkf4r/Tj900pohMXQL rshb9HNYhomVFm3roy9mXzifgBMcmZ3/8E86iNQ60Vc39XxB0FQmC3G7DUoozLzSG4pc0ceEDIM 7GRvH4ae5yUAaz6NzK/xEDZO8MefTNtnRMYw6NZoeNt6B3R4l5UxdCJJk5/vTrQBScqN7eIbEDE VxORqbotEVVmen4tpHBxpOJDhit6zIqDiT1DBtxfUHVKYCkUtVWCVM2msXnQJRqiLtWZyvt8PdV NMNNt+4a3aR+CZ7TLYpEGjk9vZ5TnbZgF1lM0/e2pvhXdEeLfR083yG1bPoNbKk7zwsCjZSN3hg cF9UVJgg5kVmCCDP5Y1qMm/djhuhKCWTHsURdNiKMobMm1toxLYUEYInMBkCxwRK6be64PzBrfT kie4tY7vTiqeNWeQx6pyKBDRFGN2b/2w== X-Received: by 2002:a05:6102:2d0a:b0:7cc:905a:331a with SMTP id ada2fe7eead31-7d072d6f57cmr783006137.14.1793372657802; Fri, 30 Oct 2026 08:04:17 -0700 (PDT) X-Received: by 2002:a05:6102:2d0a:b0:7cc:905a:331a with SMTP id ada2fe7eead31-7d072d6f57cmr782992137.14.1793372657210; Fri, 30 Oct 2026 08:04:17 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 15/31] tests/tcg/mips: Group MSA bit-move tests Date: Fri, 30 Oct 2026 16:01:45 +0100 Message-ID: <20261030150202.61556-16-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX45NAqNSlRbXB psgx7xdi9jd3ryUBvWAGhl0DxwLlCt9Yc3S5e/emAJZ7Wn5W/Rh+D/2A+4bUWAk2/aw8yzn6tqV B5tq3Mc2YKy1KJv1odXgOr853eS18x+6ANjTJnK6EWTwFC7neibQ2ElCogpvEKb8U1tuSn/M9BL cSIXr9u3dLxn1RiTjHRHJhhL8IA62XyoOQqz0DQZidRmrVjd1WSS27zuX/jiz/2ufg5nvr9mkeM KAFxSH7N/8q5otgSPFIFLVHs7TuUbYx0ZYxUxsyEZaMllaCtRQVWd+8S5jXdtSDmXWgZcqOq9o8 Xvi9XU87XmHy8Ejsadz06mXYSKv6XJAPF9m8ugKrceKRUR4mL9MJPfvaxj70HHh9ve38pbKq8uV rKxyK321u6ywmSyiUODybQ+0kDiXP2btNsDEcdsj01g2su42mVUt2juJ3yUvsa09urNs6FtceGn v+nVVKrWS88sOuGsp6A== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX+v+qY2o6pKXv xtAg/jAYTnPMGluav2IMp/vtIGXvLiji9B8Fesg2XIWH8R7sQEqM7/D4FmK2FFTIcwZCgCcs/9r SBtgHklmZax11ujv1m88DVCQULFEVQM= X-Proofpoint-ORIG-GUID: krAfQdJafD0Olug-94tMXc0zauyQItjt X-Proofpoint-GUID: krAfQdJafD0Olug-94tMXc0zauyQItjt X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4b1f3 cx=c_pps a=1Os3MKEOqt8YzSjcPV0cFA==: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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=hhpmQAJR8DioWGSBphRh:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 adultscore=0 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372828155154100 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:26:35 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=1793372751; cv=none; d=zohomail.com; s=zohoarc; b=OeWzj/XRtBjzEBHpZLdAPU+/cM9PwzCBREIx6UKnMmVlfdHj+wZdawEjwq43JrSDVxTx66bp1I+DOs/F1hl874DbHAfMPE//pU+6ip5IKT686/b0rK83zZIc0CRNqDxCi1/6dgWq6kaqk20p9OQpshj4lXMiT+aumKvZO8/V/Hc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372751; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=ONN2vyjeHX+zkFed/9i56oaSiyu989svwBwgUfw2VtXeqvZALkHkpbEFNd1q+clhhH/6qMdNhn04zSHyCF+tbV3Yw6EVnDYneXQ4jnI+vp26vDXBER4h5TXCdKKeMkgtTuS8SncVgYdphO13chvr3XH+4qloEFb/82uBAG8khAs= 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 1793372751520328.1743137184325; Fri, 30 Oct 2026 08:05:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAn-0002wM-SK; Fri, 30 Oct 2026 11:05:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMo9e-00025I-Is for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:44 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMo9c-0007GJ-Jt for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:30 -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 69UERFcW3552465 for ; Fri, 30 Oct 2026 15:04:26 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 4hme6qkkd6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:26 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7bf45382794so627678137.1 for ; Fri, 30 Oct 2026 08:04:26 -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-4abf396dfdbsm69083325e9.1.2026.10.30.08.04.23 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=BHBV1nyiExiyMX9x sDwNT6AsH7LSsZzutDA0hdarp/togU2OLw8+wTmTkWjufg1yMEo1Q6tN5dSu5g5a nZtJj0GV745stUtwV5TNYSTZpXZ2/hMUJ+YRxWpMYSkf5T6lcUglCylsfwxwrOUS pfXGI2FPax2Qec3ySS6KtnnSQkwLACakGZSAx7LkbuhNG8GMUgV95GF6Xr7Ujvvn FO7xObKovyBbFMe90SJ9TIHdCuNlT5J+C2Vfv6oBz7OYhBzrQqXtYPAsLjLCAIe1 XaZdzzrGM53IlsMAnLUzzExaDEYRavqR/nNqbQ7svCFDOe5Ed7RNK6+U89e2Qq/U mEkcZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372665; x=1793977465; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=UJ6rNaGSezghIetlzctZLHRH6ZhSiqBVd/s3q8/JOMg=; b=aKy2b9rba2/v08R5EIZiiuhz8Y0ADedzKySDK971kUhXRSQ4zBr5SmQ+1zcnP8B1uz n+AdqcBPJrIgkvrM132qbU9bYMA03n5LAoYJPNcCfm5xrGLIm/uDcf5gg5IvD6jcUtUQ BuULP3jfpqOnEUTZscfdrI2hsWRiXD2+3t0yCFrLiBsdcPHbJhWb8jXX+F0bxhzLhmKT gJnOiBmErsh7ad7ayh5msVSu2DmP1ZMYz3RMJhSxnsM3UAlB1XXZiyQmrw7LAB3Q9pJt Jx6LfBxGOYfNdQjtV2adCjpACB1rpLwfvKUwuThnAi87Zs0G6PawWuL2Cwdszkff4ZRm gwxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372665; x=1793977465; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=zlboIDvZregDXZLv7EeMg13vtVbBUunnnknQR7nj5PB6KV/CrxCibCUdi5HB+qDduU iJhwvlaOSXewWFX/Oysu9HMtexmZNeZGnEFEtn9XrOUOWt1QVgl0dx/sbxvj9F2rwUlm UC+B5CAU9bityQfXasnuTGIUBJa2sZSaE9SO3qklGrb5wI4cv7C1GK96ysR8neQ5Kxnz OoxbdR0KcYeUzzN+3gNjsr8zRmA+X6mg2JqzxR/LKZu06mniC/9H++2CAa4niRG2/YZj IprSYAmbpODSuB7QyR+ERGUXdFT77wJMlBizcOACNR+kZDQTcQYGX0ZBiihkDE+Rb3Lt ClwA== X-Gm-Message-State: AFq9FYLGgdCHtbRLTUE7iZCd7604dqVKlHAcTyxIMvbTd/EydoxJCzFG K+HSFGW703AW2q34fDurxcWSI6kM9BxI8qXRBX+ucOKMG4Jt8s23F7a5l8qXxyn4b4YZlwfh5lI fKFNGq1RqQa6sl2n4Al8utvplElI/7j4yUe7P2ET2ON2kHF1drvMHmXc36pGnpou4j533 X-Gm-Gg: AYBFou1ydsR9uqHXL+g4bN7VzSdvWjs+IL+/c/OaJHBw1eOMC5ny7R4QhTOBi3yCee9 EZYf6mh9wd+1YQLOar1Xp6GAHxjBlIxhjHXd075tOFMhnMxNZKMOMVw4KSq4EflaimkId0r5KGg DZs0sEEzUQ0l1hM32WT60aZLSigu31MybwuAHe55nquypXpCwaBAXsYEwPdiVI8gge1cMe/Y5Kc P4dhMOUYw6t/RCfj1jSu0E9kxuBiJMTbHnIWKqDWEFYKM2AvGyH3vetcfuqa6QaAcQWQygtYmCR OSIxS29r+FP8BpuH/H1k5ntd9wy+yx5WVfLMqnBIz1VXbjgwpGontuSpAbNvqA1RzgI1fpeMUVO 5NmTya7VORCnQdihQiQ9PDqCe5IJ6JSJrvM9Bitl2ufGtGgSK9OMo1Vc7Nf+hlRC6QVAGrYXVsX 82vDIytk39DCHgyTwfzuZIsZlOiDa6Pw== X-Received: by 2002:a05:6102:e10:b0:7cc:26e4:193e with SMTP id ada2fe7eead31-7d07274b90amr1378109137.29.1793372665127; Fri, 30 Oct 2026 08:04:25 -0700 (PDT) X-Received: by 2002:a05:6102:e10:b0:7cc:26e4:193e with SMTP id ada2fe7eead31-7d07274b90amr1378054137.29.1793372664547; Fri, 30 Oct 2026 08:04:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 16/31] tests/tcg/mips: Group MSA bit-set tests Date: Fri, 30 Oct 2026 16:01:46 +0100 Message-ID: <20261030150202.61556-17-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: Y-MzPozlK5TmbNy97bXd97PNre89fzFj X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX4tVGY+hEwxP1 PGtvUVyhsxFP5UiYvsppkJfO4WVaf12q7wiJH0vWMpbMc+1Uwxmjka4UQix50xxe2P/3dMf+2ws DBjuzkITJoedCMHAuuiurLgaw708uIk= X-Authority-Analysis: v=2.4 cv=DfSCOftW c=1 sm=1 tr=0 ts=6ae4b1fa 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=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-GUID: Y-MzPozlK5TmbNy97bXd97PNre89fzFj X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX592SJGAJU/wU f2QbIhdnVlLwnI8SWam9KMwjtKg3Nhlh7KFekFAC6WFQuHow9/FdDYCPGu7dm2sMScua+ab69oE gJ6UGY0YgP3WhiNwj7gYJl0mcpHKzP5OEKSnNhOFHwsRbJIH9wcFWuhjfpKV7kbsCeTNWhRSwTb qGqVwQwjLCI5VY+9c82KiH4yIN9Ey9ttoFG5l3ADGPmF3v3i6a6bH7z6kRqcGEn8xn/GdfK+3i7 iq+VIJoTB3yRh6ei1HojO8lwrmg5DRJx2Oa0QwSqIs1Funu6p/PF0dzM5GHWcwdw3g5zh/2AttT jqLoLWB0SJF0fubX6oBPF9P1dUH/0iQSeyMRUoizevS7L7v6Jwk/Y+Q9bckKN5NgeztSocPilnP moAavWZWPkxBCXZoabWGJZ0t2rS8ybtde+PwKW+lcgTjqhJdCSptIQf6GnlZc1Mu1t5ow/hishA VUG3DuEco1+gBlsrw3w== 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 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372752982154100 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:26:35 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=1793372742; cv=none; d=zohomail.com; s=zohoarc; b=C08jVCa+FxGqHGksTxqJuR2BlsXT3KFpheDb2zFkkM5uSeJI9VRpAF1M876JaG7fqC5PDzGPZNN/SJ80TSCaPVPNuqs2hCdvF9HLVyrkHHrSeW0NocGxk4sVKmi6hbqBOMsEJLgIWHR7CNDKZYrQfRVE5k7desaXrIC/IfOnoIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372742; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=gNwjUkqihhKlt3V7hlLtKkjxfFz8IctOfTe5Tu8heq5amKSDqL1W85FycvklwK08zpk7Ttj6IkPvCUqdupQncaHxsunLwqIDZ7RUOKv4jxoGofJf6cPkHP8w3q3vZeFL2VlI2DpyCK0GqowyIFcCR3v2NHQoMUXfw8km32Tvl6g= 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 1793372742385359.03937740782646; Fri, 30 Oct 2026 08:05:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAc-0002Ta-W6; Fri, 30 Oct 2026 11:05:34 -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 1xMo9p-00029n-8B for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:48 -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 1xMo9i-0007HF-Nl for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:39 -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 69UESGFA1954473 for ; Fri, 30 Oct 2026 15:04:33 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 4hme6pknep-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:33 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7cc06b9ca9eso59237137.0 for ; Fri, 30 Oct 2026 08:04: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-4ac09fadb75sm38982035e9.3.2026.10.30.08.04.30 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=b60MtCmAkpjbxFqi RegLAYdpwSbXzAl8WR1Wx9BPpkrlDfvQkJAK8CJ1s7dn5FUDuWkqUkc2BqPmIimA Y8VHar5BQiTb/pRbJl6MAJr2gev4qggIwQRiw2gQWl0hu9VSctADLPKcTaTkGVtT CUww+qjF8kZ56qYkU4V1gQ1PD3TKO55CJKwAGSQFEfXGd3QuaFlPu8Yv912mSsKf 3h3Eiva3bbdVmteAicgQeMjscwWUfkK1tfqs16gycqZ6kfyN7SxIQnAqOQ6cOdQ6 sM/pMnUj+Wb9nAVlO/5BPEw7Yy9sIlAiEm1kuh8Blh5Igf9JBv4mwVbJBUFu3K+D GnqVLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372672; x=1793977472; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9BQjzX+azq2orh3caPQpg5u7CALnO/bV2U9gqPrzxVI=; b=i47pMzup8UDfEjfv3vwT8ZvZzr8vrz/uis4CejFWSDR3EhzBr2o8ZJ5pTO0ej87Jgj 3Tq+UtWTbv1z7OQbZKzG8i4pcXKTvZ3F4o9HP9X/ZLdvO1/axaKrc+ac201/V8XjVv65 +GyhuyEZQD2JhawL2wmB4OzyTyR6+tajoG/oCSNELnzA1DctzX890xMYmuT0N0QVd9Mh +VLWzAF+/pAqhyFuusVM8Z8Glt+s4CrqBGhPrjWEuNJjGnfa1sEXJ5AdF+hNEy530J32 2UkHQATqqPcgnGNCBfHDBm+Nwn90Kwvdww5vX2+Vy6s72KMWZf9pC6KsHMc4tMJf/LlK 0TgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372672; x=1793977472; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=CcXpbCQFXaVxdAAqpgi1quDx7oi1EmVuq4TPVhnY/lQgnuqXPJHlnnt8/smQdhy2gU BjXK08L4aAhGDn5zUWWWeUp8QCxB1EYQwZLjg71KTaJZJZGenUndGyFNE6IH3002w/RF ZOddsfa5LfWPglDPz+Pw/f/q0G/V2sinC4xmWNZhiqMLInMm7/PM6EfN+e0T4H/XSrGE LmYloaBeGjxVis8a6/dCkwvKCYoN3DG7oZhcFPEg/0GbyGNGURDbknKpHmv7FwX2/t7W zVkgO7+/pkCZ8Yssjq9pxBhHzNSgrMeiAvKiXIb22Cod/lv9x3xfGWuWGUOKHmJN8oTF Genw== X-Gm-Message-State: AFq9FYLZMEWYIC21VZsrmzLF+dXhzTyHSlBX9WUVzekPEgSFJQArBx98 YyzmR9d41NPquhvYd1lDeLqJptvIxBfs9HOEEqG9Kt3ccd2Lh7CulTceHyPOlK2VHspwkl1M2Ba ApP+Fek5ONpdm0viyPG2jNGhiS0r68dcZSSoX+trUHQrbWFrgsa5ILt+btWq8zYg8n610 X-Gm-Gg: AYBFou3H4w3+W4OuKJoa7dmx+Nyc4aTovK7MZPsH6lldKeT85+JhcrP9GNRQoyFZvRv IZY+epq+bg7z/nSXSSEqgZ5JcYhlnvoNvAB9+ZQC1JMeSxIowFJjZUg5GWrS6nveJ2tH9yczaun 4R9BzTRTXFEIX0Oqth69RVLylMHiiFla94J8XH8PMgLaV84FeDySxtQyhSQQXdGSqDgPJbRDB1F oiZ/0c0n2CIYtN9tAMI2ROANg04eESsO46XrDtZhbTii5hAfmhaXHNTK5bx6yco+E9MkZ1wdw5Y 4spP8IaFeN9qjNxNEMZ/2vWLF1x1SeHhf8TolOI8M7sRbD2JDbwy51/iFJOVd0njKb7v37Nzg67 8MJ/4AoptFZmfbSvHQnRZmsoIDMi0/cumP1KvtwP8FGswXC5vltVPGCyyTPTOD7ykxqL4A34y4m eixpsl5H9tAGnn+ioiwerPjPJg78kNwA== X-Received: by 2002:a05:6102:6cc:b0:7d0:3da9:3e16 with SMTP id ada2fe7eead31-7d07227aaa9mr1244613137.3.1793372672175; Fri, 30 Oct 2026 08:04:32 -0700 (PDT) X-Received: by 2002:a05:6102:6cc:b0:7d0:3da9:3e16 with SMTP id ada2fe7eead31-7d07227aaa9mr1244532137.3.1793372671398; Fri, 30 Oct 2026 08:04:31 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 17/31] tests/tcg/mips: Group MSA fixed-multiply tests Date: Fri, 30 Oct 2026 16:01:47 +0100 Message-ID: <20261030150202.61556-18-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX1M94CQ6v3rTU /FMNy0NEGYJEIlbQ35HDPNFGCBavFUzrA8RVqQithMGmk7F6iKX/QXP2PPmxqaBa5x0ACp06XQA pIs4zJ9PwwLktIuh7ZXR28A0JqindFiipuut20/dAbAbCKCAse+fXZ7j91CA4Qe5wcYX6pwMp96 i4ce8hm3cWDL0F2IWuR8jW+mp7cs4xpTrC2sCEe/wbFfP0jX8ktLQGku3O/WcCO8Po8D3S6uPMP CgNhFP6U4yAAl01kGmHhBwKQZVlPjiqENwtb7qJQK5lvV5Sc41JgqnE6TBiJOXLFHoGBUkJVmdO DmJVE9T+rYbM1j4TycDuCilHUqK5ippv59PBQRu2zUdtM5Tn0ugsNodgVYtj00Kd5MK7zOPqS+2 5uOl63QsGQjxi0GO9bR4GD8RByCSq3BM4D/LFJFeAjHH8y9hf5cXUeoJZY2vyfbF3Hjo9NERjlw L/idIf4eRNpMaBW/eIA== X-Proofpoint-ORIG-GUID: J1Npt6LMEdh8vlUt94NvVqMrhmAP0O7m X-Proofpoint-GUID: J1Npt6LMEdh8vlUt94NvVqMrhmAP0O7m X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4b201 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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX41ivPTt+Xg0l bS8hFcx8E7jVvcip2Us5qI040hcZth92jRSXwWxwqhC7hyfv54O1o/nTWrgz2OggvxwJ12ilcrD Y5bioN7r6E8rz+BhHz5+WE7q7JH93w4= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372743419158500 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:26:35 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=1793372823; cv=none; d=zohomail.com; s=zohoarc; b=diqOyAA9nv77WyupGEfo1DM3i9Z516MeIBs2LlT0llaphppeCCdDapXCTY/DaC1ZcgJsmTWXn315Uf8I865G38jXWQzxcoiOUZX2hnthnUMaejuEbNRJy1mvptqi7QsfBUB0nd811D1fbmZRPWj0HFy7WY911tqucm/ECXcb00E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372823; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=IvFWtBVGONRMiGbEkU5WJI0il2CVrO7QktXRH5qqf1GWPOWw+Y2acAS2dgzGcgMDxkKYq/rmtilyv7vLsse+6vwXqxmvt+ZHml6PMngaltgIyboUDuM20WcBZqLMwNc/WeEv8pQyNlSpJ9f6U3pjaeKUZ/NFxs+ybqTkBZM6KxE= 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 1793372823552484.5105830049512; Fri, 30 Oct 2026 08:07:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAs-0003dj-TC; Fri, 30 Oct 2026 11:05: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 1xMo9w-0002BU-NV for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04: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 1xMo9t-0007Hh-Gf for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:48 -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 69UERnvQ1953686 for ; Fri, 30 Oct 2026 15:04:42 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 4hme6pknfj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:41 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-988b86c66e5so1569885241.0 for ; Fri, 30 Oct 2026 08:04:41 -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-48e71b727c6sm3810042f8f.16.2026.10.30.08.04.37 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=eJktbHxYPPxuqLGV wDbREIb+GYkTZxjptU82wYcMp38tIEqBsfAqmCYGj04wANnRIurggpO6fN0xMYr3 iJuFZl+2vGHCYbleT9uZNs9u+QzfCDNCzq8fzdXKiQwR6tXDuu8JjktSiwmMfMKe d28Zpv2ym+jwa37WyJv5Ri1pMjbsL0VdI+UxOCd3P5mnFnxAPq59T519gg/r8Ii5 yr7NcxT7z5/YK1vLa5gEah5JZXFWhJGcth8eCbdF5FLe7orZ6VxBtXFi5+GZt1ro gOuAm2j4E/eYX9t2BnoRXkQ0B4ABmJDVgslEZJji+UAHrzQWU2vauUfzxg0RMuIi Vmggnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372681; x=1793977481; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=IeSLxIPb9Xq8NfjbEu/XDF1QpvsCpOIiHhkBp68yzSJhXTxiAj9gey2D6001OjSw6W qwtKjlPZsfXSzPt/pQSEXxX2e5oj6dGaSqNrrJIrwSy4V7SxrQBajoI2A2/xKXdrGiuj dak8RlB+StP5HrWl6+3NBALTBJv9Hha7TCd8rC5o9t0OEyhvL8qmrMDLka/DcmH6emKr 1RqjeBYUCoTbsSEQiNgvmUqhHrQGMT8gWfpNvJDZhe6dp+uMnTpEw8WB6MG522NUs3Xm vz0wXuC5s2pkfUM12O3S0VHeAQcsU8+hVICd3VnBo3u1kr2qSyP2l6ZNHtL7Vilmcgbs Oq5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372681; x=1793977481; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NGE4WrTGJIc4moSGjwi6R1+HFVCc3oj2PkHiPocQhVE=; b=G7CfpJC0eQMAZdV+rRv9BcXE2s8hhlRnCLKmcQdMHnsJJraXMDY2RWNV1QK64/aZAW YrmV6CkEbGYKWKECmtzndIX5h4hjyEq5IcTExFNWZyB5vmEWknDwRmgNXQTC8rcOuNbm oEJMOe0nQFuw7g0FwSfIzAq7Myu7Zv9Tx3hKuyHcIpQFD3qSpiM0sFG0USkAvf0Ph95t kfNVWbFa9UYttiVdinHkOGjRelJBoO3Hn5n7FYbpfHQf7J/CYXicPelwnV7hZKxPRC0k 0G6TU2lOzMMFTtxMtTi9nlUHebQyOGGHcaeG3M6MwWzJrAgc11ijACATk/fhEK+ut05g FgKA== X-Gm-Message-State: AFq9FYJub1Hgwxdidi1obLUZJtPYO4AFXkLzoIQ6it5x8jlya1GpULfz AFgfFdjZ6QAJv3uXFAZtJ0YXklZjR6hOWrZ5NNnpVxhKnyvWwNqvNIm1lB8ez9BenFUax9QpPIZ yitIft+B4zlmLAr+C2pkHaqc67AuW/udkZhMzIrU87SyOj2dXRQrWbdpdajEDYhPD3Ry5 X-Gm-Gg: AYBFou0dfKjY3MscJzekx2HKf5SbFBl0HEXI4j/vWE/CklMJ/XhD8oSP/6bXgqzD+ZO Aok2Eda1A0GCXCZSXDqSh9Jn/kB5S8mVTm9zQucOrnh5G1/uc70jyYjx9/XxcIWNIZ+yYtg0uDF 8D+2zz1cwc/R73rS8wrdWNR0euauOzTfPpMu3wZT+wpNF5zGjs36MRJ6MijBDRKqXKIjrySh6fH 4goguUUtl6hSJKknVk2SWeaBbzAzxIUM3Ayd7ptD9OhI4tg+u0goilfesxuFAB89/Cy6zWVXjjt l8jnrbIYe1jYA4ahzOwz8sLAstoWzSboM3t4NmT9jvKs4E2yMX2QFn+00UqLfN7iciW6MnndOkg +fEyZziAmgyabQPIk19QVDcpIG7VUy59DvNWWQJe78LSwlu8s5MkLRlgJoV9IZ/CPZuMlhHPITw oQsFHrUIc0PZQHKoWykhjOoCAUKY0T3Q== X-Received: by 2002:a05:6102:4455:b0:7b9:5abb:eb17 with SMTP id ada2fe7eead31-7d053f224b6mr1584970137.3.1793372680358; Fri, 30 Oct 2026 08:04:40 -0700 (PDT) X-Received: by 2002:a05:6102:4455:b0:7b9:5abb:eb17 with SMTP id ada2fe7eead31-7d053f224b6mr1584903137.3.1793372678315; Fri, 30 Oct 2026 08:04:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 18/31] tests/tcg/mips: Group MSA float-max-min tests Date: Fri, 30 Oct 2026 16:01:48 +0100 Message-ID: <20261030150202.61556-19-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX8tWfb19MFuGa BIYx5NYLgYMPfO2t/Go6sOFJThqn1RwC+fh5jbmx6LYUFgiRbb+I6o1xL8jG14YubvpNZNFFvo5 cud/NNB6lXtd+7/1MSfmXhIs6Sukd+UDUTgNxe7Px+3HdKPoh3sZwu+WngUOh97n5KH1GBwogaJ Fz+V+wGc9kCZdLc5VK3vSoCpVuh7bSaNIUgMkBhypqmtYk65BlNaTMk0ZGVSFP7iikoxDlnwGF/ vyfbiNCk5d4t398NoS1CEpCfRxN3yDVdnTH4ExkZCVSqAPI5UZ7a4mcpSBPW4m0ke2YZghCksCb kJwfyjdRPkgjQAxnmmDbrayGFDrY3z3vRQsnj+//MviOPCBgR4+Uo4TyjKtVHjnMfZ96Ap7/6RY PHCNy4Rk0El9Ut31iPAUS0COjcP5dtLbvpOxqu0lq+mf2cRoXKF9RS0K1fX8CM3tpLVh0A2xuJe jXIMDvFHNhKg0Xr0t1A== X-Proofpoint-ORIG-GUID: 81ro2eQAKDO9kyBXlQRIgBeavatFu_xG X-Proofpoint-GUID: 81ro2eQAKDO9kyBXlQRIgBeavatFu_xG X-Authority-Analysis: v=2.4 cv=AJ83otAg c=1 sm=1 tr=0 ts=6ae4b209 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=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=oKQZkuFmXZLJHpf79lgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX3pIx2hy6wg7w W1u48OnSh7S20XOhRJSHV35bg22PPX70sVygeLw8v60yhmikKg4F/s5WAUhAp5pkiTnIO4Ifhvp jVcxyjIHt3kwiSWtb2K0NgKh3Gv4kaI= 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-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372825844154100 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:26:35 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=1793372767; cv=none; d=zohomail.com; s=zohoarc; b=KTJzb39XQNOBAaXX27HqSEsJdamk0vP5uVnfggmq9yOPNmPCcwgIYl8N685HF3a0hOnXm94UxqGOluEC1eVEF9GaHufFn9HyRuvWtTUIF2Px3EqSFr9gKgbYXy1gOq3sUvLj7ECzJP926H7HnwbugoxV6D39gOtR2smoXG3iPRU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372767; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=k740gbO15Qwp4O+d6oI9sCZTbjBnbHFMECW99R5j/PPwFyn4W/l/FJVuO2Bl4PVKlVA9hEU4J2SAQL051hs0QI6s/2lYPbGe5d3KLZP8Qc1nOnmQXxzMqrSrAKFZsdsZ4LfKkis47De0S6Rk3bxg8Q3LAskp8gyHwaw2KgIpDFw= 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 1793372767169943.4640270962049; Fri, 30 Oct 2026 08:06:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAo-00039D-FH; Fri, 30 Oct 2026 11:05:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMoA0-0002CM-LS for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:59 -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 1xMo9y-0007I3-N6 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:04:52 -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 69UERDD34141549 for ; Fri, 30 Oct 2026 15:04:50 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 4hme6quktg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:04:49 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-99077a0be0bso171963241.2 for ; Fri, 30 Oct 2026 08:04: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-48e71b77f06sm3714715f8f.21.2026.10.30.08.04.44 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=Q3bvu53wbQoMvZPw h6WJFlU87rDTsyvuGylNhNWaFLq+MhfI54DZqRrr6Epge1nOlKNAcdH3UZAqo8oT U8OegHo/Iqcu4p1H/hmfyLK5x1BTIhSiXrnffqW3Xdrd7doaRF/Pnzy/RJaSNqxe 0KT5DyKW3S7QYYeoCNVhUiJnug54Jt3lBlKiFmTgL3IJ561tVosCqRB81asLijdn MmfWMX3QACwu0B4bSpkiBDBblAABNuB5hs2yqoCxHh3eT9vtV/vTPNKYzGGu1cjI RajRhzB0Ob7/Tw0hCBDN/doo1+eD2l1W9zDk8jcaqHM49f8DKNYJotBELifb+iwP dgq4dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372689; x=1793977489; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nIdTSnbDPwBoWrYvddDmoPQ/avQDUjcefX+hHH6Ng64=; b=ag8SzxbUyEp4NPMi8xwurz2a3ZTYQsHcn3Ff+sV1Enf6H9dU4GGs5D+YQ1FG3N8nlC h0wDbSsa3hD6YQwR82TC+V2q/Nx59BKIS1FGBMh+/cSPpuzdDUcUOFRTVl1p4B8xx883 2AlPx+sNZJ6lGq5eIf/UaGh4xYdlcdlySdSVJaeWdUAeUIBYEThPKr0tURnOrq1Cp55g 97pf+kpSMLKVQg7BCT5F+pPU/wh3jnr6L52GfouBg5On41k6mmCFBch+CTW+FkVC3Ro7 lyoA7fIpRWdo527lmiE4S7GzhRNEdou42fWXE6onvWzJ4tvDuKjiM0VmMS5Gg+5G/Pp6 RUZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372689; x=1793977489; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=hld/7xqXwHDNs3Hb4rDDnfOsB5kZYZOU8UqFq6b4lkOMyCuqNWew2w3ttW9NoBJE3u 9/VPAko0MUwqoc8+NDEn7mOpMbMZT8HBP7Asx31Vodyjl+6OtMeFevaBrQWhCWDdqvZn i+xSgvb99PCTdo9QeM3oR223aF2ickmDv2x9YWuwk6EB32DtsQxFr7hNCtQeXL7v8Lkv iMFQxOKkB55sBPHHWKrhwyKGcfPPQ6PNrANiMG7TSN87rHEVGdQZbtB35FqSoY3QwN5X VzRV2H46MlkY4ITs8EYlRJTAw1IbLdRzS00kYJFBUC65q8CfarsywXJl8IlQ5JjcgekQ VeZg== X-Gm-Message-State: AFq9FYI+97Q87KJ8vzJgnrEi6PCRAo5+s0g2ueKXdSV6vGHmPG9o1ueU Mt8sK6MAwY0MlyJ+0M/5tVRB4sw5iWPLFGaeZuo5mCfOBlFinSNkRjS8jJg23gDh8db1vGQvui3 xgnLmpBzLS9uA3I3LjSPH2X3xvCJdJ3+IE6HRxj/qjPEaE6N7orlaI5p/qb9wys8ejxEB X-Gm-Gg: AYBFou3xVSPlKSwhfQy/L/3CGPUaoQR8rmJZoezkan0spK7pFDU9zQ7aM8gMWhvQVSl Ma0R1q8rOM93UZT7agSUbU+HP6fOpXKCj8/rxYRbXwcU12YxMRYNTzvWzfz0xH6I75oJ59fvK6o HIrbeBuAY4DPh19fJ87lFkQni5HDKxBnRjxklCK0C4dXGGCG7HQgDtrTQPA4Tf7M5OsHJWw5arb 2FZwtZ6OG/U0dHFOPkDXjNNoiERZj75tDBblT6XviD4/IuoML+ZEiQHUVsv0U4a8+UkLeIL2Ll+ B+1KTMS0Pg+UxFh/Ny9iv5f7WbeXBDijF3FP2I1kbXrOhoV8rhbVHugJSILRIdtu+rOl4s+CKKS JF0otAGl28UFMFDQyzWvWPvYOxU8KUjEVyOiAQ3fmN76WFk/zn57DIRBdRStBY0+1K92BSP0N3u 702peiP3B6cvSTi/IRizIdCfpRXfzU8Q== X-Received: by 2002:a05:6122:512:b0:5c7:a9ee:dcfb with SMTP id 71dfb90a1353d-5ec68718ff2mr1298207e0c.5.1793372688895; Fri, 30 Oct 2026 08:04:48 -0700 (PDT) X-Received: by 2002:a05:6122:512:b0:5c7:a9ee:dcfb with SMTP id 71dfb90a1353d-5ec68718ff2mr1297950e0c.5.1793372686726; Fri, 30 Oct 2026 08:04:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 19/31] tests/tcg/mips: Group MSA int-add tests Date: Fri, 30 Oct 2026 16:01:49 +0100 Message-ID: <20261030150202.61556-20-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: -gyF7iyaL5NPnSrBctM47lRWBqAY02eV X-Proofpoint-ORIG-GUID: -gyF7iyaL5NPnSrBctM47lRWBqAY02eV X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfXykB3D2U2mI1w dXcyoIxwRQwe3jXSshj6KMeNQ3RzHma2fXQe2XXapQdpbf4JJNg2eaSAy75VuFSHGUE9eOnX1W1 Ep6GBKDfEFFvdY3dAKRkT3JK8xxCIDQbZ0anODSQKuZD657stQdYjBtQP/eVGqucSIKyqCjiMzc qbUK4oktoDxbHzF32wh4YCvHKJiedBuwaOD/n+3uzpkyOIAikWxwHCMuBmYxMzVgFdXOkTUXlCk Bk/igbvFSLU9P2DPPXe0bDttKpBMslyfjforr4Dl+FxjSh7mkjrPWgHqUANgL+VC6qlhycNQAli JiJphDGfNod9YbLWuUowkagptbIQI0dVB1s3vkhoe6prT49t8dvB9izPNnVYHJx5uk3/HzbfJ+v EntBJUBk5Lm8DE+Q15lggUC+27gVNWPhCGo9yOU364ii7BfzItJIxwPHf7w2iueiY75Wr5XT2ot rfvRhyY+LczZcN5vzBQ== X-Authority-Analysis: v=2.4 cv=dPgzC+Zb c=1 sm=1 tr=0 ts=6ae4b211 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=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA1OSBTYWx0ZWRfX2ym5ruCb3psE Vdr8bvFyfIqEBTuXFx/XUozthf9/joNVNX4KPUaQhRcSTIbwxnb/soRrQD+p3xbAjQ6ckdXFW62 FJlVfpNK6XihIFF7Ijqr4mls/6Z3/gw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-30_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 spamscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610300059 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793372769108154100 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:26:35 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=1793372778; cv=none; d=zohomail.com; s=zohoarc; b=Xc7m1RdFMPF/PXlqCeLmDUrYjtV3NirlKpECrHva3zbxLb1sw2UPlAmx5pXn4PLYWASCpGTdTjTFmP2VTC9fY3ScSw+simaeSrfFN7DvxZdHQ4c3BVphz8duVhb7yFhQi7GZCMdbZjIkkA+Iwr9PclmlixslmngdqOiCl/MAXAY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372778; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=XqWEWnhmhmWLhuuD0y1cDfntIUEp9W5Qcw9MJxg9SOQfNFVfdBNpwqhsrJs+pGpk6ZEfhfcu7QAScRFKWQ46NykzdWrTqUcWUtr+FZ/xyXFE39tkQWAY5D/i9XWBT13Nhpa8BHeIZHSc7fYrtON8IVmGYHe7eAe+F/3sGiQhPTI= 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 1793372778809182.39239544549514; Fri, 30 Oct 2026 08:06:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAw-00042E-3o; Fri, 30 Oct 2026 11:05: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 1xMoAD-0002KO-Oe for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:07 -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 1xMoAB-0007J6-Nh for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:05 -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 69UERLhL2968145 for ; Fri, 30 Oct 2026 15:05:02 GMT Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qkncc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:01 +0000 (GMT) Received: by mail-vk1-f198.google.com with SMTP id 71dfb90a1353d-5ec21d5bf78so244666e0c.1 for ; Fri, 30 Oct 2026 08:05: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 ffacd0b85a97d-48e71b789ecsm3638264f8f.29.2026.10.30.08.04.52 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=KGmtoQd54lYsVEbO kb356aUhtrvSR6n9YiDONSZJ+eisSRBRjuVsOj1qYFT+kzt8SgFTj5aP5RE4TSTr xaVUSmI09k1mY8fciFsL3rfcL5YDIo4X/Eb7/jzg+w5cnMrP+UCYMdTUZLPUo2Zl U1/4l2EHv5vkNsUDePni1xJx2zS4SB+gpV8GPTdYuFlFy1xhB4tVabOf4HpAyCQE +9ByjGzl59QU3UZWnWz2CX1IH26ISmA8iCeffX0FdeOERSfo3BwtHdUf92Dy6lfq 5Jj0kuw9HeAU60KcWOxCDjRfltnIsngAK2+AB+dY6RaEyrR6bPZuO+C9XM9WJlk2 GTLTeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372701; x=1793977501; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=BJv4Tf2Zs1lSAco+RKMhOdKaytSY8uAdjpfC/SLA9r0i76whi1ozLlzlWs3g77ktI6 GO5eROocZyqYre9urkMi7PmpU8rHLdIKQHt5rVfbFtUnc6fBf762gjUeX6dJj7yDLqc+ 0Qo3QuMkquDxoLPmyn0RncsMxMs/H9aRn3n6Q6CV/KBsdzYPSguYRaZeqQqbYxGCCzkB kHvBezXqOlKBleZp3OBe/V98+AWO1Z1p6dKdGq1x3zVnnQ9jlUMtRUG2cV0JrAA9JW7F pkxHk9zg6zyl4Slz+isQQDoEprOHd7aQuxdBg83a1a6hTFrv9HJfq7/AdYZo/qVxd+0m PLqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372701; x=1793977501; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=J5zM6rPAVM4954wK0YJT2FXUcIUk7rKVpkzOWfHeu3A=; b=04xvb4xza/3+J16DmUlVYQJJrdixCOKDUz0iF/FidLoHh8EzK3EoZQTFzrBDDDOTT5 Oq1xmqFVYskqTxO7eMQQd/WNAkx5qp9ubzbdrMvyew0Vu24+/7oj+51vUJPumQhmKGj/ IVx1ZjgMLsJJKP4BPqFE2Ra0QbNPeOoaWXGlgGyvoKAR4dzWvgmwWfCYooT7PWQ+NXKe 9wwwzNlRMFq4bgs4oS7CYxFA05RpidaPuzA77oIuw6OVP04+cwkrR9S3c6CgJs3k68Xv i8vMTnXvYU8oP01cpXU4aeKXmPbtTpx0UF01Ex7OhMe5Flpuh0B7dOs/ELypq3qahdJ7 kBIg== X-Gm-Message-State: AFq9FYIJrcLVQVrjGCKh2xOz6SMosZB0CmOucb1hTUzogfxIuIBexSHB PWHYp/ugZ0zWFbWDguYz4CI+5KjrfIJjpR/GVGj+486CtG9REywGv5gPLpVQpMbvvFUtuNLF9bp kFp3z3UUcF9G68Cw31h9x5Cd5B1BbecUdVyfjE/7OHLaUPV7Yi67tQmF24tSdMCqr5bbH X-Gm-Gg: AYBFou2wN/VRXafEHivhmLVIqntHXPFcAk1XJ/KdjzMkkEok0sthx7jV4GkDkfCObXS H3wMN98KnqNQ61uSov4egIh6Vi3SvUWKQfHs0KU+u6tlhp5STP33u4u6JCSF5Ao+2ZGPW+lJiDT WC051eu+xHjJoTwUHb0OlfcBElCG7fLfEApu95y9I/lWinVzfckKey6wm7qIzb2QEH0X4iz0xj4 uX1yHrUiwoxRasotgdemh+f3ylGe1GYbZthc3e3HhU0IYD/vvAx8l6qR76qVQJrnedGSWLRAORQ 7kiougpidykZPfXPZzcUO/dGhIsfOlB6mS0N58KMJDIvH4xmZKol/CgGvwasPo9+sWp83254CZU JsQCu7LtcBPpktayipOPURdGZlpCtwqU2pn5CSImfcdpGGMcirk5ZDZOQmJsnrT+ewMH2UBgLr+ VechYPcKoeuS7OecCwHO/YuZNaafOV0Q== X-Received: by 2002:a05:6122:3115:b0:5d4:1193:73d3 with SMTP id 71dfb90a1353d-5ec6894bf5emr1356787e0c.14.1793372699358; Fri, 30 Oct 2026 08:04:59 -0700 (PDT) X-Received: by 2002:a05:6122:3115:b0:5d4:1193:73d3 with SMTP id 71dfb90a1353d-5ec6894bf5emr1356719e0c.14.1793372698738; Fri, 30 Oct 2026 08:04:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 20/31] tests/tcg/mips: Group MSA int-average tests Date: Fri, 30 Oct 2026 16:01:50 +0100 Message-ID: <20261030150202.61556-21-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfXxnjqMG88g+Iq 96aVovWvY/eu/LEt3VVuiLYj+lQxik8vet9WRHiOj/9fITo9E+p1QblME9rny+cKjlS4C7RlgiE jBDwwqLIj3TbtsW071bszFsXhovbcEO6EfLLrB50aq4kviZugytDFwGcnvxdz+xDtxjdiQny3xn 4qvvQ4LioRRf4ILMWxACAGHVQ366bmlN4UsdMuBsL04P1PU5CJBf+bwRzMCB1Ky/AV8qJKUuGF/ 2cwAx6sHrwGuAfEz/0VRBvkWG0M42u7BUdWzGtjGJUBqNRywVsv0ZkI+ffAwtC+3kQxtaosFnSg w+s/IoBbCCSUPJn2bSv5gdRofSjr+oRMUcEjNeJ07tPK+navYx3Hh2hUjo72ujaxtuha2KtO4dl N+I2lnEjorlqCzbXqlGT4B6q/yqOL/ZT221UisoDNIDk5VftCoz7bAAPMFm+7Amcf81Uyx77Okg Cl7hBIcIxSPtWfX1ikA== X-Proofpoint-GUID: 2eJShOGuekvGyK2vZfOMWx0HczHRHL5V X-Proofpoint-ORIG-GUID: 2eJShOGuekvGyK2vZfOMWx0HczHRHL5V X-Authority-Analysis: v=2.4 cv=IumL47/g c=1 sm=1 tr=0 ts=6ae4b21e cx=c_pps a=1Os3MKEOqt8YzSjcPV0cFA==: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=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=hhpmQAJR8DioWGSBphRh:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX3n/izSitZxGo 6PZdmIwsSHmMM19PPkiJo/ySPBUJFHALLlasKiL4OWr7C6//JBREq9LneOqk3ZlXRAOHtcTrzW2 KaZ6bV+6AgQbgo1lu71pQnEDLodg7PY= 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-2610300060 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: 1793372780158158500 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:26:35 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=1793372834; cv=none; d=zohomail.com; s=zohoarc; b=VqFdUl95XTOvfxQBeRXi35jnJlU6Lp5kKW4DsZcV5uwkThxvTh2V24661byOGQoLyV8cUDH5kd+3Z8t7xx09DKbxNbzdWyaF5sr2/te1kIiFQsO3CO2Yk0mjdjG+Rn89Tmu1c/ZGmpFUOEykoET+FGRdyDkl1knmib/akbqlecU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372834; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=YrB1p1dujJcF0U75peY5HqAf+B1TCeJmJVSqaUJa6UcPwY8Zgg845S99wf94a1cydMGhudEX81st1V5mZf7TKk+8/m8YH9YJdwvEildhM3sURk1/eDIoO060sQpvZ0xpcTvEPAHrJWiJFnbka/yKh8rWtMw0peeMPk+F1FyxKCw= 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 1793372834638716.1115322879856; Fri, 30 Oct 2026 08:07:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAv-0003ur-9i; Fri, 30 Oct 2026 11:05:49 -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 1xMoAM-0002VD-EM for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:21 -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 1xMoAI-0007Jd-OL for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:14 -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 69UER1Yn3515192 for ; Fri, 30 Oct 2026 15:05:09 GMT Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qkph6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:09 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-5eac41ff334so894513e0c.0 for ; Fri, 30 Oct 2026 08:05: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 ffacd0b85a97d-48e71ba53d7sm5464606f8f.53.2026.10.30.08.05.04 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=FQMcYnpEbxIA4WbF SLH46joyvF057qT5UPr0R2Ap6ppQ4vH5N/EAOoGKSQcuA1efIAel9CyKPJajEWc9 pyXDXfbux838bnEOQDF82PdG7diARiBa/SFfS9U2nbdqsFXz82Ltnum0bCbLUd7J /+alXi9I0c9lwKqg45OlWPUJ5OrST+yFiLCMjvZ5OvL4tJm1ZUhzqAf5s2cchE5l bUXEMPVc2Epqv0XFxPD4dH6oNNBCJrSRYcBp0RVnMmqhrzigihYUmXpCWqswWqnz zPaINZmJnUFZ8ej2AGlLGCE8N0bwGSjBjoikR7PSn+CoAuu08T1tEPuxrq6yvD2B 6ohcYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372708; x=1793977508; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=YzhBKJrPpp7d9vCa7mdCE1XCirErRaWcrGoBVCsiyopO5ZXu+6rEVEMuIadYT9ohY1 cc1rsjorHE2uES5OaS8/Tspmgfx8kBFrZuD/VnuF3fg6/MYF7Uu/u0JDfqha5RgzZd3p JVZ75S4feN4XRnN9IYtoY3NvG6XQWOxJOT51ZBW4nECkKK4DrTnhC2EzbRz4IwFHuOEt 2OxfyB4Q4C0QmfaPuofE8KqlZ5wmpSJlQKAhQIQ3aBFgkzeeb+YYowQTFszSVSi0p48t ojpIwV/ilhCqaaSDDBzgbGfSLsqlhyQT/NexhKonU6ATtikLi8IcENsX2VY4H+XFNgOD u7hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372708; x=1793977508; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=I9kYTVvJAtaI8oIgstgeblI6rSZ5zFGFIV1Twkx7UjM=; b=foi3LyLtCMeqSBlDcKYZ/mI09++4RYeFCBzAGd93r/jAGzqK6/tFc0VxtZ8/iRL8HC 79VgkKIS8mfx/Mn9oq8TQvHk2vEzCyOVrGhsd9STXJi+/ULaBMKXLo3TxPe8V7xze1iv ZY4Lt/IcmvRo3DhG6/694gNWyugkP8wPsnD/LrgrlgkBiSqbfRvfTAmB6PR36lc3UJgv qc2GWn55vphS71wWL8POh83IK35SGQfy2lhoIxYyPj9igqFDPYmvpEIX2KgEWGHBb0Fm 0pI1jAjJpPagAWri05g71fYHdkRH3na9ARmW+7tBXLNDDXuFDKxmFDxMqRLdZ7AByb8t vmRw== X-Gm-Message-State: AFq9FYJH6nLPpFJDR5tQUq7OYRwBWfdEFL8ZNT6Cuek52CZ7zbXs4CMc kVUsaZgQSsySyGaVF2AfYCN6FrrSXaesvuMQXoyU9zNvgsefcRgygWgTJEQHrCsOZONtliBUAPV dVr5dkWYm+VcxIaUzDcK2yRMdL0TWeGwi7SWe6Erocfo+oq6Wj3yFhPKxxlvUo+hvObTk X-Gm-Gg: AYBFou2vspyxaU/VcRXx77Vi5In6Ivj6lbfFaR+y+L2c8WuTmYwgblDdHs9PicWTL4N t1kIpyuFeaOvwragTEe5f4Jna5SfdBY8LgQj9W1EQ3r8jvI1fqoJj8+WH782env8OX6Xny5W08J tbyZMT3OQYtTZ1yEsnQd93nSlASQwNb+GDzXBrVBNYphoaKSaW3Z8QT8mZNCkOUlEPXRESwjB4W Yti5SZN/OrmI7z5ChoCJzpuTg3U7KTiVt6JHghyZF5HcpdtrPGn+2O8oTtqzMhfyTj265W6Zakx ysnqTUtRWEjPpHCskiASTF3iiZ/G5t3fkKDbjlzwjPYyCvwV3ZM5ObTpw8caHy7/5zhr41laYrJ gWstEh2HjvOw3+KaD1SpLy1XqpKBYl2gbqj3FsyYshgesc/q9z3xanZzwTTZlhAnClWoUSyrb7v ESDl/pel4esSJ4EGFJf2RYaJsrbVVbug== X-Received: by 2002:a05:6123:86:b0:5ea:d0b0:e6f1 with SMTP id 71dfb90a1353d-5ec6871d3ddmr1296319e0c.6.1793372706475; Fri, 30 Oct 2026 08:05:06 -0700 (PDT) X-Received: by 2002:a05:6123:86:b0:5ea:d0b0:e6f1 with SMTP id 71dfb90a1353d-5ec6871d3ddmr1296231e0c.6.1793372705818; Fri, 30 Oct 2026 08:05:05 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 21/31] tests/tcg/mips: Group MSA int-compare tests Date: Fri, 30 Oct 2026 16:01:51 +0100 Message-ID: <20261030150202.61556-22-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 2OGffyTw4YU2PHYPybPTSrWzCj9f9OsE X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4b225 cx=c_pps a=JIY1xp/sjQ9K5JH4t62bdg==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=MrkvrxfUm_GaFPyPbecA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=tNoRWFLymzeba-QzToBc:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX9GDG3OhXBjQ0 kwLDgHoR28Z6aP5GJTXaBev5ZRXWlfaavms7geamsmbFptF31AXbb0UAVzYZbZpOQNaQJA7wswz Y4mGhEr6Guy8iWHnpSzYsTNnY4JKK/2KSW/JObvuqJCUbZZwlDJ8TsLiChJACGsdqSfyRIP02Eh suE3qPV7zI9GZYc1gi3oKIu8z4CrTV6bYejawGoRJSgrzdpvhHtKzjMzTS97Ua+Nh095Yc3Hwqm ju2PEaevSekGzpsVjF0emNOn4tD5oefFKAMJVzcxqWq+rs3ETIWBJtniG43Sxp7O+Uh33Jb1Ky6 Z0WYwzStPOjC9lsv4x6gEZXzzLElp+TXsWjoNG9eLq9SLJsJaKf5TVXIh+sp4xWo5PEhvIRfXvn ZYTOAuJ/ixx1+57dqUgBHxqvWApTMLzXyf4EUZXBWftNYOCIqqhzbVFkZuTXrAup3xY4jwyIrdq rDhtJigmcBkfQrfgvYw== X-Proofpoint-ORIG-GUID: 2OGffyTw4YU2PHYPybPTSrWzCj9f9OsE X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX7k/edP37nnp6 T2q7H8y9GFGrrlKOvVWFdR9PdrLmZeVeSHH0+odzykRNBBGUwllqzaAg4V9R/7nIBy+Hy1SAFqy IIAytz9hSeOiKoN5KoAJXOavgE+2dNA= 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-2610300060 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: 1793372835112158500 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:26:35 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=1793372818; cv=none; d=zohomail.com; s=zohoarc; b=L+Di6RU1QjlZnueV5UC2ZkovGzkNDAElx7JDnam0C6aCg2u615Fw7VMqRR+gATOxvWzpBF7/UBXuI4d0vOUQPZx5W3zvkyhEfKvVOrlqe1fT2p03NO3wTJ7jnM2cH2C8vpKRQ5Fdf4AQg0akNnfUIixxU9aLTmDAcvHTKqQ46Q4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372818; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=BPcCXGJ0gkMdmbOJTBLMTqZ0FsWJcsv50CtSm8a1ZXBr5sOICHC8ieVvsmbKDiO5IWtJNRqMMpojowqBZMd53/c/UTyXt0HcYxneBAzeQsvEAld9calgkCQqqHdW1g2MUZBdhY1zhR80vwnIK2aSCNBFRmXSAqJ+ERFZHhnCr44= 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 1793372818669498.8997386352039; Fri, 30 Oct 2026 08:06:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAq-0003PG-JX; Fri, 30 Oct 2026 11:05: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 1xMoAb-0002a3-Bj for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05: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 1xMoAX-0007VO-Cw for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:27 -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 69UERJon2596868 for ; Fri, 30 Oct 2026 15:05:23 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 4hme6pbnf8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:22 +0000 (GMT) Received: by mail-vs1-f72.google.com with SMTP id ada2fe7eead31-7cc06b9cb33so159775137.0 for ; Fri, 30 Oct 2026 08:05: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-4ac09cc3e9asm26116895e9.3.2026.10.30.08.05.12 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=ffHM/+tauSLeL51e VA+3siFe/Dh4RwjtswIBFoeZYssnNKnBvc9srSKRW6xnCJKPFPBvurG2+2RXFxTx 5vO4wCS4c3B7WxK1KgIA/EpzLt6YCOYUd/RpjexDfq/dp4VQ3KeKQoDTSg1MGZF8 RWi439Rv8yLAM/mgx+u+PSf5Lpr4CYhRZVUi+xxfU1u2FE2/+CLgIADS9Ro3D6Oo vVG+hBaCQbwqq5i0jb1qxhdRJz2WeW7EFMS4VZeEWt8k7Tt5sBsCluW60u8MUJ6I ktr7G6IWfzgnYBSE/1jXzuWPdolYFijaWOHmvWyIokqdl4fjzho7Jt95dtnEi2Ju b2ynxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372722; x=1793977522; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=YLlbI1gMuDzyn7ns8vTWjVWv2Ve/xai1G71nziX09iclBxT5vzaO87RZIq8JNe1y6X CNUmiPJE374ExqJUu+OPWPqQ0zQ+sQnP1emKdusjUvHDAY7pKC7uQpz/+6afbKNdMSTw 6xdc2LFujLfx1eeMEid5A+QCRvLLgHiHJRSYo0Z0dqqbVY7TRaTmXyWx8LMOpdwbkVSp KdA+UNEwI+kOvYdAUJC2CfF8MvLNSr/NDntvv6zeA8c9YHWs4sRXzjPPRajWHFBDZj2g 70AQQQ4IxzC3zes7P5w/OXtYsc6Xkp5q2Vht9KeNwd/LQ2DeHPmrq5Jgx6TnTbMB/6fq nAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372722; x=1793977522; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6RyVs3nUetjaaD9VgdwFw8WA7SXZIHT2DbGgv6Jstn0=; b=fq9WHcnwsDJYv+c0BoKUo+vII1krhPyPYF2p8Kzs9IDbxFr1XcJ4X9P9P3Yhy7V0sB edtuyo4pi1HU2bHI+v6gKkaG6uCEbp9w7n80+l1P4DJ5Zcon5GleKWYwE3R4ZT4lIGTF MMug8l6hucu7QUrakV3fqaH/2DFXlQy+a9YIVNlH2WYR0MrGph67W0alSOZ5tGi2SxzO JNVtprXj/K1eUglwyjFdWcmKAmoAa65CbpFdtUhEpYaLlOi9S6kyvOzyQ4rFqsQyvMLc DW7mu4SJt8+fh3dO6djmLclJ+fupZCZbKLXvCpUFOSHo/Iioxo1r2JxCdRjj36uRXZ9v KOlQ== X-Gm-Message-State: AFq9FYIiYccYRornHPh6OxmmBVpHuuyLOSEn0tPSwbDYH328t/oAgMEp YI/tQGboz/i7CV265hjSD5ctVMYqhcftnQcIqs1m/jVK58i44qobn175PrVHWYapPjjHHlXtdK4 X91eBrC8EbEIYLo9fE3ADcUaa0XhwMSoXboDlUbHwAK7wa1wZ0qHoFJoxuspFWm8irlXS X-Gm-Gg: AYBFou3cwTlvVyFF+ewjyfnIi4q7hgxGZNeGCvww7sl24aoBKZT2K2zSpxV83e5eK7d s/XAolh4Ust4NIAsz2XtzmdZEdNtgI3vEw/NmzxQ/P6SdKFEpKIhGq5tYPXxFM3egOL0CqcHwX8 uHa8jqwxpMX6z98lvmPlsX3411gYQj3xHHTEhVvcIyljAkiyPyctQNrS/AEAcKcpi+vLb7IZn5P iWX07TkWb7k9HFihKY0PkalwW5f6XEeayor989ovOAmLGOJOYTJYJhvlZewa5dFYSm8yVwuCUuX zYOVzSevoLrUrwpe21KZxy9imNTVgA5YfGfdLmVW3tkrTH33N8SDOteBL94AEHcpeirzPJKJDgH UUm3HR1EkMZHtckwot+o5nTTaP1UVAbMjp109Uo6IPT1AGs/szEINYPp5cPEsJOejnfwtgybyAT 95bs+6fzjlISvTvb7YthR5OyOUrxtEOQ== X-Received: by 2002:a05:6102:418d:b0:7a8:2a34:432e with SMTP id ada2fe7eead31-7d072554415mr1288641137.9.1793372720166; Fri, 30 Oct 2026 08:05:20 -0700 (PDT) X-Received: by 2002:a05:6102:418d:b0:7a8:2a34:432e with SMTP id ada2fe7eead31-7d072554415mr1288490137.9.1793372718102; Fri, 30 Oct 2026 08:05:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 22/31] tests/tcg/mips: Group MSA int-div-mod tests Date: Fri, 30 Oct 2026 16:01:52 +0100 Message-ID: <20261030150202.61556-23-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfXzrMD/Zi34GH3 5bwN7DdIAmYNTTotm16EPkGcNr4JPLXQ//jgz+gGX0QY9uNQX3K+I2aVSLj7iszT55KKM5eumFI J/a3svIlwdy60j5jX6S1GllXyXcrpLOLOUApB8yJFiHMUyQL+4CAswP04l/YfXy3ZzsSv9A7WWd YGagXqp4vm0eEbn6Zw7SCD+s8N8Hts4NNMPTTp3EWqIpbMIgRRTAI5norDl5TtIA7lNjwK6oqwP /98nbK8tMx8oYOmapRnjoF/IJkWTm2YmHJZo0X+Yz/ALODwAwCyqKPSCEBoemXVxiRBpRUb4G4b L7sSGYqYm+RMCdnvNk43Oobqf7PXhCxxJ4ZYHh3CTILH7wyUjgEpGHlnmaz3oI/z/qBbIVYrqrS EY+ImzKcC3ORNFc1gcLyyiOAUnCtG40gDU9KJda4VAR3vXDTMw1bZ0uD+p+Whlb/BqZM9waXtwf TpKa3gn5L3ToYsmqr/A== X-Proofpoint-GUID: 7cf3hD1EoWM6wpgjGDE2PJJzh6gk8KDq X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4b232 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=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=-aSRE8QhW-JAV6biHavz:22 X-Proofpoint-ORIG-GUID: 7cf3hD1EoWM6wpgjGDE2PJJzh6gk8KDq X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfXxDOlp38PbY2a 1yVUjGPICLCG88fLgIBds1TplONcJS3OmaamkCIvskJgUk65e1YD3HXAKLSCOixXxZs0JYGDHmZ lr4hwkTzJG9Z9FV//PIJV1LldHixqmU= 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-2610300060 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: 1793372818814158500 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:26:35 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=1793372756; cv=none; d=zohomail.com; s=zohoarc; b=g5Y+s5B0HRcGj/TMYpyJWJaKehyCaL6C4QbZzYlX0eTumKwvSvZ/uvbWmoKe7RjDcll3MeXreWAB++FWv1IoyT/B6HsGUgj8wt2Hrpx545wHRmr9qRHD1bKINQKz5zPJPDZL1lVjlyRBZF09Ka5T6P8PyiBDdB6hjDB39/x+6Bk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372756; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=mXmbrzes2OicW74msQM7v2LFVqI3rOcBbBvTKgczKM/zZWW82GM3LokW/fKxZxif2UPbuwyMgTKXyoaKVhAed9sPVN1Dshtd7FbW4SQpr2bMReoDM3DH/zDMgcc8D4DDQz3Sih8AaAGsotjI6tUPYFLETOn43FuVb66uI5euZmc= 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 1793372756917958.1521410151358; Fri, 30 Oct 2026 08:05:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAx-0004Cy-OU; Fri, 30 Oct 2026 11:05: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 1xMoAf-0002ax-3f for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:38 -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 1xMoAd-0007Vv-6z for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:32 -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 69UER5iR2596635 for ; Fri, 30 Oct 2026 15:05:29 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 4hme6pbnfx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:28 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7cc0418036bso58188137.3 for ; Fri, 30 Oct 2026 08:05:28 -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-4aa7c5063e3sm140365805e9.0.2026.10.30.08.05.23 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=SIm1qNk4cBkGdcTG f8N3zh51sJI6f8R8ZZsf7f1kWN6fwUXzDYcS36o4uqXWhqwJpBJN852GiBjX4Dox m9iR8l0YtKvRBJHi6yikN9/SHKcBs+VYwo7vXUiMmPVA/cPDH+cfGNvuqiAlWs2u RHqVERneZ3crA75debbQGX4QaplsqSlXAbo+4SbziTKlNIGbCDFR4On/PWZ20D0y J749Uh/rQwo7Dmer+siFF0L8umIrLZxXiTFyMFCYBE/Lp3VzNmvr6w234aBTIsWY GwYVBg6RqRGHeXvfpi3F8a4daHZraHOuUKC1Kh7oqmffu+XeSu0Dbsr3l7AdlnCZ v0h2qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372728; x=1793977528; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zhd+SswohxoTjYD3Gra5w9RZuzmiiU319kwx5MH/SQM=; b=Row+M44PQaEDx+ZQunAHM1hrSAlwjNVxwpQkpo2Yi/pWw8sRIy/tQZGk/HX9LNQIDT qGlYxRxr/UBXC8i+JGqiCo0nvI+Qqt3avm7DID3kB/d7lx2ycLdePE/D3WB/ugX4Ez+b IE1V6Q261xS9UWGOx4awZFFGpDdmpjvDgNGo61VNf5rdWOb8X5tKCES0zgglDQoqlPIG T9UjoE9yf2IW8e99fbpZ9i1rakMGbWc4K2R9yp/slO8mbJ9IcIvjeVLwZ3IF+RrNbFBo Vh6YVpddhBN9JGtuvqu2OrcAfva4bVY4IBOKPh8XjzpLAn/vgN9PNDynglSwie6SUtNj 9crA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372728; x=1793977528; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=a5wSSCW/W2zwVNUV81KwqsRL+cflxUqFlxpHWCUv0g3CwKbM7N/0uXXByy0/yg1cbX OktVSKFbJjsIFa0xKtNuXZbR+14H6f0jdhHfB4ASZhOVBrWoLtGgzkIEHiiHGFuKK2Br zyl2hSNV+jLKQOmHV6PAlRCj7E9Nqg01Fo3zxCTZ027g3yQy96tOPQR3e+6Nk4kPmLv1 AxTgdoPX4bpOdMtyDfkbCHChTF52Fp0Pdv1rLPgvIDA6YyapQwm7/iTXK0R90LLJJ7PG utxDLRPdzzraqEG03wqXuMEWisSXujAOzH9wEsBJKpEolI5cFtK7zT9kb/niw0u8Qc1H cvAQ== X-Gm-Message-State: AFq9FYJs0u31qdEkkPf6CAU4aqMKA9XI8yaWD8IdhJai2ip2gBJYmR0D CTCqAnD92TsGa9ZufijQrZeFjEFlb/vrUQwlrWWwKHEQjPtJXCulb2mFfmuZM7ySyRLzf8nDnR1 XE7p7vFmRo0G/Tl3HwPctmF+6rDbs93mTlgIS12pP7+qG7R19Nd+6NLpOjQQ112jk/ZF0 X-Gm-Gg: AYBFou36T7PPUiWpBhgPSkYwAuVJtFeOYHaaiZTNy5+Pjt3HdtKgjyy2/6e80CQryRN B+hi+PsfH7Ud2HMCChbhh+YF1OCZxc8kz760zceh3mgLa9DWiur7QsoFXeJ3Ri7mUcyJzejpPEb vNlswuecMttk+eM1IjrEtpSxyscCBXmihWADcjwsmSuUlatNW2PQPLAa8BEIsVd2litMLUUMUF7 +K8uD4rkMB6Jo34ZMRXXuzdwczGBbsQVSWbvfgboAv4gFzDDgft6YyndxYtNOn7+iM+E3q5N1d5 CNunqEP5W51/v0xjsW4uzsUMarccCGWqMs4baRYCbfcvOmgc9dgpsw1Zsr9GFt8u2O7twAmC4Lw KOluLFbKT5lYnnaNsvGT+nafAEqYhDHXMA5MkyvuUibbqAqOuu0mS54c5s5Fe0BniRbB8WbCTHd ahatpSt6yYJxNt5BKoITBnAaQJTvAA5w== X-Received: by 2002:a05:6102:c50:b0:7cc:198d:e2f4 with SMTP id ada2fe7eead31-7d072233015mr1170575137.3.1793372726316; Fri, 30 Oct 2026 08:05:26 -0700 (PDT) X-Received: by 2002:a05:6102:c50:b0:7cc:198d:e2f4 with SMTP id ada2fe7eead31-7d072233015mr1170448137.3.1793372724944; Fri, 30 Oct 2026 08:05:24 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 23/31] tests/tcg/mips: Group MSA int-dot-product tests Date: Fri, 30 Oct 2026 16:01:53 +0100 Message-ID: <20261030150202.61556-24-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX970R90OyBwqk 9MZlGwtAVOe6cw87o961wcOQcu0hUTWW2F0ClIf5sEco92y2JeATwNsFJ1MCDLdmVCl26cE2Oqf dpI2A4Ydh2zm5zWFSPcdse+CbTyJ0926+BTXacSu8R+CQ2XHazC4xL1Q4Oh9s/smdvYha8IMjEV Qi4aXmi8t8B1/9nBQZp5SKhrg+zaC3ebpml8HLObr9mVco6Ae2h7KrycqgCBmZw756d5f0VwiZ/ 3BrZSCzb1Vfa7pdK/l69t9C2Y7aspAHfiMKlengHwRFqqHMRpO1tH8rDN090tatgbsVrmItuMtk IAA7+9bH3zb9ITqJIxBftnBDC1swmSnwig6N1z0AKQos9cIUe0+Jjc8PyizlErvNoKn8t9DvOLC Mxek9MUndU/X2MmzrKWCF8ACRKZRzlZVoO4SsI4rh7YJZCyhunzvDHirbSfrW/9PpbVMW0ganko gdTXbC858wyTZEeOFGw== X-Proofpoint-GUID: pU4VYs0sRQ8e9WpMvPCswl6vyoeCiLo1 X-Authority-Analysis: v=2.4 cv=Lp4HWXdc c=1 sm=1 tr=0 ts=6ae4b238 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=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=VhQGtWI-d0xSCWyjZuUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-ORIG-GUID: pU4VYs0sRQ8e9WpMvPCswl6vyoeCiLo1 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfXyHHiIybFKCP/ FA98gJtBrhM+w7+ADFhQ3mariGLvODopu4KN9mMTe3SkxhLPp3nhx15meqt8YpjYiMf5us0QCUZ wQX7jtpa9xehI/m5B7TgyFovBCWp/+U= 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-2610300060 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: 1793372759170154100 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:26:35 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=1793372809; cv=none; d=zohomail.com; s=zohoarc; b=SUCe561OQSxb9PbZpib2GEiFB9O2CzgQYwsSo648V9DyX/5W/zk8VYnKVD7D+NZJGpoGyDE/IbIy17phpKe5qUj2V9QId1erg5vgFqysP1tT5VT/yqVq+iAvKIjKoKoltR/g5buoWVAFUxoAE2YAwJgH8sWkpluknHDkCGW3BrM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372809; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=P06gyB7sNv0vZ9CKmYuch/LcwLhl2OCLnc07KAiDYP04zA/4U8psufdKl6OjCvxtKipAY+TBmWKBGv/0LkDf3maoEftSKmoWDrr6XQw6DCbIfofJuzn5EHNU3YSxA+QdjYSOY5nt/gWhqjYifrwgX8dSPVL71wz5WFay1mFL3pM= 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 1793372809904400.48032802730995; Fri, 30 Oct 2026 08:06:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoAt-0003iE-CG; Fri, 30 Oct 2026 11:05:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMoAk-0002hX-EY for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:38 -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 1xMoAi-0007WU-Fm for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:38 -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 69UERGZK2495208 for ; Fri, 30 Oct 2026 15:05:35 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 4hme6p3psf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:35 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-99076c676cbso191441241.3 for ; Fri, 30 Oct 2026 08:05:35 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa80f04785sm144178235e9.4.2026.10.30.08.05.30 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=RjDj22ZWc+K5n2Ws 2+BiHL6RcSM/fgBb15liR+MsHz4rbWnFhhQ1iJyVK8ZVMjBwaeYMkZR3I9aXf70M VIgkzz8reUb3cco5bMcKULgalN7ydurGaagGbamQtxXeeevzxBvIczqBptUL6aDE 9532K2Lw88vg/CrnymUfkaJyHgW8UaVB8YOSIhtyXHbFBwu7svcwqVSXUK+biPzn Fy1spzTuwspN45WcctZceoTd1ra4OJ8s+VXU9Kt/GBKEcQ3udXBOfZiJSqT2jlu3 FoINR06z/4yWERyofzudQb9z1vFdo4DCxMv369pCG5u6xdEXgp4gAUVjbRBfl1BE ftc/MQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372734; x=1793977534; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=Im9Rrtx55cqOQ3QOKxeVFWdyWRFFmwio/r6Q72ISuHpzIouxFy81KTuRCEe5E31B6Q Drg7r5dr1w2n4OlVVpbuDZYbvYxATKRPD1eqpUy7mNTukKVRF8WneTUTIhFjy+GP1Rye z8jHqhbwp42zALC68ROmDl0zsJrRfsRVMifMthDYhVOsunHVsRIM3YpDmOkrzQYTgNKy tBJw6eHy/oomTu159Ky4XYBbleBeDsTrJViHiHtK1RI1DGtHZB4zSHqBQkZZtatNDLxv k+VKBeaEtiM0gStf4zvUWuAeJDkA7GNc5VIxwAr/fTp9db2GsaJxb5NdUFAOV3TEFAMP 7wdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372734; x=1793977534; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Bxsu9u4oVKDtEZe4QmXdSZ1Vhttc+BXVOJdADv7LnSc=; b=1PC9DqmubOEWJEhZJun7ZY2qhgOk2Li/yPqiZSilSsAi80i6DoK0VvlkMN3DfSVg8Q pI7wwkSjLIESb3nYiDGvSw8PLlyW1Ul0v3MEyUlSg5Fg5cV+wi/4uR8RR/SOFTPg2kkg dbtNKCy1Pr+umhAXqNWapgXy5DtjdUQbB4p+oDI/GxXXJ+qlF7qd2zgi0wLHWaLC1f3t 0QSh5uTew7y0nWFniNn4vhzAA63nPRsLvZ0XHh1aImtglxIpD33AxIsOYNIIDWU9Fywx pfWtucb+UbSyRuD+Hxk+YLPVxY/4hMciYfnbnz3z6ux63fwmKgYfkwi57j9Zx9KWsBRO Aliw== X-Gm-Message-State: AFq9FYLvQ9EAZ3vRNQIVDPGFOJi3LrxuKX3ZMVUXJAcZQ1mhxlIxQmis z3DwXGiPSphstVEUhcctFSavyIlhzz5hP93uEiHGA52LtasMD9/GOR80saqymtIcNY8h9eGSRs7 xuzj4jCovxy2/G85Ajz5WqWkeudLF0F5YLgn1Oda5efAISs7H3te0xzGhnCnNv+X37g98 X-Gm-Gg: AYBFou3e+Bd5LdkTtLlsgLvPStQEnTy048Or5wAciI0uAF87fZjtwl21GeQXJvw/Xkc iqJhBxMfnE3pV2eE+E2npS8jonHjYiff13uuhflFjb0cNs0jzecgc3W3VZip794rTp/hPBCYz50 hVcMHmwi8lPSa7J5ROLA1HpLeLTQCcLI4Z4MKlKyyf3iCigBhJWhI97gyKzAixPYRyjLyOQy1m5 RaWZ7Ph0bp/OT6HqtI/T514fGCZdXMmtB5LP3nTM18BrygylKLZmOD8E/dckHbcCfu9CQuXQP7t 2zZA1vVyno43msyAt3otFXsQZvmHbdWAGidRMoh/mxG0nxwofxf/+WqhhVqxLZVaEnE1K5BpmjK daMZYQqr+D6IO5Jh9dd0bK10hzB8B3cDym5/pqYZYfrRZsGJsFV3uo/OrxteDVRMqk8C5Ba34AJ 1PbrA54XV1IXrkfSlMm0tquTuRrdK62A== X-Received: by 2002:a05:6102:689a:b0:7c3:7286:b7ea with SMTP id ada2fe7eead31-7d072c18c5fmr1281636137.17.1793372734498; Fri, 30 Oct 2026 08:05:34 -0700 (PDT) X-Received: by 2002:a05:6102:689a:b0:7c3:7286:b7ea with SMTP id ada2fe7eead31-7d072c18c5fmr1281509137.17.1793372732449; Fri, 30 Oct 2026 08:05:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 24/31] tests/tcg/mips: Group MSA int-max-min tests Date: Fri, 30 Oct 2026 16:01:54 +0100 Message-ID: <20261030150202.61556-25-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX4N/ul82Iw84U aOzWqKMAtYKhY7CQXp2hOwYC/QyE8kW5cC3SWaezYfUjGFP8sEyJyzIjGWOeJ9cJT9P4U1PUvLM pE5xoZvggQr+EmbnhVkbOA6K0jtgyIZA2MSGbjT4KY9alz6Dg3H9oICLf1g+z/iZTewttrZAWJA 6yyAer2pLiqIQz+h7WU/jE5FenxZkXqbGVputnVxmeu/8fQ8FCv6X1FTiTfk1YE52vZYCZK/iD8 W94rqS81TwfOIJbx9fiToVAACgYN9oNfWFwcU1oLAGzaXWCRfFuiam6UUutfpdIWQ4yt23F43EO jf9psag2hPJnEKyfgYFZsyUMfDl9v2X5B4BRMFO9orTIGP/8fSUl+53turNOJgxmKySZ6Ui04hO ZomLpzttcSZ0tm9aj5ZPspMm/IcaGHOW4pT6bnmkk0NBBI8W8IQ1touCmN2tVBXVxfGRQZ7QkHa U/8x61nh6UC1hdPQ+6A== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX5SLrqV9oQL4e dQJcepx1lEI7hf6UNI3PupgHp/GgPAAPc7xU2e11ICsNGpcqIYae+AIAiK+LLqMdqhYerTiD+jX 9/lKtBk3rahGZNGvDfo9gMWwvYK0MdA= X-Proofpoint-ORIG-GUID: pV_pT-YTGPOWrnV1pGhqoo6jmXX2PPnr X-Proofpoint-GUID: pV_pT-YTGPOWrnV1pGhqoo6jmXX2PPnr X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4b23f 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK: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-2610300060 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: 1793372810784158500 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:26:35 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=1793372768; cv=none; d=zohomail.com; s=zohoarc; b=Ryh1Q78K6R9mkPWwEGgFiZQElKt75A8oCA/tyflxus0i6oujFvkGy4kkfoyPxbHosqDlGiF3e9OwJkTPI+5ctjXgb9wWdziejp2vpllG+sFoDVk2Y7QccVLdQXOFfexHSJmk+N/QYIVJpt2LqWErjX3NlcOU/oa/F7d+3sZec+E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372768; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=hWZIwube4c5K6CxEcfSnTWSlctO4e/GVBk8lrNWjZFKAaMe8dLwXNzD4gAaxUL87Kgy2K4kgf25tTPSqUpmBAKUMgnRWdzYNgVyFThg95s4qAagpA7uht0HpA9Z+G6K2AMgt1tvRqHY7UeosBzCRDyLkdcWCg460aJdLgBs4YN0= 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 1793372768488451.7706008975498; Fri, 30 Oct 2026 08:06:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoB2-0004XJ-8Q; Fri, 30 Oct 2026 11:05: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 1xMoAx-0004Cq-Je for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:51 -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 1xMoAq-0007X4-P7 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:51 -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 69UERBmR2494579 for ; Fri, 30 Oct 2026 15:05:43 GMT Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6p3pt6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:43 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5ec17386b57so779636e0c.1 for ; Fri, 30 Oct 2026 08:05:43 -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-48e71b8a5a7sm3718535f8f.37.2026.10.30.08.05.38 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=WXEP1foQFNuf1+cL XcTpXYbA+PsPI09k4f1ltAPkBC1qbAh+TBAWU2wlUQ7uqhN1yu8afD+1fXzT4YA0 5SS4/UqUla1ujeTKuDq8ajgfOGYbOSkIUQ2y6JNHqUT6nboo+CYPkIq5yXK8uHF6 EanAbMvOo2KtwWRUoHCavqdaZBwHjUZGXH6lVSKTlV8yUfFX2UbrOzTc8/7IBXUZ GeTUzDxH+q7VxXwY+9wTn8fuiUGu5Pqz7f/KoQVgHr6pAK6VwWJkn/Zw1k2hgOFJ 5SodJMSPotwgZeV+FkSvZMb4zVlFgacLM1qfl+zRNKDz7ro5YpLZjij6vhkSsmtg ti7ABQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372743; x=1793977543; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Ka9NepUS/T16sYjS22/BcE7c4UjpSbWQrADWR0F4DX0=; b=PWuia4VnnR0qv3Er5EPjKjQdGeIe/p+njaXpLaP010ZdO7C2SNmT5jFVjKIEToxjnD FRMoBISqpcPiRG2cDM5bovEy2TOuXLmuZDDSLoA018rWy9kgCa2CqXba3i5RsdW65+8R kRufJ6WaHIdIRGidrU/dDOYdlyv30jBmFqWtzTeW1dttk7hivcxGzj8krwUSg9gPCkN0 3CNFv940bycYHXwtHjQaUHQwQvJIA6YlFIhEL5cajffIOs8OskLAoalU0QdM/iwfdVrr sXUXo02ml7BZrr6k6FzcCCZTXVRkflWzc1/tRFq1SjJhpRSAcufCo4LP3SR7TrJ6MCPo UjxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372743; x=1793977543; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=pcB6MNa8elMuYlbx5Usm4jpbb6WsW5ca6gDb9bP/eiq9tNPL6m1zACUnSo8fogBIoL XtFN+ea3x2X1/OqFKi6M6imB+JKnW4shsMVcbOXHKg1pGYgYgukrRoe905g63QMP0Wa5 tZqUTRvnIXg6rA8H0X3DgGeE2KtSgaBUcpB2TWTQ343ieIM4iASpKZbE4PtAkx030kan BjbzIRmKs3A1Ys8iPep6C/xoaDgTEvAoGlZ+tLnpLPAhcK67qKPB3mBFmXTWLyhmhac/ xfUM4xiQJIDAjiQHR+Y/Tw3PDZ5UZJyXL8NpBkyTajcQFmGO1mQ2U3PVXXYY6dEGcoh+ XYXQ== X-Gm-Message-State: AFq9FYKS9WKmQSngdGRCt/l+n5uChFRUjkCbL4siXPYF8Cg26F73APl1 k/Pn1Y5q0k5mg7Kkr7WfBFzLl+RcsF9My0LUBsP3K0L/uFCDayoaY1ouk1MxsI4Wt7H9LSA63hu z5/vxuGPsqxWwBectpXMzNRLjSazFjn52TDrF4pl9hn97PT58DQWthWzGYnxvlbA77bYx X-Gm-Gg: AYBFou0Ny0/Ua288AhYxwtLhkgeb6jNwxdgxakx0FfCJwja1xn5ZrQUjPvERPg8R6Ib WmNCzemjjA5jjrEaTXpoBRySWJCGD5/ZIQkbI63IEFE5MooXwuEagBewwFSuniQ+OZMe6RhPKWv 1iiwyx8qPsnxbUN29F6bi3nSPEqG0kPIhzbJIVsF1TNDecpuE1Hmhm3hxS0OOyJgoJgv6xcDYL0 JD+c5BLE8NLTUrIs3Yjn3xphivZfd6YDoQ6Zyes70SAadqAwYnI8nfBfT61ro7Z7aypoaLDrbpm BKBVOyQoOTNV5bAqfypVIra4oCbHoAMN5PCNshTwOi6civiLatoyOmeSqPZfvJVEYX3wRbRnz6P mxXf74Qe86FrmH448wFCkaqPk5YR8Kvkdhnx771dxvM/trUsEqvnwQfWdjnj0HbOtLkRUBQK8XA SGNV4zde4bKE5ETf9P/JXIuH8Ycvs3tQ== X-Received: by 2002:a05:6122:c89:b0:5c9:c60e:3a48 with SMTP id 71dfb90a1353d-5ec689f696dmr1558020e0c.20.1793372741220; Fri, 30 Oct 2026 08:05:41 -0700 (PDT) X-Received: by 2002:a05:6122:c89:b0:5c9:c60e:3a48 with SMTP id 71dfb90a1353d-5ec689f696dmr1557802e0c.20.1793372739191; Fri, 30 Oct 2026 08:05:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 25/31] tests/tcg/mips: Group MSA int-multiply tests Date: Fri, 30 Oct 2026 16:01:55 +0100 Message-ID: <20261030150202.61556-26-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX1u7MiF4zjSbb 9Kalc2zdsJ2e2lcjLZJgaEGoDMYzBxjQZlVDnCO0BOc8Sg5de1hGwFkX8Iw6KPpYAN9wJBirhaZ Sdhdn8zsrMMOfCR2unKVQvSxyFVBP3cUnA6jTlEOYuStexnxuxqDfBohFfvTYmwR7w3mWZdSjQV 58M9o0eYdfm0U09e34x7wP89YWIIpLGdQ5cTGmwTTC7IINyHQRyTfvGlZGJ88vRj4I9Dc7ntZoX rq6qy3uE+5rI/7pAgONQNx7HCgvtkPdqsp2HJ1SZFzekBC91NmeNUtQw23yjhwB0MziBj79QDnm 3WrW8fn7ViX9m9+xBnTBwAY3cuj2P/V06i8BLzI1Rha8vzi/tPQIEb5/rD9wSQfru+k1cZtxniB cVLpLc94PzhUwH59P/K6/WdzMe63iGZijTzt16b0d5IpwVCuiURa3d6/7GIkqpEtTKGGFtZ95gj Nv77j43QOgXFZRU0FrQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX4YRLbOw5uz/R Mb7H/NZ9AiIiaI89t0RXGYx1VUuQgUeawUQZTe/lfzuBTo2bwwFL+K2YMlfsO3R/KOjWNEQEU1N eGRp43A0WgNzMbBGk3aiWuJo95sTAYQ= X-Proofpoint-ORIG-GUID: xOhOmDezVoyHnTFB2JL3ksjIrIRscRlB X-Proofpoint-GUID: xOhOmDezVoyHnTFB2JL3ksjIrIRscRlB X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4b247 cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==: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=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=vmgOmaN-Xu0dpDh8OwbV: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-2610300060 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: 1793372769944158500 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:26:35 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=1793372817; cv=none; d=zohomail.com; s=zohoarc; b=htqGLVZ01l1U7953ZNxtWyPAHZu2CXDQlB6iX/Qo+Eu1um5+H1u1Mji3IHMYZZTQCMzoRGRqpKKgTx5d93dkccP5rRck10hMsHxKe88+9vvIcLW4t68imJJKJr7PN+M2HUwCqmFv+IU7wZ7i8SnL0FqyLUA37LXYoWopAsXrpxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372817; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=IF79Bh47tbaEzMMR+1hx9CsUO0QmMdZ01X7n9B/hXQzZ0WFNzrzcAVEBppED0b7woY20vNMD/edmLWJ5fXUjhp9M7CccXG8IDMVZYhSX8F6Ks2Z7eZ0uVzbZbu76WO3lr2JapzYjLncRkU1zrzngxughhIKDx920wZMnmR3szaQ= 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 1793372817111948.9914398463256; Fri, 30 Oct 2026 08:06:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoB4-0004iM-OV; Fri, 30 Oct 2026 11:05: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 1xMoB0-0004Om-6J for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05: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 1xMoAx-0007XG-RD for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:05:53 -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 69UERJiY4103327 for ; Fri, 30 Oct 2026 15:05:51 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 4hme6qkn7a-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:50 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-99077a0be0bso172506241.2 for ; Fri, 30 Oct 2026 08:05:50 -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-48e71a4d425sm3883161f8f.1.2026.10.30.08.05.45 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=RfIu878VjQ2AjZCv xAkJ1y91Y3O5SACIE5+Y4usWAJYlNs0FLiZApsSG4+0ox3CA/zdf9+qT8cMzGloE SK3v99LMwdNvtd20hfHcdUpagy/aKRRMk5ZXObvi8iBAzpestyiltnJR5RQVrWKu YLp98xWzuOvQMu8uRQ/L3hcfq8am7ZUKGC3tvLbuIc4cRjVgTqBDjex0M8NKWfbv 6F/nmDYZ95xkLGpVV4yOeJZVaON7SDbdcH5+IWbRP47EFZCAoH6Z37pX5oKxzkcp KB7s6TGm8SpAe/Ho5T/pwhbdtXarporDecldiCkVius2AuR+4VQBvyYx5FngejG/ LTP+FA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372750; x=1793977550; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=Bp8//idhaw9p3SGh3LzaVqR/ofI05vL621A8GHP7UzRJZREofrCK1FEXDcI+dXAgZb RsaiZvTj87XOlo7uyUtrJw2fuUUZ9dx+fU74PnJ4AZlH9Asc7IYshrV9lvFvkBpiM78A 2v/TF4Cbi415G94ejHq4jjs2zh+hZ/pFsXFWr7ozHT2ZdTD7Rv32EdJh/Nun2hKrcEzg npWDv+LBaeNbUxbGQ+NUjoYsiC+wfUvlyvqCA49HbU30TFi+VQHWITr+2Z6NsOkGHc2v UYGcWEsfx+VRGwQm1QLeO7cOPaSTBRfFu2sAWwKhYJdllsKS0YquG1aqaqJN8aGKX6bd E5PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372750; x=1793977550; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+nJ/ws5iV8Ga8bFgf7MgwTH3F19Tbwf4zQnp6oX1Dwg=; b=WFCtPBxKZtGt660aDQjYr3ELMu8emExQYqNfXacsWCkIYEzvQilJ2jC5DiuY0YRoVG fiMsNDUDSVmeF970LIc2TYMFE+D7C01zgMStO4BtkqZXxe0Fg5SbkjIiO2hrqz75JkgJ KJvrU0JeexBkh2JWv7I+bse3q1j1C3Aw3ge918uaRNR+aSNbVc0eEoEr25CJhtd7k1cJ dRrn1uzd8Qsl//iSOZ07RwMAOFzMDOC5huhPJscjqeqyuAYoeb+b1Lmg3e480h7qeGx8 0ZygZ/emWWHI/jGvlp6sLO0wPYAp4ZaAOQuoatAiYsemvSoit2Uq+rgAJP9C3BHQWCaE OLRw== X-Gm-Message-State: AFq9FYL3BTs+O8RgoAB4SlsWo70GQHN5frmneLR/U332lgCL5Qhrvir3 LUJFCacHw0fi/U+k2ZVNcKhLtnQZ+6Xe5xsGAbCQaLaA0LJXioPw4M3ry9OnLlhHx7X/HT8BXD4 D54qV5q1v/eqmn5oUcNsS58K3UimTSBTs6qxQoaR5lbMwjls87mRb4aq65nzop98D/79o X-Gm-Gg: AYBFou3tUZP6iUw7ZjlIMOZZV47tJ3LdchUC2dQf31VmZ2Igq5dDrhMyy0hPrY0B7DZ pZTVgEl9zZEoSvnmI59qkhE1Mn5hAAamtVk4h+2fvRiHS2n4WUJrJOPaEY/BBC1+3E1cD/gmFnk RslZv23lMzTzXQf20RxxcHmjALQguqC1UVZ1awJjNrlvT05xP30VzqzckMuKcRBjQKXJ+/9kXtG LC8U2HYoV7n1p6D3M9UhdWH5Pdl/GXfOrnKaL8cPMYwJ7yLmyIiIjc2mUYTBI7ZdAvmdBFhZyqE /jbS/FhHtm0MgWNg2KvMwbQIsatc9qX05wBiJx62/qRzW3o3aKVhzyiOcVWo6NX8vOVZA0KbdR2 UfZo8PZQcbLzA3x6+as7iwQj5cGOLTsgrsLeCudRHYN3d0TGPtNnFkrYXfhgSoNEYwc0earDhnj k/YHm1wNfh2ypIOqNxSnZEtQhBLRcrNA== X-Received: by 2002:a05:6122:1d8b:b0:5ea:bda1:76a0 with SMTP id 71dfb90a1353d-5ec68718048mr1375671e0c.7.1793372749635; Fri, 30 Oct 2026 08:05:49 -0700 (PDT) X-Received: by 2002:a05:6122:1d8b:b0:5ea:bda1:76a0 with SMTP id 71dfb90a1353d-5ec68718048mr1375519e0c.7.1793372748378; Fri, 30 Oct 2026 08:05:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 26/31] tests/tcg/mips: Group MSA int-subtract tests Date: Fri, 30 Oct 2026 16:01:56 +0100 Message-ID: <20261030150202.61556-27-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX5jxrhCRQlVhH 4TguQCA7P+gfwJtWLlRThcIIOoikQ1+Rvl8AUPbd/yakEf+gmvaW0plMRqqYdjUCxni84afP363 3WmcDWeIW5nuAJZQDQfhz/Lw/SuTJFz7Q6gNIqIy/3ACm80QrRQmg9NFOt3hwuo6XKea5cEcB03 sISXwhgYGkWG0LKyGvmpb9eYYKBNydezncZMPTU6McxuoUsblHFaSPX1nUQd4134yLdPo7tJCMY A4tjlJY+d5zikrp6s1o0MEoxrySgcYBuO0skjh8ORqUL6wDT1fKeNPQ5KlqQoixlWinVbuPzWBE fnfZd5eY2BXKgoJUmUOtz49fjHn7BkYNg9k0uV4p32I2wXjw+ibPw7iJwQ1VQs2Pp5jwgRrTR9g ZXUDwZvV7ZHIyKMoW5sLSScX9EKLTDCvS2WVXGU+ST44+OEasSqZQOEAbXSpiamXEngSsjFGfoa 3TcOkq86bkGmCP3CseQ== X-Proofpoint-ORIG-GUID: xtPsXrbdFpdERnoIbr2vb6YPRQzeAJGU X-Authority-Analysis: v=2.4 cv=IeoSymqa c=1 sm=1 tr=0 ts=6ae4b24e 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=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=TrVlaqBlz6Hw94NMQc4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX7a3ETwAEiwYZ RHjV3em5vmc/6x/6SxFCJCZi+3RoXC/qAFXeIIrO0+wBj7VyWIwQTjvYjdeGaB1Zlfk51pSzrvY 3+zvyw2pRY88TbRMORy3PmgLFfR4bMU= X-Proofpoint-GUID: xtPsXrbdFpdERnoIbr2vb6YPRQzeAJGU 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-2610300060 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: 1793372819720154100 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:26:35 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=1793372811; cv=none; d=zohomail.com; s=zohoarc; b=SGnbG0UVwh0aYfifeZix1aE/XSw3StKVIWzjelzGoLor0zy+1tIZj9J0Y8duTZBiFnzlAm2T34fqLrcMeoJY+G2HSOESCxJ14uQJx5T+Gt6JcywuFTs96Tgo5iS9GzL6w2GDbyn0dIfbdlm0OSWxTsqFIYbnmMdtDEsheSMAcDg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372811; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=NBsP2p30ufd7x3TjnjczgFeccUfGHHB0po7hPtJFLwN21svClmQCppeyLoQ0cZp4dgpTq6cNtq3ktxoKWCB+d5ac+w7FITvBFrWsfcbBJEMcTz/A2+IPKixPm8O8xep238ZPh/k8OqaniXD0iOs0C8kbr6XSmI9ZThpOvsRc0KM= 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 1793372811281531.5074684743106; Fri, 30 Oct 2026 08:06:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoBG-0005Qg-5Z; Fri, 30 Oct 2026 11:06:12 -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 1xMoB8-0005AP-My for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06: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 1xMoB6-0007Xs-Gt for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:02 -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 69UERLhY2968145 for ; Fri, 30 Oct 2026 15:05:59 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 4hme6qknhu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:05:58 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7d06f3784e2so182015137.3 for ; Fri, 30 Oct 2026 08:05:58 -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-4aa7c5063e3sm140388265e9.0.2026.10.30.08.05.54 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=KG3ciEsCYYUAZie7 yps7byKBDHQTj8SZ7PPZtLqL1CjbXtWiQhv8+3LSCtAHZ4faaKODwnntNVNNuPAy oHm6geeND9km2DISvrEAI46MBzcSwjnU1CS0JBSRQYvwt2DB6iS6qy+pnCzRIGgD hqkVuibL2B6W24naOjacsRVL3nBM6Q46VUbCWXCYAHdNxdczhSt4I7znZv8QAuB+ EUif2Hh7hCMU1XbTeEptE7dfuvbvGAdzLgyuqRh5zdVVdynCMY6cKXeo7u2szMAh IjxXo176+H+odWEzX4x+RZD+wF7E3KuOpnQ4B8ZGNkqWYo42hpy1+hh0Kv59I8qX vRrMyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372758; x=1793977558; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=KJ1/QSMEHE0kwfIqmx1SpbYEqooNrwVzJlztSSREPq5075t1/dlGzPRnsGq0NP+YuR dFTKXh9BlogJBlzgJrOCf4cUzl1GUpE7QO5L7fAGyB5PTw7RMw19hIcG1djU2fi2/4Pr ATkol1FU7B4HMRYx/oRS+TZQ0JtLXJwq5hdzZ01PGq9Mk1nrndWBP9eJ/zx+NZxwYf6W pmYQvPbQtGXzomWCKBaKeNamKzjo99kpRIcUXNTwDvOsOAIZR/6tfxBg7Yk01VLbiUfv +0Ei9KnfDSQ50F+JiKYmsuXMkhUvJCZeN1HAmINpfIjBdVPBgzuyGyl1gkklJwaABWRB N1Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372758; x=1793977558; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9ezxwTOoRrCT1s9gzKXBUfjV1t2eO52tFy0eMGfZLsI=; b=P9JIp73wp6NHhdbp+WXx4G6EcW5dfQ5Sz9vcOV1Rp36U0CEHN8TK9fIrIb7/nI6Ei5 oyIAdOj/Fjl8ZS6iJizvrThV7QgLD9H0zbMtBWc4vMNJuBatolN4z+zosmrDyTbntPjg 2w9fEqOEv4opcRt5ImkFp4/rMY/rcMPmdAGcdq2GTwqe83JXCc0sYWO9y6NJDvU37t/v 1fd3TRc8ffxJsRYMfL3Pfa5GPfISfrvuwefwfefii0QBqj66sffXfKa+cZJAmc3eagXc XtrSvtZpF7levIID0UOy/lUXzGEeGKu7YmoTVJq6cG4JnMnVaR3MK1FMICCvfd0fkUpW +r2g== X-Gm-Message-State: AFq9FYIvaCw9xxgklnQ+Cu55qzmNZepvR8PfMVaCVyFd7j891bBKqFET KXi1tmYay1B4tiyo8d2YGtyhMkvDG8MczKkEwJrJkCezhHK5Svz4Yj1u0R/sZ4FFOhTU5xKSrWd EJdokYvjlM3pMB0AOeP+y3IWr4/iJQLtcSAGNeyyBv6zMzYtr37j4aZ/2ox+ykZDSrvQK X-Gm-Gg: AYBFou11DEj4ENUxabOWZrQvEKFfDcHyUfVkC6wI1kPuA5+od7igkEhUlW5S/GRijif AtpMLQ6yMrYMDq40CNZBZqN5S0j8a5RhwJbDjxU1hcH/XO7LUbt62PfipegiwwwomSua+ZOtnsr JKjfqgLJrrlk+Ez/zr4ssi5lrzT3oRNK6bxIyxt8KV12ZvguU5wdF3od6ChLxLmuO04qiCLZtv1 Q/ZjsmhlrEh2qs/tPiVpKAqUlRcRxkuFaP3ndrmMArbDEHM6AnoB2Sy7eni370KA6ZP8O1ywm7w k13dyPpIyT3uUYEffpgAMpnnROCMshGEXlOKbkkOjXb13U8L0HQVFxVEkeoS+SvWBMiaWyW76Hy QgfAVrK0E1dAiYDG0Tu7D4qtqOuGfZVC1kDKCHrsUyMdzJbNsn9E1g6r771rYoPR5jUCCn1pE4g SWmXwtMG/cWepp8jKCQOMdhxM/TctF8Q== X-Received: by 2002:a05:6102:548b:b0:7c3:6466:3155 with SMTP id ada2fe7eead31-7d072d2ca10mr1114677137.33.1793372756327; Fri, 30 Oct 2026 08:05:56 -0700 (PDT) X-Received: by 2002:a05:6102:548b:b0:7c3:6466:3155 with SMTP id ada2fe7eead31-7d072d2ca10mr1114605137.33.1793372755317; Fri, 30 Oct 2026 08:05:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 27/31] tests/tcg/mips: Group MSA interleave tests Date: Fri, 30 Oct 2026 16:01:57 +0100 Message-ID: <20261030150202.61556-28-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX15qGCSP92gOT 7BO+fhfBaoqYHFgu5fN+jPxheLjdTn5Xmb4yEuLhJ1+2pcyQ4zkfkuAioKWTWC8n2nyaJzl/eDB kzsx22rCBpVKdHkKLYUqeUvNbzvQeOcrts/BjFuwlKSoJBS+spSGZJWEtPIelw/fP42WAsJ/7oh S91ZymBiMHD/iOyMxKrk51PsEPXGCuvzmohc7K46se1CreN2Du5lgn8jAcqPDH9vd+C1unhesCy qw3fC6ImIYluDst7xHg43SUZlNmz4Hrii1zCPNscEZGsIu01jT4R4gOozf6KvI43aZTFM9UG+oz 28leVpk7Ye4OWVbGJ5lThiv2qc+3dwMN12o+zz2SkR7ULkL/DEcNcOt4GOCVs+k+VoUqzq9/6X9 dqTXq/AwcyeJotM2kQoGDuOSSzVxP8AznVSueh9VGp1SYGwMx7zkUF7zrEX30spYetCxQlNMcmr aS/qdLF4+ouCCDm51rg== X-Proofpoint-GUID: 8u7oiTiwPx_rdhB4Wr8ytFxSLtVDgyX5 X-Proofpoint-ORIG-GUID: 8u7oiTiwPx_rdhB4Wr8ytFxSLtVDgyX5 X-Authority-Analysis: v=2.4 cv=IumL47/g c=1 sm=1 tr=0 ts=6ae4b257 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=XlFCZ7tVMrZGAbOMMLgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX9U36o9ofnHTV fRlV5nPpZuDnpaew1VElJjhsuDo3IEH7wWScsElNE+uim4R7yA1lIZ+cuyb+L2IvCvFo7jpcjXJ s3AVxUetobtIBxB8DEdgGz2mSvjlsKw= 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-2610300060 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: 1793372813643154100 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:26:35 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=1793372804; cv=none; d=zohomail.com; s=zohoarc; b=XFGBk2gcDRQz0cuzdPC5VNQ6R5NrS7rNA8XDYrw4gVO2R2KTGZZ32nQtCmCnb7VELJUfl2EIeZ3XrKrhle6PDHeY/9TDct07ptaSz/BfuwtB5/7UlH7w3vnTr7USmYp8jTb9P1eJsYEIsfEnacluMTk6pp8r1scNB5FrtvGLpEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372804; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=GWoR6lgMAWmQNPh/xvWCsmhWyugRSiGU+BvkUcIqYifU7kW7ZdXvM32nrCwbjoNhS6SwT8c+jd7abftRQCPUH0tEJbVYNraVgQphMnHpg63UCW1UCSr3did4yszcNg//ZMTQDAqAVhTRB33gdgI7OduK0stJ7Qei0vGtn/z5GNc= 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 1793372804122957.1157126063629; Fri, 30 Oct 2026 08:06:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoBd-0005oX-Pk; Fri, 30 Oct 2026 11:06:34 -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 1xMoBI-0005Z0-BM for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06: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 1xMoBF-0007YI-Rm for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:11 -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 69UERDKQ4102993 for ; Fri, 30 Oct 2026 15:06:07 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 4hme6qkn91-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:06:07 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-990aa76e3daso237767241.1 for ; Fri, 30 Oct 2026 08:06: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 5b1f17b1804b1-4aa80f04785sm144203965e9.4.2026.10.30.08.06.01 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= 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=Jkpnqrr5q2n2zc/6 Zf7VXQ0n5CbTfwoz812dXvUCR85t2nBXvo8qVqLyyD8OrdO/g6uzhcwfgunbL6e5 v16xJIXGabAeWYQqBQJvGBJvx344H4UNaTLTk0H3oZlfaujfK6LYav5PuDhOH7JR /o+D2LzECiUFdIIn1c5nkZN8HofSa3kD9knxA5gSB8CKdkLZ/NR67jQGxaUB9XGB QVnH6WZUHb7hRiK4cjQnTY03GAabswhUZJudE4hDsaPQkB3K2tzpF4VsaJm3BsHa Jr4YjRh+yn7IldWHcFikCljNQmkVfqCUvWkACAs6sKxqpP0xqgTmlSIfSSBGf1cU 0nZA0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372767; x=1793977567; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=VakULRF/ZlzQg9DlX20JmxO+/KBixFvRDBeFbdHtf/0=; b=Azokl9V/822cy5NR1arHEQr9Tlav55spBXDj0GiBpngHfyE9UMUUXZzO1FXtFybpjS SM2bDRJ5MSWJxT3CoCf7i1WPdbUMFQH9NReYNW5KUyVVT58p/6syvy6V9HrUKPSsDeNT bHYrKqYO8C13eCDQ4Ls9244cXUldRxk/g76X3qHi0PcSMORwJuHTflDdN353VrnmhX3U +DiJByfx2Q9JjiWNNzm//A+uYA/6FKupLKN+dOY9fVHDy6qncOtFhapOb4R9imL5GLrr y+QZx7k+wQADVx9j+YUYi65mKn5WKr1P2RM1Mss7f9DYDsueiUwlTLBWA0oGSmMTmZnP 38Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372767; x=1793977567; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=A6FMjDhoxpnL3rlSLJCmtMQyMC7WmSybFW55XTy7r3efvXwRauuvsZFrEU+QnOScy4 H60hEvqxPbxfHZMi8jQsLByPWsrphW+RmFlHGw+mn+u51dThUXIANFYdiH+wRqzGG+q9 wg5Sh7VGQA0FYOXMfGmPu+BQ1B5rzeRVJdV66El7xl1I8MlwN6GzwrNyHX4VNSctjKGp dMgRDETppON19W49OFEBdAVkRFKd5AoiXHjdUzNdEWsW7KuBtThgbzlIp0GhEKLLFUKu ndNo3ZMqf60/bd2bVK7XFB3BUb1cEfgK+/rq9KCb9Xf78jlgHY7rSphMikUGMStaKJ+s +ZdA== X-Gm-Message-State: AFq9FYIaH6kht64sCLD/vCAUsGbKq5vfNC6KCN9bCKwSW35VoP4chnIb sVbXjnbXpMo660+vJbGRv+VGRK56p1ECpJDoeyHxJ6mFBJ8NmZU6b47nKGEFS8ppQBl/056oAoN f/gG1/+TsPXUNA2oH6LqC7pvik7rCEvYYMX5VeRo0TWx2st9f6M226jW8yYTAfTg+Eyu2 X-Gm-Gg: AYBFou1t23YCgHFKxDMXSFRLaHc1iPXq/rsTva/wnRqL4qjhmfb/+Lu++SpccFBVr7t GVfSeTUq1tiuMAmGpoI+J9WIOZ01Occ5wRw3fL6ERsEe3XVhJvkGkF/DsxsIiCvk+gpKKetuzjd bzTb9BZPjAGg1U9SMq8cR9TsS1dsiKcQgjQ85zAxsaLDBx6cPIvNGAKR1zd5GPo1nQd4WoPNeX9 qMWtHub1sSE3dD5WP+WwLfXnO1e1Gg57+mIYN+mHx8O7rf5Um2ioh+LWCio522gNRQZTZWshyN3 iacUgoRZaFFMvQKP/Doute/xS0uM5usoACfxx1ON6yA6h93yBMZ7lmHDMaVaEPhDKxPb0Q4CGoJ Af2Uf+Izxxq/cR57LNk5S/UMCBb5HSiBtQCwR6Yc2bLfXPidP73+/VCdG8KbgFXrEGY2lYE6Z6+ AXK0mNt1AINjNnlrBiBqqgWu6luHQZYA== X-Received: by 2002:a67:e116:0:b0:7a1:fa0f:1106 with SMTP id ada2fe7eead31-7d072d759a9mr1037550137.36.1793372765197; Fri, 30 Oct 2026 08:06:05 -0700 (PDT) X-Received: by 2002:a67:e116:0:b0:7a1:fa0f:1106 with SMTP id ada2fe7eead31-7d072d759a9mr1037496137.36.1793372764526; Fri, 30 Oct 2026 08:06:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 28/31] tests/tcg/mips: Group MSA logic tests Date: Fri, 30 Oct 2026 16:01:58 +0100 Message-ID: <20261030150202.61556-29-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX5T79LHZHbNiq r5SmiQCcDiRUffLjz549dYcE8e1+uhjbjJDcrEPwGC5tERC/j316Cw3jxZwgZjyfirJQPGonqei sjRuV3X+w8uRXYcUuvmBac9bwPSXq1sEtLeXm4Ck0tVkYh4MYWP5iOrw9ABV9brgqNy17sVZsJb RpFNFUk2Ko7RNGaGjT8i6hxiHDEMcsF4MtAd0HaTPfErSoo8CdUOvxt8Q5s/rTc9CJ88AW0YJEF J/8xQliP8GDrYelNROQcV7DrbDD5LsgNXpH29ILfWY24NhRWHAo2FV0QGphNgmKfVJnv4HQ1JCq evb8T+SqNYRdzlLTR4YNSkOjkx4RuwKVZcy9iOcSiD464pYVFscCi8PALTTZOtu3GyWJKztsmRD 4ASg7osk4MvwgIMGMsWd2QDyu6PJD0WQO7UQy6tJe5CETz/xYN6HwAedLmFP27cHHnegTqGxvR1 Pml2XEgo+lzHAkdhExg== X-Proofpoint-ORIG-GUID: ErLdvs76DSnwLeWtDF_M0eJRun2ri13M X-Authority-Analysis: v=2.4 cv=IeoSymqa c=1 sm=1 tr=0 ts=6ae4b25f 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=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=XEEDF0r_pM4_IqxSCIsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX/+t6t1N5lrph 7wrsz1bxxxLIgA3XeMhmWlNNFJazDwz44UjFAEoWPeTh1IGkwOHna/pU7+6sSHKUabssjTSXaC1 1nDo16sa2HuiOVe2cuPm+oR0Mbng4D4= X-Proofpoint-GUID: ErLdvs76DSnwLeWtDF_M0eJRun2ri13M 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-2610300060 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: 1793372805586154100 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:26:35 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=1793372823; cv=none; d=zohomail.com; s=zohoarc; b=c9XTIQrS2M9xhXwn2YpuvuAq21rpO7YCUxtspHbgIMKIBSHNlCSyl45gty7eTTkztP4lcxrMpjT2QuOqG/dFildfb0blTbyz2w8lLCIQKWDxk/YGHL+JQlxwo+l/2NLbm4hotBSQX0q+QjqmT6AKoc9ndvRMPWoFgnomRokB0SU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372823; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=J0xgUAxWVr7jO0sqKtfhAaI7lRpbRKXYTrHk+m0qwA5fChCEPTAlU8fHNOTNIqAjgy0aOTnrYFqx1t/79Xc/oc9z5aaFo+7/Y+IU/olrdRhR6zGs4nraH7w1eYvVLdGOfIejufsaHHgrFWDfmWEBns7QsGnJzXy3FroVklAhi6o= 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 1793372823461570.5294935528008; Fri, 30 Oct 2026 08:07:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoBw-0006Jw-8p; Fri, 30 Oct 2026 11:06: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 1xMoBU-0005fj-Hj for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:28 -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 1xMoBS-0007Yx-P1 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:24 -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 69UERiLf3207515 for ; Fri, 30 Oct 2026 15:06:20 GMT Received: from mail-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hme6qkn7c-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:06:20 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-5eab2a9a633so803226e0c.2 for ; Fri, 30 Oct 2026 08:06:19 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71b80306sm4032021f8f.33.2026.10.30.08.06.10 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=RvjVDIIW3e4TaZVl 9hRaOvlwQaevBTp8x5BKrCWJQh3s1PI4uPIApxAnUFDSbnb8MINIbcndZjdRVw9M I/zet77XTerwziWAwNTKWtXnbRKA3GjNajLZHx+XqjILGF8Xa5g+HZ73vhxr5mct R5AIqjTKa2wepXK8TeBHPzmsL9NCalEgvPpJv50OayFEGEhebs4CvJ0i+dXi3gt2 L8uTUGT0iuIFM06AXfv+2QH7VJa8sRYlyGJCsoSYD6K44F8gFDbIoyGG+whxEivQ KW9Ox+IkiYm6px2fSJXiAlt7WpuHQYkoVmeNHQimoeEWyG+e1qV6dVeUk0lrnc2p 8VtYGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372779; x=1793977579; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=e8NS910+7l5vbkI8rme3uy+RCaQdYscWZIOqYN8mjQlO5QIG/bVvRYONuZ1tLyyt5B /cTuB3Lyq81yxb0eHToXEOffun7jU/nf7W4UNl3rqNC5HagbjhFSWhf1HFgZH+E9SRTG 7JyJI8L7EZb9/ZdSvQ4GlugzmahTOhxtpTTXVxq5FqqXNmJXJJb52T77EmGZBG/J+ehm wY1xWGZyktbZitJRFi4jm1xoFUKednWZvfol1NShcU3iY3LB3kI7xAbQSwbcr+26fblb CTYsaFKMxOYbq6NSqYQjIzO3Z2r0pNojHtSA6DXiMmhnWWdL6crVNqlQES1dWah4uxaL xYaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372779; x=1793977579; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Ln5a2kmJSKTRp3xk1+kyEyXYJkvlbQ1tjCGZIF1mlFE=; b=P4WzUpQkPnlrxcn0rlCggmhnx/koCvvZKmNRuEprvaFFs1D61UEUPO3cwZpTA+GWoo ti4Vpez724XtZIIspNOamRtIQ+wZCATJvkgeqMfsa96mL6FPXy+3CxJemdxGwnqrahSt 9n8ouRLENAl7XfPwGzkkztq7C0GGN0LxoyC3aG64JOcZIYPKKTe8bhr8Iz9p934Qko/N RBD6h697BMLfeBV9UqsNekVNzZvkOXUY+Q/Vxa+dXsihDAkkQmm2P8uKzkOAbPfI9s7s zMroW2oMy8RMmscd92QvucfniMhEF5qtbij1Ih1gphU4PC5Nrw33Ug8MQu25v6oUKuGM kUYw== X-Gm-Message-State: AFq9FYLeg6u6NoYUWO+K4h6vKS96EUqe2fvQl8jzn9YIZY+KdyfqTyNY cI7FO2fpz7EAQleW5btzXP+EmaRdTxIrwTairhxjlAewxEHowW3e7rQjvqx5Bh1NgtDd8X3mcXA t1DhWQvl++ca4syyAbxddUssfnKUA2kf/re0TBKs6tr9wasF4ox90zYDUw3nMiB/B5jzi X-Gm-Gg: AYBFou2wjTa8aCXtXNJsO3N0EMHLMBwfn1+sWNen67xhDelLXBJ5U+PdEnN/BwJNHBP TGeWMpVLKiL3GzTpiaQaaA4nbr+VnykMH+n0zcgQ7kDao1LhI/MXbbBTwO3d+/oYCFx8Lu5bLkd u0YMDbybqVcIvxrnrGGgUEIaRtFWWfwK+YYWbHPPq2oos1EECCXdGVT9BswYMe05IJydwnG8ChN u3zFNjiBXOFip0gR+svH8rBH1WKqUJmYnAM1EWtEGrTnuDaMDfyTTJG3tBMJ6nnjeGRJUM33qyG pNCBz8cUO55i97iQwzByaVbXge8EVoQ7p+i28cuwYvEiViObqbElzd67nbBduKGD82gGGlZnVWR 3/GsFCqZG49MRtx79NTHnbnlNDA1/3L2QmICf7F/Po8muuqLATdyXF7GB4bVbIfG6aGFQSPDlUY WpZcxA9ebz+IVcwy+za9toKgclXwSCKQ== X-Received: by 2002:a05:6122:4d86:b0:5ea:aedd:6087 with SMTP id 71dfb90a1353d-5ec6871d3d2mr1553956e0c.4.1793372777853; Fri, 30 Oct 2026 08:06:17 -0700 (PDT) X-Received: by 2002:a05:6122:4d86:b0:5ea:aedd:6087 with SMTP id 71dfb90a1353d-5ec6871d3d2mr1553052e0c.4.1793372771723; Fri, 30 Oct 2026 08:06:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 29/31] tests/tcg/mips: Group MSA pack tests Date: Fri, 30 Oct 2026 16:01:59 +0100 Message-ID: <20261030150202.61556-30-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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=6ae4b26c cx=c_pps a=JIY1xp/sjQ9K5JH4t62bdg==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=kAGlr9DBaqhD0l0nM9oA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=tNoRWFLymzeba-QzToBc:22 X-Proofpoint-ORIG-GUID: fsoyW6EfJp8O9Xj7o95PHMN4CHERLdw5 X-Proofpoint-GUID: fsoyW6EfJp8O9Xj7o95PHMN4CHERLdw5 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfXyFKesq5EnCRm xb9VsJMsba0HXHHuEnJ9xW4bdTT99yFhaHFfthskaIOTpTEfYLGExGRGFzRrB1jiyDHuDL1OduA zhUK+8VfqObLUjGSzpjNaJyDXSzXk5ZzKRWgoUmg98jqA0uG6xetXzSCI9RgrcX9PrInv53JKbK 3LHXQMFI9YhD9qxny1mS4tGsg9n4ofJrZLahEZDWlzi3Xbqirqlvkl2E5RXSXP89HbcEtr191tu Njv9iqYifQGgc1oSNi051ApVhXst4F+DEDiXcO7VJM7LOtNClPFUzeJELK2A9OlktUYFUUgpqiV MhEoTEY1s4dANtoKLljQC188rupq/nQos8oVV9ogB0pa+/223hinCgBKuedJqrExdzg6akLoluT D7V4e5D+Trk0kXoeW5UOTlHKsoJ+d2iL9zLWXZiz3hAKiV0N/DIk1RLHJXbf0uQxxHDUaelphQN Sgc2vLCD3bRIT+/cGHw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX/MVh1AmJCAdW FqSC913rcMDDHeqL7EyOmgsq2a8h3CjmrxmxT2oD+07HKfNKHSeGTuk1GrYB+fov/SjPLxU8i8b gCk0z6Mwfs8LetAAYJtRt1D7udnBO/g= 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-2610300060 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: 1793372825773154100 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:26:35 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=1793372832; cv=none; d=zohomail.com; s=zohoarc; b=ikzjtfJD79+97jjbRaiIiFHBgpypGOvA5X6+/f3zgGD/W+9+4G8oV/8FRpZxBiSsiGezGfS6P4VL/i2tCb9OSUqPl112a5aE3av56aVGci+uewzKbCRYE1/l7qsd2QWih0vT2KLGCT6koZO+6RadLYMrPvz9QfbLZlx3SfIv2XQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372832; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=QUli086FnMmnnWoBN3l9jQ1Zmd5QbRlNheXSH/UxZ5CpP7w0Gkwkgi5g5iXb5UXeqBx5in5Vm/Era/bcXI2NOHrv9BqIgj3kEGf5u6LHdHcOFeb78RpZ3EdFXMEk5Oihmo0me+4H7Gx7qCsqTT2HJ4LQAzp58YA5qC6ILr3VUug= 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 1793372832436137.50260599589524; Fri, 30 Oct 2026 08:07:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoBx-0006br-AF; Fri, 30 Oct 2026 11:06: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 1xMoBV-0005lF-RX for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:28 -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 1xMoBS-0007Z2-VZ for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:25 -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 69UERBUk2494589 for ; Fri, 30 Oct 2026 15:06:22 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 4hme6p3px2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:06:21 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-988bea8fed6so620867241.2 for ; Fri, 30 Oct 2026 08:06:21 -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-4aa80f04785sm144216995e9.4.2026.10.30.08.06.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=Z05hUgxnVqleKn8d Fdvy8RyHVMw2gghupxHv+i80Odkx6U4gDJBhAdWOUGRhqmaGHWMX7gkJGusNj9p/ VsubZbFcgPBe6mO3pC6yYE+Tfzs327tvUwVl7IAJjrSBOUwPXJPhimu/M5fQ0sU3 /ptftix/VeJJBAYmL/ZreG5b+ed1QklngDh5djLBlL4QP8ads/I6fv7Pbytmkls2 gU+u+sYxBoexNSsujEIAVJWc9O1FC2G3qkwB8v6nspT5e1RL++mKK0QHtO6OmPM/ OQVU1u3PlLw2xkTepAXksvBuFTSZPijOZlFmv7PqBWIX3zkYmW9arALb91kPMHjI q06mkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372781; x=1793977581; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mpdKwFVW0iz0VRrdRr5B/JI3IrlejdTTJva5/3O6xm0=; b=D7xnuGOaVcN+cGkgppzO2xpFLPU5P5kj07mN8mC5AJEbUYDX8dpYh56xM9n9hi0viW 4aP36OhZRvU5cr+1lIUsf87Y4/J0RIp64Vi9dImdd7RetbAn6dJ5CTRXaDk6kjrIAJLH vvuNH1BM+cRsifmWRPg9mEaXtURPVU3/wlBJVi+9BFlpSsyJguOpvoy+qpu/ZGV5u9IT iVFhxgdMhJFXBjFpvxJmemCgx2nQTBs+IUifgwSaDqdjKT9JJGpvbheDDrFQDdXD9PMJ EGVxSVpZ3SadHzeA/9HK/BjH19gpaj+F8uoxJYby5iFnIul54J8VXXrgiTKU4b7JYmec WhlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372781; x=1793977581; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject: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=m8fnk02DTdIq+dLGvdAesw8bAvW9qZOTbq/qEd7dax0GjUnF4fiRKBXs0uR3Vi6I2L SXcaKQsvZ8JF2bRYtPNQp6MVpdXEuIZ2PyF8xI86F1LIwA3FSwBNDHPvgNXVkBikNivT z58P/kSnoctJ2j5Zeb60BDl3GCDQC/tz+KLe/ZrJKpNsQsSHrlJG/KFvlNmHfCHvOp1G f5u4nySRXEYiQVNEaFKsN7jsLXt0F4A+FdhiLrkntZMjklYcIe1xrceMDqDP7/LtETEl FsQolkHVpd5O8uFT52bUoWPec39sX+MhFbUa3a5gnSs8iEnATv6vc0zcSEFEtFoCNhyT nZfg== X-Gm-Message-State: AFq9FYKaWheEFwDKhvocgKV3DsJDsMFwYK5trPLxmj4VBqlLQVu5M8Hx qP1UsfUQeGMOVSA2yA4Bv0pg44IvKAiYkBV2P811K3NONOUvgqhRKSn/nqCNNm/uxM+5ghivc4V wM2ateAu2cMELXqhclw+zKHJ/V8GmQu+A3exVAjIueospb3/cKRlQTSov0RWene8a1RVx X-Gm-Gg: AYBFou2Q5vn2lb4FyAp+akiSP1KDQH5pcuDDHimHxh0WY3LaAy9H0PD2FLMYsWPAObW 559ZU54fKTKznVd9LDsemC+ls63caaDzQj68fjNV3WzPzYmRBb5OOOo1ZNzBUuVCAwBx9TUNXMK 3KOSfP+C6p89vNpJPd6S1veFAyou8uyZgT2KCZHVxaWpCQtQgp+8I6SJE3Jt2S4aMVopKSwD4dK GebKQ+il6VVcEvZBsvhp2mXGhDfln4foq5GECc184pZBtwzOAA2zksS/qq+87GdirQlvwaivkx5 6NzGhUcwfd3F91qVSmp5HE0z/FgnE0ceUw8UvP6hqNpYbYsIJxKke09bmHiYcoKGGyCQVpXw3Pr sU3v2Mctspgzyyv2zwMusCR2znmbh1PWko7M0Xukeb3E8qKcyN8URK24vmcg8Wn0/ZGhIKyy3Pq 2g9xncp0eoSnIE8yUY669WCm7OrVIZcA== X-Received: by 2002:a67:e111:0:b0:78e:1e0f:ea42 with SMTP id ada2fe7eead31-7d07223fbb2mr1313379137.2.1793372781063; Fri, 30 Oct 2026 08:06:21 -0700 (PDT) X-Received: by 2002:a67:e111:0:b0:78e:1e0f:ea42 with SMTP id ada2fe7eead31-7d07223fbb2mr1313280137.2.1793372779032; Fri, 30 Oct 2026 08:06:19 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 30/31] tests/tcg/mips: Group MSA shift tests Date: Fri, 30 Oct 2026 16:02:00 +0100 Message-ID: <20261030150202.61556-31-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-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: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX+PEXIym8JtWj b7tv7+vr0bdK4ECbPY57b8OrNwPmWHHWWtq7M7Dx15Efk/S61XlySWQ984LZrPZpnqApGThk5QP pEgwrK7aGz0XbgF2iPXBgPv89o4wuoXjaq8NwXmSgTzR1f94PCNQJFAeqgdwVdevu7SIRPQ3xJB +6sUQPG+05KuEcmiefbTQtkMWCQ9D9hLV7h6FdBJbwHkOYuEnZfzs5dDjisHoY2dYhn36U7nqbO AMNb1JVDmx/BeFl7zxz6shAi76nckcPkwMmi6wVeUiyQpuRKdIVVv4lFV0kw3rxReaFVZyB7qX9 Utu6jn/ao3YAHBQ2WnrhyoFbo+fiBwG0+7TnD7VOaBBvQJ/w8jrl/qwADOlywtdgdwfon3MxRSi CYPRfsq1/NyGGBLaPyH8s4qHH45FQKXx1PywLEr7u5CraSY7rYRDdgXPlxpTlfvH6m74/pUu8XU Vov2DdykkgkG5eBX+dw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX1/unatFruq1k k4LRE5fo5jggQqiV/MEjTkdLao+47CyNWK/O6rJadcxaEbabtrQ4Hk69svDl6ErmOPe9ZOKzgVV EGXazljX55x629KG25g32RLXKNPRMnE= X-Proofpoint-ORIG-GUID: 0IBs4vCfXTcsHghsejzwMggMM6a7IlPa X-Proofpoint-GUID: 0IBs4vCfXTcsHghsejzwMggMM6a7IlPa X-Authority-Analysis: v=2.4 cv=TL3Q2Fla c=1 sm=1 tr=0 ts=6ae4b26d 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK: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-2610300060 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: 1793372833980154100 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:26:35 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=1793372825; cv=none; d=zohomail.com; s=zohoarc; b=e1G5KgFu8/QETFgEbRDJJEqUT7f1u3Fn+p/qSlvK6h2xNf+FECp9u7o2QzGL9KuxJX0PPSd1rrdqAOZjcwPGU+9pTko5CKBNphigL0pPYI0SpbBjlXL0885v6k08tdCBB6y5tkjJxbIOkTxof5nFftRYdRRCvcmaWTUw9jz8WiI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793372825; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=r8ca12Aw2UnLvMm0+mSYfBKBbI/qlVJsPAiVwYFMoMQ=; b=MiMKvJxshKRRd3cX6wWH534oD+5Z5fKvGzU3YhtPLeGs26/44wJZ3HbJu0NMCZ1+UhWZXbjeukjaNi2GfIbUSLcn9FwjD3ZTWlvKXMTflJ0phS8SWelQgImVNhbjV6VF3LVBJ3Q0VFRZpxz8Hs37Kty4bS9GIIrLCMUq8hukFmc= 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 1793372825796237.70937347891913; Fri, 30 Oct 2026 08:07:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMoBw-0006OV-Aw; Fri, 30 Oct 2026 11:06: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 1xMoBd-0005ti-H2 for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:33 -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 1xMoBa-0007Zi-Aa for qemu-devel@nongnu.org; Fri, 30 Oct 2026 11:06:33 -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 69UER3GJ3515284 for ; Fri, 30 Oct 2026 15:06:29 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 4hme6qkpqx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 30 Oct 2026 15:06:28 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7c15deb3794so205173137.1 for ; Fri, 30 Oct 2026 08:06:28 -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-4ac09ad35fdsm42480525e9.2.2026.10.30.08.06.25 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Oct 2026 08:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= r8ca12Aw2UnLvMm0+mSYfBKBbI/qlVJsPAiVwYFMoMQ=; b=D3lD/ryMrr17BnXb 4JDZEHzHXNd1/s9yhSPwUzhZ20qIuWybNlF3YlDJV97zycFhnlhj6LRIXrvElLgH 5up7k/tl6S23AI6siFV2pjC7Su+rb6SWIT+kr59HQqIbispsWsyLSl2/Bo8j2Uik 3lYyylTgTC6v49Aj1gTuIUUgq7Sgy073ZhOxGczpI3ld18jLPM1UkONxQjTxzsrp oCmeoG8BW1vfDLL5P/sCWjKy2bSGluq7/TZSJMAQeBjsdWGdNLrAI74rf6/RRs5A 0UmkiUPO8yQZS+XQR/X/wLdlAHl8l3hUbp4z0p6WAXIF0vIf1uBcE3riiVXY/Abk 3c2eQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793372788; x=1793977588; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=r8ca12Aw2UnLvMm0+mSYfBKBbI/qlVJsPAiVwYFMoMQ=; b=ZaMDK2zeZLUQHlfB70lsN2AfudR1GoBD6n+fKtzJXwsSLeE+m+O9Wb7GXWXBd2cBZH WiiKpEM3cuO/8RFnBbuz+tA3wRDabVqMrO0DSRz69kZESMnXUwZXuDfUfI1p99ieNP98 WFWcuVcGqP6fovNi39wXAzk61JP15f/lE2D78Psv/MQQBj7KfHHYt8p5Frcub57BHJzZ IqgKGUMuG7iwSxeD6AH6JHSTwqrLPz6MfvbcxvOH+AGusogFvhtUXy5eQ6OJtl90JFpD elIEWTpOVGPcYB8Dd3B94GemEL1ntczOx6Qk4ZaCI6+x9iGf61DMDmnq8OlhIpz9n2jf tlfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793372788; x=1793977588; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r8ca12Aw2UnLvMm0+mSYfBKBbI/qlVJsPAiVwYFMoMQ=; b=pHYR2aPLRWUwZKxCgJBYOkxwECSTaypsNJVzCiWekcq1yzwwqCcX5RlwrWj6NFL1yb oDFkYc8CNex9HB8OJHuItXSFsVAeoqajHiUm2uvAN2x24O8CVwmw0G2kP4zQSFiM+mvU 72Xa76wfee/n1GhyOxcVEYaAtGXEXTG2zsouAVxyCDGEq8Qk56ZBPy/7hYrqAZQ8mvPH adq2jR5EBkg101gwjbIghV+K37sOtB0xtReRv0ghTzHZg7qVfI6Gb3rvrNFabeIR8Ns6 cuu0pfjaBEYElctpXfE2cxK3oxZHQYbNWKijyLfYa9Ahaxoj2lwQKkwm76m+2fBVEw6Y mxYg== X-Gm-Message-State: AFq9FYIaf8AkHdyIaH0e9hpAjCQC8ehdOPU11PN4wlMLxKlDdrl8+5LH mRLv1Ec6MA+s1J8YYqXMq0iV1elV70h0OCQ5L6OhwhEUc9UwSaup94CKBV7ZPMPoRSMmDCPKVQg brORz+WtJPyRj5ffOTQ8H7AYf1it1pviq9KdN4QgZ3y2MaDxDksOPE1itwM13QGEbsTVW X-Gm-Gg: AYBFou1LQa/P3E2kgOBqC282L+gv8JatsY58CF3LChjOfsJLUQQQ/oW9txUl76BfWWj ytRiggsDjCZos3oT+tN1VMn3HeqQ85Y0U6atsT0kGttXvqjfv7jk3I3kaFZIe7k+RCGNxhRF86u ZKa26IB42QJRocSLBo2p7ka/87mAYydiAxdgb9vcCD+xp2k2aNdNYn0PDSS6Ik9Ghc4vl8Qk4ne 741tRX6cFTO8IR+6gGe+81ebrPswXSDFYpITRReLecwjAfWRd+0j7AcC0GIMZvXsm/rB6dkR8X2 Mgf8uqCATXQUeoVwOweSkaJ+WNf3YMxRPRfLf3HMtC6696/HRSDaOq7fy1dF0YICVfP3iLc+EzW Ak+CGsTDqO+wh1qvlbjXd08cBc494qx195C/HND92Ia+RHuL32pjus9BMhMRtqXq7fsV9PmY5c6 YfYjJgT9422Yr6V1SFJ5Wnj4AeaWJcEw== X-Received: by 2002:a05:6102:5811:b0:7cc:2c29:54f0 with SMTP id ada2fe7eead31-7d072238fbamr1209242137.4.1793372787469; Fri, 30 Oct 2026 08:06:27 -0700 (PDT) X-Received: by 2002:a05:6102:5811:b0:7cc:2c29:54f0 with SMTP id ada2fe7eead31-7d072238fbamr1209180137.4.1793372786770; Fri, 30 Oct 2026 08:06:26 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v3 31/31] tests/tcg/mips: Add MSA load/store tests Date: Fri, 30 Oct 2026 16:02:01 +0100 Message-ID: <20261030150202.61556-32-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261030150202.61556-1-philmd@oss.qualcomm.com> References: <20261030150202.61556-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: kROKj0ChmHJWk5DWD6JLmPf0xa1YHT5w X-Authority-Analysis: v=2.4 cv=KLzPn1Fo c=1 sm=1 tr=0 ts=6ae4b274 cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=31ySfBESk6nFzokIpWYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX0uSrrBpbIjNM V1CICsJMurjCvLJoh2N3a3+7uDL07K+3F3jnHzO81hRBmzzkt7Iol1L/vukWUd7VW1osOhXf0lR V3OM4QhJlXXNh7dsPf4L5JttLw30b66eJ7h9FmLgUUq38KJ2F/N6MKl21gmmtBqL2ZNyviOJhsG QBu9heB/Ju+W/Bi8tN1K1avhpMR4OqiIfT9cYURr75AdDxESHI8IeXcaxoN/t3qDsTgnNdHoaTk 2ZUw3X178BG6vpbgRIvdTbF6dWEISgQI1D61NE0/+ZNBxpOkqsUSgScM4bzy/tmATHbOLXlPQS9 yGGYVgZOxAqIDf5Dehtu7+Rjg5Mfmjm6lk8pkkVL06cnlIOcxSWuRgah6Vu0mJ2CQSeeqAqFbG5 6RRPc4ANgsQxa09xi+RDaCh24KqCU6VLFL3FOPTR70aWyDVVXKXPH7sqSgM5ZGkd7ArJbOddAlj McvkE+63erYOIeUlWFg== X-Proofpoint-ORIG-GUID: kROKj0ChmHJWk5DWD6JLmPf0xa1YHT5w X-Proofpoint-Spam-Info: AW1haW4tMjYxMDMwMDA2MCBTYWx0ZWRfX9jBuJm/0JkvQ mwlJveLGmOb+x/njxW/nodu7yLsSzV7uuB/t190rR+zPoe5jz/Tw8n1gnKTi+38c7qfPu+u09IA fD8c1lCmpwhR+1BePuhLJ6S/+eICcmE= 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-2610300060 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: 1793372828037154100 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 | 163 +++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 1 + 2 files changed, 164 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..a3c8f4a8aa89 --- /dev/null +++ b/tests/tcg/mips/test_msa_load_store.c @@ -0,0 +1,163 @@ +/* + * MIPS MSA tests: Load / Store instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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)) { + fprintf(stderr, "ld.%s endian mismatch (%s, offset %zu)\n", + formats[format_index].name, region, source_offset); + return false; + } + if (memcmp(destination, expected_memory, BUFFER_BYTES)) { + fprintf(stderr, "st.%s memory mismatch (%s, offset %zu)\n", + formats[format_index].name, region, + destination_offset); + return false; + } + if (memcmp(after_store, loaded, VECTOR_BYTES)) { + fprintf(stderr, "st.%s changed its source register (%s)\n", + 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; + + if (page_size < BUFFER_BYTES) { + fprintf(stderr, "Invalid guest page size: %ld\n", page_size); + return 1; + } + 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) { + perror("mmap"); + return 1; + } + 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) { + perror("mprotect"); + return 1; + } + + 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; + } + + TAP_START(); + 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) { + perror("munmap"); + return 1; + } + 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