From nobody Mon Nov 23 04:26:38 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=1793294633; cv=none; d=zohomail.com; s=zohoarc; b=XhvLJYEscq8uzIHi/fQ3UlPqNAkDRcP5vm0BPhDvAGCK7UfTFdJog7VBuyCqnP1J8LwMsNPvqJwbJS+0vRF+nl7GC/ZtnCJps2p17DRtUVVwLjDnTEzeteV51vvGVXPQYhepauEpTNljf/BTsRExKCptCo8Cc+bnofA3HpDetKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294633; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5eg6uSseI+IZO9BGPPQfXo4QrI9rpBHetd0vGRv2qP0=; b=Ny/8lIWut/j5GSYuxOldK2XT4/POfLrNTfARM1gjnDE+kLNuAC2DNBTgfj22gsuxhOyYZdSSH8eG6GsUx0IlH2B0Ta3aR2tPmSUY+R3VoWV58Rm57QPkJQM8k0s9naCRXg8TPV1GOh1TxJGuUos59bz5GLNj5nfHOgsYtyIZ8UA= 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 179329463384785.02574006247539; Thu, 29 Oct 2026 10:23:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTqi-0005NA-QC; Thu, 29 Oct 2026 13:23:36 -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 1xMTqg-0005Mb-In for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23: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 1xMTqe-00011f-2E for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:34 -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 69TGDcRT3234408 for ; Thu, 29 Oct 2026 17:23:30 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm31b2459-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:23:30 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93e92aad34aso443717485a.0 for ; Thu, 29 Oct 2026 10:23:30 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4abf0b36853sm951375e9.0.2026.10.29.10.23.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5eg6uSseI+IZO9BGPPQfXo4QrI9rpBHetd0vGRv2qP0=; b=S365xwt9M3AYICpw R+RU1zK8RLk+Vu3K0RzL9TF8qp3XbK45r3fDK0qy82H6e9QU+rvrFxeORqyLpLZx 2d4D0riVMND+RKQEDkqoRJIMVZwyGVSHd4mhhN7e4uq3zL5oZ8vDY2pE3uVFzAT5 BOIbYSqnLPzfEzuPAFd1t/+Dgh6N/dodqSFIBx8Z1qIbcMcsN3oOI2cc2HJmANMW 54cYC5sgVi0Okwt4R8FdueZ7YJBakMrcGsf/6065rBQbR03r+uZVKp+1IDXW3s1+ 30ddA9+VOV/wHdaR7JnwoSUpQCEQJo+bPUtP61ALRuLBOdD2Ss7MYLFuYujqwOLY EVUTOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294610; x=1793899410; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=5eg6uSseI+IZO9BGPPQfXo4QrI9rpBHetd0vGRv2qP0=; b=Q7Kmmc+yaEfZ1tC2Yg0MWZVQ0wOGsgPh6oyw5Km7FyV5Eg7nhyvWtf9O0twsYxxDdu 5SfNvQBcuiVAKstOVWNiCA7VgHgdoXsrO9Hboz3BDQuvcHBIM8qUxG3hzs/CEdClqeQb mqvh74fZKX//bRw4dgbI7S3AUfWV0WZg6D03LfWGInCTwNaRgpb/ZEK1ROqDkQVjXI/6 wPxHcQGYG+2ZDOujgMbc9pX5Gs6K6taitnsjyTbZpMTbqvOCq2236ISaPjwcAgiEyvFC Cixfzvr7Svk2E6fPwbHN8nZhW19e2fDmL0cq5+u8vvjaJp3YGHJ5MJ4t7ZJ9iWtQZ79N /MJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294610; x=1793899410; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=5eg6uSseI+IZO9BGPPQfXo4QrI9rpBHetd0vGRv2qP0=; b=S78KGUEWBjclu1Cvt2p/b+lnk/B/CbQqq3IOS/WXHRSTPfP7bIeR7KD9Dld9z2NPS7 /+i5hIhgCbei/txLarq9D3W65NKpoFKGvzmTDlzxqgBVzP0DoOdI3xK39lJ93+WMVnFb E8OEmGS2KDyAopHmspDxYyo2WcUKoia85oStkW0UgbJLKHFsMQ1bvgPDI9OAUYxSyMbA j1KF6MiNKgO6XRGTKydM+2b3txH6mcc+8A3hrhAE2UxHx/kSV0XMHfAvwgh3B36sFSjY N9zqGPbxUNJ5JGNi+rBGIiXE/MIn2lRQ8xDE0JP+J2sR+3xfNsKxFcBA+ToAPOsoHZOC CEUg== X-Gm-Message-State: AFq9FYLFSMm0bbqAx/yXQEQ2KUOMYnLGpcvfS3yOAip7wLYc88bV9hbY pfNW3zuQj6FI8IJ2qnMKnrCeAyxydl0Mkjp1l68RGoJCN0CPrerxOnexMl2WdU/EpwEAehdE115 B/6KdVRTAwbSuJZsA46cIdqCE9cOAkaRRmTz2MFKyPYH0Wh2KeOfQO9O2wgYdHLTIk/h1 X-Gm-Gg: AYBFou3Wnfoq+bkti1YoSc4l1a3SySuyL+QqvQHgwRsQr6BaBYmSMKs6Cl5j+sXgsHD 198YQypaovURdK6GAL3fja/49csWTHSUxvl0rjnB+f6FSS8inbZ3ofvq+WcqKg4YRhLgCRgiQ78 fzpBfpfnKo3JjYyvYJxMWpGuP4S3Z7IqEN2A6MdeK3KIclQZDLlpCp3qvV9jRx8/N8p8Fx9daVU 8BkBIoz1XYDZIkr6/1RQo6E2xusTqd+jMtWwVvGVWWr9IZDS4Px3iCpBPyJNPPCLT5whDAmhWUi LZ4dAtl4gND7aq1oenND8iHnEbK83+BZUHFk4qZ6lcVDa+r1dbrVpDsv1I8nHltF5uxwULP4NqJ 4Ehk4e7cktEd1RxAAX4OdfSLqtzORChqobAgmcKuuoK6japlFZAhlg3Lp+v64EntfKsFq5jyjJm lS+HV0kyfM5fkTH5lsk7jmKSMxc9zp9A== X-Received: by 2002:a05:620a:4008:b0:93c:6534:d04d with SMTP id af79cd13be357-94408c94a0dmr966423785a.35.1793294609360; Thu, 29 Oct 2026 10:23:29 -0700 (PDT) X-Received: by 2002:a05:620a:4008:b0:93c:6534:d04d with SMTP id af79cd13be357-94408c94a0dmr966418985a.35.1793294608787; Thu, 29 Oct 2026 10:23:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 01/31] tests/tcg/mips: Group DSP acc tests Date: Thu, 29 Oct 2026 18:22:45 +0100 Message-ID: <20261029172319.25766-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2W1X3bucbQQf 448RX8zybX5TFCcJ4C2NOl1eBgHUzqrtlPzUTbmU6py+qxMB0zY3N3IUjD/PgwEo24sGB3aqQw5 NbLlH3qq4r+UsaJ18ozmjg2H8HyK1oM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX+ozl2Mwy6Xu7 9z0RtZYycC3J1vxJJUmUt7kvR0bfpR6A8T9iBKvKFKi58lznJwBfuetBGMzaoEaBhwwf4z7xZQT KtyC+AZ3UTp9r7WhACzUn0q5vwt6lPCYL8I3m+KEsGfoDf/Ujn65ngv7h9L+ZK+z4JxC/bQEJe8 odlUZko//U9+anAzkau+CzZwVZ92Imob/xsCXYTozrVPPe2hMGVvHeUGQ1zERv/WutdXktVz8b0 tohj0mqmiYHhE8pED9DiuR5/7Uy86k9ebNfOyYDF0blIrlswsNKIvS1NrFj4OltyH84CpRQ6Fwh KXygpsS9uDScqV7aa7Fd5uorhO1hVbNkkveNULkBqE0S/Pz00ecvpy8x68GhFuhPU2YWTcTuGu5 Zhepqyz7iTGYk8rY/jJ2Hv1CYtzJ6o2wPLlqTavRaxHdqZA3NKcNFeP+uO5qmvTIURZW/Netn7m 2vIPK2DI6sKWpVT/4qg== X-Authority-Analysis: v=2.4 cv=A8T5rKWG c=1 sm=1 tr=0 ts=6ae38112 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=RKuGlSn1PhqL2lZPwEwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-GUID: 5ANa3Sl7TbbUf6q9RJ8FykDYfF6FHQoW X-Proofpoint-ORIG-GUID: 5ANa3Sl7TbbUf6q9RJ8FykDYfF6FHQoW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294635534154100 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 | 39 ++++++++ tests/tcg/mipsel/test_dsp_acc.c | 112 ++++++++++++++++++++++ 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, 152 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..4fde59e97825 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_runner.h @@ -0,0 +1,39 @@ +/* + * Helpers to run several DSP ASE tests from the same process: assert() + * only counts failures, and RUN_TEST() reports one status line per test, + * after resetting DSPControl, in TAP format. A test calling RUN_TEST() mu= st + * end with DSP_TAP_PLAN(). + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ +#ifndef TEST_DSP_RUNNER_H +#define TEST_DSP_RUNNER_H + +#include + +static int dsp_failures; +static int dsp_tests; + +#undef assert +#define assert(cond) \ + do { \ + if (!(cond)) { \ + printf("# FAIL %s:%d: %s\n", __FILE__, __LINE__, #cond); \ + dsp_failures++; \ + } \ + } while (0) + +#define RUN_TEST(fn) \ + do { \ + int ret_; \ + dsp_failures =3D 0; \ + __asm__ volatile("wrdsp $zero, 0x3f\n\t"); \ + ret_ =3D fn(); \ + printf("%s %d - %s\n", (ret_ || dsp_failures) ? "not ok" : "ok", \ + ++dsp_tests, #fn); \ + ret |=3D ret_ || dsp_failures; \ + } while (0) + +#define DSP_TAP_PLAN() printf("1..%d\n", dsp_tests) + +#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..7eebaa4ca2e3 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_acc.c @@ -0,0 +1,112 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294687; cv=none; d=zohomail.com; s=zohoarc; b=ceavzt69pABPzdrTM55usrmih+yM1Kl4OOpe7PSwipD/yVWt5RpFD2FYqiOmk3Xrbln6BsVZvhHLtbVSC5sC0F9h9JfewRcWt2/+0owZEQq/MhwbhxxtL9R0vau+RdRODm9IWignxZz6D4ZTX3yYtMWx0/SSeJAGwXXrXBQbyEI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294687; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=fRKXX9bqNzAvYeKFTRVs0sM4WOHFAnJxowXWesCDPAM=; b=jL+r6tBu6JtY8Qv35OmQkJ6NTqaV2nDly4giEymZUIJ+QihhCO+pfq+3LMZ2oFWHEVkMCtY++CxAZYkUdUyYFHyKBo8fPelpmOZ7A6dkAECO1lnoSXYrLzZRW/2Ohp/YGU5wAuZuY9VGqxwUhYE2vR0iLucnK/mu9sFNUohgtUI= 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 1793294687194445.89105322763146; Thu, 29 Oct 2026 10:24:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTqr-0005VM-Fr; Thu, 29 Oct 2026 13:23:45 -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 1xMTqo-0005Se-SP for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:42 -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 1xMTql-00011z-S3 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:42 -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 69TGDPfd594481 for ; Thu, 29 Oct 2026 17:23:38 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hkut3kpf0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:23:38 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-934963b2bc0so426423685a.3 for ; Thu, 29 Oct 2026 10:23:38 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa81b7fe80sm89156675e9.11.2026.10.29.10.23.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= fRKXX9bqNzAvYeKFTRVs0sM4WOHFAnJxowXWesCDPAM=; b=IdSJGadgh6ZO4Dd+ W6LZnyxFCFitOoKzFJ8WGeXFrBq/9RS7nT5U04ELIczYd6EwZcW8YrNJegMLdZBt RQif+i5lKXA4RlYplRFBcmoOBgOc1k4SEd2L+hX5z+N3NRQndUYKPe4e8q/oaXHl 5gDgTynEok3w5/tS9VT+wFTUp4aJVt4O36OqP9+pLAZWzPEtBGOhZYjfwHboUfVS 6LoWEsk02+JGYDJi9iqGRw1PvQEjLK7w5P6gifc+XpcbpYF8s7hB3sCxFdX/7D+o jOIibY4V1faiibFFYdGexwJOU+ZMeVZ3tnCLSYykv4BQeQxPviPCRLg2lUVI6Kf1 434/Ww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294617; x=1793899417; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=fRKXX9bqNzAvYeKFTRVs0sM4WOHFAnJxowXWesCDPAM=; b=C60bIfT2190w8CsOw892xxYDy/SDKwEneeMq5JHeKlwRDPqkRsOpq+KW6eal/pnyXM uHIdbgzx8lRFKXAC1RyNoMB5qblWKTPqvTlKWYJdhZR12eBKtejvw4UUCq2AuVjo9wY1 fvGzqyMl/zXsULcXE4epmtc0WGTCPyAZhm8q4hN5dmIukJu1KcsaV/+g2pW9tPs4/+qa CusHNTGp3p3FjAs+AVR2DgxzIUEjH6GyFfacPq3K+C0YfBxscvEU1eZJHCLVk45UKnlR BNw+tuASVjWfJichkwDxXqDMdkx2Huo8AY0a0jXdZ+k84PF/THCJIqHl2kNghQoOvQ7A 2QPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294617; x=1793899417; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fRKXX9bqNzAvYeKFTRVs0sM4WOHFAnJxowXWesCDPAM=; b=nFxcv9OyZHI/Bs01rJSKiWVhTuNGPfWhidUCf2SsKLdvjAUkFxgbEZewBeXU9G298z Hb2AX3YLz5aSy0kdoPGmPGfj5FUSNfDmqh39PwKhVOeWyUFPTsJn8bsJU48+waDe0pon a/N1f6QU0eVWKxybR2go+pLud9YI45IaVEcvXM8yET/fT8BG+U2QjCeJf4NXnbin77hJ W0A6j0y6L2DcXlLfv+/tHb9rjd11V0e7Up0qNB7YKNEDzaoa7W7c/5EqWI+/2Iv5wSG4 vaeyQMiE4g6Q+lUznN5UkYUx3AmLLhJaRdmZgUWgA+ydM7Uvc+Vb+G+77BANMMLsOSKC YJkg== X-Gm-Message-State: AFq9FYIPrYGCAXHElerwwG9c8MLh/AOwQqkesWsveKCpW9vgoDsCB3/h G3TE37u8ZRDF0OX2R3QgEZxE0gpmB6mU+r/N/bE0TEkRvcO28/2gB8PUyxOJWa6B6ZSzmYLSj3j Cg41ErcShHntmVO706eKipzHMXwHUPD5shMIr5VXxm6jZ7JImGehsmXN6AqcO9wnr/KCh X-Gm-Gg: AYBFou0fkbPO9LKdMTsOzG8Q2XWx2GNVIkBOvrqrQgDUuDCdHUWZ8rT0n/BzvnGeKwN ac101eRSLk/CGSgoK88T6X0wLLG8js1xw6LU+1Gbbua5XMLvKWGQgjKSsaatGLIvnGfiSxEpVQ9 HTvX0m52g+Wk95oWKRNH4d5f85IV6WEAew2wJRXwC7N8YYWuFRnWAJnE+8gw7ijttwsjdcs1tMi ILal/xKIWV9jACU6g94qZ3uNYMmapf3Ms955hZfCZgJPPlRxOymc2HrnMl9SXTqfL8mrvJaQFvU UZ61y1ChxwV/zGHBphuoS4mN3rQ7WEy5UQS3QwQ1woxy3CT6EVEElSX4TVAbykVORIZfzDeL8fo WFyISRRS8dWCLaVWKAtpRax8X1JZWEYluQqYitbuSlR4lHVit2cwL6g2t93LEqxtSRzKwpZpLq3 IJHmHtqQbs6RP6VHYd6d9NMiub2puJwg== X-Received: by 2002:a05:620a:40c2:b0:93e:96cb:3083 with SMTP id af79cd13be357-94408c943f9mr930354985a.33.1793294616860; Thu, 29 Oct 2026 10:23:36 -0700 (PDT) X-Received: by 2002:a05:620a:40c2:b0:93e:96cb:3083 with SMTP id af79cd13be357-94408c943f9mr930348285a.33.1793294616155; Thu, 29 Oct 2026 10:23:36 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 02/31] tests/tcg/mips: Group DSP arith tests Date: Thu, 29 Oct 2026 18:22:46 +0100 Message-ID: <20261029172319.25766-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7A7HPJ2nf3iA nbQbxoqipDNsFzBldbwRzFxXn1X06FtLQjx7gZV2AfWKshi670CYS8Sw77yACk70MvzYtaP8yVc MQzDF3EHbL6E/CVH4cIjWEaUfksWK7w= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX9/OKQKp4CY18 WBgiugWECyhigYou1LelT2Jf+agWhSexjwczY56FKjnNJj8hjnlYuW546A3ew8hcYndO3jT1BmE qa82dUR4qUnHxSOuj5udWLIIDajAk1VHNr7iM5YbHOBINUwHEUtbLQa6wHVc2YK1dts7mEzh597 3kTv6DdRaQMMLCMLs14lwjZ5Dem3tbg+g+hEG5u8xQb4m/FgOvg3RFnYXvHtH0Ax8xX3iqAFpSw kKyHFFteHBbaXM+IbyDGcGBYLvx/YB9uc+18OEx+swuOc+Ps6cBEFUL1/lMUnXqEmqXTwoiou3C LLqDbk+2OuRgP9/LEwU5Yik5bcRoNyF+2Uz/8OaEZWDnQ8TlmpMxyy9ppMFpp5vGkt5MaUOHYpl w6o4B1EUrEDUMM409vjaamv53PBwNDM3D/zSaZtLxoQASnRm9kpsjqiAGPt30FBsM9e8Qz0U5sV mrKtQEhqqPkKn/t31kA== X-Proofpoint-ORIG-GUID: oy2K8Npr7IYSyzneZBL4lSj18Tbbdk3p X-Proofpoint-GUID: oy2K8Npr7IYSyzneZBL4lSj18Tbbdk3p X-Authority-Analysis: v=2.4 cv=HYSB3SE8 c=1 sm=1 tr=0 ts=6ae3811a cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=EUspDBNiAAAA:8 a=QcVZmDX5zYVA5dVMsrUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 adultscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294690064154100 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 | 182 ++++++++++++++++++++++ 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, 183 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..dd01ceea057b --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_arith.c @@ -0,0 +1,182 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294715; cv=none; d=zohomail.com; s=zohoarc; b=F0JYdkp+9RRvaEyPNu45QAUDFTTf5fbniGL4ZtPGUCxyoLwCvdZ5q5GPLsnkKDVhNdeleXLaMpaoXBfAnC+ETUPKksIoFKtpMdqn8To7ar8eeqAoUTtRtr5k5M1bN8Ivq6+6tqzYx/TfSjmGX9MZxxCFXRPSaYvYE6kNm02US2M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294715; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+p/2mSGlCHHYQ1GvfhyzgeWHrR6DS7SNrdse+KalGjA=; b=flmRsGqsgPkcopYq5y6RjIgni2ReoXSBb/1b+bstGnScNwn3LO0GKqoxdeAhvjQM7F6bLjFTjNc1EUMeOhKt209ZCFbvIse7djBl2XiNndcKN1dbsXTFQnEgSl5/pfyuONnwCCN5v5njJ5ihh7DD8XCug1zciAmtFnUbE9hrQNo= 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 1793294715742534.0398511338678; Thu, 29 Oct 2026 10:25:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTr0-0005aR-7x; Thu, 29 Oct 2026 13:23:54 -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 1xMTqw-0005XK-2Q for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:50 -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 1xMTqt-00012O-NN for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:49 -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 69TGDWdg3234206 for ; Thu, 29 Oct 2026 17:23:46 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 4hm31b246d-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:23:45 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-99062be02ddso521389241.3 for ; Thu, 29 Oct 2026 10:23: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-48e6dfbe7dcsm375800f8f.57.2026.10.29.10.23.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +p/2mSGlCHHYQ1GvfhyzgeWHrR6DS7SNrdse+KalGjA=; b=LNZCYl4YwMSCSOfE 5QcHWZmPwLRDb1vzNuGM3p5TWgcLKuyKuE1TLlIwkqOUwJL+/ysbv6xygh2Ud7T5 4Ket1Xcf9I1IAoaZXwBIf9EHXvpfGRmMy2tX85h2XiwM5BhvX+7bmxJmE1K422RZ gmpHj5OcP8mBUexorUZEdzHulLDgZUZPnBYtKYFJ1+wWvbOIRda36lOTJe9IyRbG DoYLUHD6+CWRtiATWha0wuJnGP23POq00vkNzHBQ65zTgCp2CBFGl8LWj/eOz3eB Qsq1jejb6MA9ZVt5DZL2/nVt6C8boy6WJbav/F51utbfXdJesJzuhI1fV/6Gvmid icqSTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294625; x=1793899425; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=+p/2mSGlCHHYQ1GvfhyzgeWHrR6DS7SNrdse+KalGjA=; b=Zt9Dj1ThtAccN0TS07gQkDtwjeE5YDxiD84tQYv2lyB/PbgS79MWEKiOKCJ0fiqe2C 8d2Qe6fwL+qn8oxgTLV23Wjfi56+wyTU0CKwrJZF3VSfb9Bm2UwXwcQ/eeQ0rmRDi77V 3ryuwrZDWHYR5RSA5xpr84AX4tP7SASUVVz51xEkrBgmGVStbNPgw5sbpd6E4CwAWLtY VSLBhzaHEFgclqFn4Wl+kkq2UfOb88fpnL2PliVf4AN0C8Tsw+MGxg5lOb10+3KXXSZg +f81GumG6NUlLkoP4WmzrmZGfCl2zSE2popSxs/PY5g/b7oGV/GPKfzL9YUJse168ter nXCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294625; x=1793899425; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+p/2mSGlCHHYQ1GvfhyzgeWHrR6DS7SNrdse+KalGjA=; b=K2Q9wZ5y8RtaNfax872De/LpJNguMvJv7iW6gdJesRW8nCAsvYy0/jn1g59y+PiE1f aa6eFFzmfeedbicBVhnWO06GGGuxgg4kJettfwUG1XhjmmwDIv00yfouPJkL9A2USQFn qhbqZ3XHcivj3ZcUbZ3z7xLugkydZOKVpNtDAXwC2visTv7LnHXM/fWVX6EEjkvvc9SL Q61Q2craRTf899Q7GyswDShZB+Sq7UkL0OMcqSfhfopsEorNfKOFUYshilNacbGz8lye jvMRUhLj3TyJtuzcjCimYSwhvUyiDjTkNgqtmNDy1/ED7JNk66GZtFm4lXSxy5uNeHf0 vUzw== X-Gm-Message-State: AFq9FYLsAkIKYRPXSKhO9RU3TTIAWyoYEEpGbC1em5oz7sKWDnTRwe6g 5LKvcJp79sHa+Hb9etivUA1ZTTW/ILM67Bq1xBRuPDkrA86AY9KHTv372kFv8s8pBbPj6GWNyM4 PSbmM5UHqZjbC93fy/OydCUAzYbu/URvT77QPXXHvSDA+EXPHPBWBTzT56psz7xlkNlRN X-Gm-Gg: AYBFou1F81g7NcduVz08qjaDy6z/8dlMeqaM9ptfHUbTsWnolG+OSw16Ivo/jbxazBy 90sdEhDaI3UJxaC6MkSoRxWpPr+JipAvKi8kqk+d1x2w5eXPZJV9hS5+pV34x+PGo39k0xXwj6V 7yINZ4XuB0srmBE4ell7+qUEviOlBA4SiF7EcsP10cMstAzUTLJNcjPHz6y3rkQmbU49IAqlctV G0MLHJpCSM/zXmTvu7+cLvb63XyclGkMEurcSddRbwxwGj05dINim1hyiaT+NiEuyqPDJz46DE7 IUYJkzkyN/sJdVc0Txt7OvTUMS0WapRY2KlyTocPX0AHPK3sWz7PwmQ3b9OS0OxXXdgsvzaWR8S 8qgtoHhfzxcHlfMTpB8eVzX61d9HL9szGjEyIvVTqwmOsnCE/mD7uhi6E71ulbc8FI7187/G7DW yHwoS5qZPekcVDyFC0ceClZQiUDytmrg== X-Received: by 2002:a05:6102:dc9:b0:7cc:1d0b:6d33 with SMTP id ada2fe7eead31-7d03a5eb01fmr2755551137.26.1793294624596; Thu, 29 Oct 2026 10:23:44 -0700 (PDT) X-Received: by 2002:a05:6102:dc9:b0:7cc:1d0b:6d33 with SMTP id ada2fe7eead31-7d03a5eb01fmr2755523137.26.1793294624067; Thu, 29 Oct 2026 10:23:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 03/31] tests/tcg/mips: Group DSP cmp tests Date: Thu, 29 Oct 2026 18:22:47 +0100 Message-ID: <20261029172319.25766-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3nbhjKWTfwBC pHI4m1vYcCQghCQ+13D1Gh1hIrx9Jxm1tb8W2+IqV2SJrVG6J9qdQdOYLmaeMHyYVPyLNc+otfH 5bzuYoKvTMZ4rNk4yvikJLDjecoLmNA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX4L7apkJWNB8u fvY+uwLjodFF208ckFPxn5xSxManeOL3R2dGG2Oe4iK6HHiK8fFJf0GV7a3XhSGFBkUNhmEhOHn CUd3Dr7byACg3EyauHsnyAmKVhQMNQDpEixw0sjpw6HAz5PHe5mSZpFkyjtsZGQuOkZV5JBqPaA dtrKqW8u1TjlP75b/XSNfYaJ7kd/GlgXDwqvQYhtWFvB9LUAl91UKI7hfgmOE1RR9EY75YffLDr vc6hSf8BgEjZe3jsTOLWtN52tQsWccHw+cc20ZaYLCEIYD3FfJm7gaISghv6hz5Cql5/vrKq0W0 XlHIJwfF3KkgX0Q6op6D+iJJidLXiviGpGxXx4u19awgsyYlJ4C2jbUMb4d6QvosjAaEdc0YxaY SlgPWA730PpvcijkapkDS2pabbbTVl3I5R7aSLSXU3T9wSDLDhK1nCaR8H69Ahve2YATlJ3JYRN GN1YKlp40F0/cflHV2g== X-Authority-Analysis: v=2.4 cv=A8T5rKWG c=1 sm=1 tr=0 ts=6ae38121 cx=c_pps a=KB4UBwrhAZV1kjiGHFQexw==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=iOl1oX_4C5xlfAs-co8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-GUID: 0UWX0e4EnqIaYKOsusjf4zNyMcvgSQca X-Proofpoint-ORIG-GUID: 0UWX0e4EnqIaYKOsusjf4zNyMcvgSQca X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294718595154100 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 | 87 +++++++++++++++++++++ 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, 88 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..89bc1fcfd1ca --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_cmp.c @@ -0,0 +1,87 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294645; cv=none; d=zohomail.com; s=zohoarc; b=igBYz6OJ4Dy+G5BIhljj4y8fRRo53jYD43RCcYaCu5c52GyAQfVxseO8kPUk3TZgkJMDlrVrfUqa0f5E0OL+pSx0W1w7RF6xADJUxa75/AbCWuB06ZhhyhZsHdqwtn+8C7YkDUjHomNuH7LJ1+exDEK8/lj+fZ2HWvpcQmLBJoI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294645; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ixzp4XtDpOUbudE0t2NpnH0GcOhMXu6sNpaxUvwyDec=; b=k+f5wBREh3zMpGBpzoX26e+K4KvWLsylr0+63/PRp7px7LbZj6SUwyUptKqTsxZta7Tg/4l4CjhC+8GehQ/SvYUNi2sgJJO4/kN3NFE1NNxmKigeu+c2ZHIsa5Dp2Q4kn7bam6bs0MV7Gx4zopguayrKi0ijyTDGHzSYXnFM6xo= 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 1793294645902599.1473881440666; Thu, 29 Oct 2026 10:24:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTr3-0005bH-6X; Thu, 29 Oct 2026 13:23:57 -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 1xMTr1-0005aw-Pu for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:55 -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 1xMTqz-00012p-VK for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:23:55 -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 69TGD3bI1143414 for ; Thu, 29 Oct 2026 17:23:52 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 4hm76chfdn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:23:52 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7bf45388253so1104912137.3 for ; Thu, 29 Oct 2026 10:23: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 ffacd0b85a97d-48e6df97d17sm322659f8f.28.2026.10.29.10.23.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ixzp4XtDpOUbudE0t2NpnH0GcOhMXu6sNpaxUvwyDec=; b=ksbwDq3TV8p7kIOB yeOEyH96ET5RcQSODDj88KMO1JAS3Uqh4gTSnDhrFa4x95+a+vcWQGNviTmqVb23 rAJyWS9mLMnGQ52I+lD7CWVn32aTnGE8gck2tcMU0xgg95uC0/KZ/rdwQcb5lRuG 73HVVJHXuEoBVf1peq2xYVKbb+A8JY5uT0Et1B+INTVJ59bqBNiVl+ORD/7OWQTp 0nv4pCa2lYi3aDcNxWBRtq9lavLnS0jh2N6ER+nZhgtGCY3g+8aOZJXd2okwfex+ DliUFtcg9qOXlsbZv53rHdBsnYKTOn+Py11HFfB+CsMfm43Ih5ZczObfF9zdg4Qk C5im3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294632; x=1793899432; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Ixzp4XtDpOUbudE0t2NpnH0GcOhMXu6sNpaxUvwyDec=; b=Z5MuAMsroDy3tXz/dp2Nw7hHRg7tUGiPkmnr6GYv5tqNzb8bjtIW4BpgVSFLDvZams r8N+37PCgssMFKrxHbbZXyYmK/HG9srHK3TyEaUvfya/eslLSoOqCGs7B56gHAoVAOkH STRnrNHwsxk0gYkT8gGpQb7HEMgpoyjPJJJ0wvWH3kRJtmd583+blKIM42lBhpL2F/Gc 3iqM4Hubfpaem5UKqafIuMWC6pFmn/jYgbXi/+t8fjNoyIiyZPRL2/CZZuQQ5viKWoAE +ME8YeUwp1l4o1f53YCFTtdTo3Dk+VWYVP3tSnLA5PDqm5oLx0dGP/Jsy8V6+08dvvkN gNCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294632; x=1793899432; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Ixzp4XtDpOUbudE0t2NpnH0GcOhMXu6sNpaxUvwyDec=; b=0eVv6rxDixenpPBATJ7Mj8KRpfOGOdo6OMoURUzb+++Qqf2XGTUiY/YZqg1xTJw57Q hvOc/5hNx3PF8ZNy4NhWqcw5hx7OdINOdJRvNMqxp/MUONKuZyMhHVLVHBRlVYdIDIyu avi5Zjt1Ty0x9CjG3V52jr7eZm8d4CuVkMySMbmW9ULNoOAqYmSQE8gBOXg5xc9IGgOE 0KY2Ai5lNIoFYokwRvioCNDkIqRqEculuPyxwFgcGUQb8sOO2iu1wT1nE0ZPwkdNcY+7 /vwdB5OLyEjTc3gHsApwfBAvLE7WbnFs7uUWm8QUsWR4/ZRbnS5sPeU7+jDbDpP3OCSa nrkg== X-Gm-Message-State: AFq9FYJjbbTL/qhqaPrBPl0Okq0Bu0irpBdQ/xn+/Z35wsQFn1oVI4Sv Ist5IxMrwsu5LQJRXgXvwX/qxODMIBD97fsltaHuejK93w9bTuAIrVGoR+9likITGtD9Dl2Xnqv C6cMxnXJfV4keXIIJdNGSNVeMBYOPY2Ru2kjvrMMsLPI48jL4qs9mMym5WYTnCyjH6iuy X-Gm-Gg: AYBFou0auFn7wjCPFjqCtf8gXH7dY7XEJSbSPSdUTU//7VgqGxmO2uxtpKbyZmRY/ql n9mGf5kJwXLJ44PW766M192Jj9n5+Ls4YC+3CQDTVt5tMx07yhPKsfth0pKAuZCFYvG5/c+CD4N GTPd2LD4y35o53aOTtPHcQMCxwi06MWpomrGOZx+sHVTYym+Yy+HhtIX5R1fIVFgthVNwflMAuX zzQmj+wiSFDImqnK0ZF5RUR2SI+O1Gf3WzvCI3rEwpEffUI3NgZgDOHO6ElZ9+h0ZsVsVVjBJqR aXZmR0dnZrn700QvYywAOY2Ib5yo7t1OsTKBXdTJPDNaa3U6Vc52ssH2bmi5/yxVjhyw9Ud1D0F P5J+7drJavdBbN6rBGnmXQCyO0cGCd6SvXgEzpQr0/rkQovgJTgzhdXm7SVQVuZJTaB3108FOFS NPkY/1g87gtbJ+j2YUBhDcmbmhVZspKA== X-Received: by 2002:a05:6102:4b03:b0:7c1:9f20:36ad with SMTP id ada2fe7eead31-7d03a1f19femr3474532137.2.1793294631882; Thu, 29 Oct 2026 10:23:51 -0700 (PDT) X-Received: by 2002:a05:6102:4b03:b0:7c1:9f20:36ad with SMTP id ada2fe7eead31-7d03a1f19femr3474518137.2.1793294631382; Thu, 29 Oct 2026 10:23:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 04/31] tests/tcg/mips: Group DSP ctrl tests Date: Thu, 29 Oct 2026 18:22:48 +0100 Message-ID: <20261029172319.25766-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: zT1FaNptM5TKmZgq1D8CmYZPLG1_6Bjt X-Proofpoint-ORIG-GUID: zT1FaNptM5TKmZgq1D8CmYZPLG1_6Bjt X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXwFJVeWGaXrlM LiDU8bWuyu3i61YOM4jDm/xCntNGyDvHwF4o3Dx/l1xQDqC29YSzQpeVq4miuDjWx80Vi9CL1mr zkWEPerrSIDBm0gkiS7FMMrAvcXf90A= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX+okAzM1n43YG gcrrj3CO0Vgvy8O+RXXNNoH6G38EdqLLubrMFrJ/Zgx6/S5NvZfFnUB4dghuhvPhIWvD+ndH7Vc 3TWf0ZDlolISqxzCKNF8WgzTjEZkVLAuR+r47/VEx6vAACM700kycWAjBa72LZK01Op/sbJuE0/ uwJpmvPg+Ia3fCuDjBb+f+OYd8s35dBIeL54RZL7qQaUtqAyrU1OdIzGTwSzLJJzcJm3AbbvT7R aFj6RWXTmGeuoQQJBxk6vd9jrvZmmu+gqE6nJxKn/7y/84tnszlPQsolLyEXN0KLqmZEFq8dnpd k235dM9A22nHbCpD/T4QhEV91j+7F7opqE0pIvnSiOAcaU5VXIJClh+xJuSpAM25UH1oW11uNDq t8oOQFKnLmt3txL5vha+XTQ7z9nw+g== X-Authority-Analysis: v=2.4 cv=NPtAaE6g c=1 sm=1 tr=0 ts=6ae38128 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=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=r3qF6kzAbVZcg8o22goA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=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-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294649390154100 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 | 47 +++++++++++++++++++++++++ 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, 48 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..a7f21e84a069 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_ctrl.c @@ -0,0 +1,47 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294698; cv=none; d=zohomail.com; s=zohoarc; b=bdmY0UTmfKsD+jPmyAcdrsNoH4cBBCZVQEsYnHgeWp4StkndIEaOo/h1K9OErrPdTDK9N7WsrTJ8JH4tSAMQlbPlya959mUgTwLxZGRRnKrtkTW1WodFos0+HyQK9reKyCJD87qKSLVJWftg/0JEWaGLjK5UxLFjGc1qyIG0rVk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294698; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=j6BkNP7Y+KCW2d0qDWXRmcx2kUV5UXjV3g/TnP9YUfM=; b=PVq28A/MmlhUY1h8A9QEp3Nv+ZxkMKz7U3VIXMDtmZQ/nWlb5MJU2SCGcHD2g2O+1kesJm4QuaxxbSGlPLcNPTusmpdJs2nOGxI5FiZEqVjKR4YvXpuX3CUYTRNeCchDtRhwVg+Jc1LMbHF0ScIKfwKOUy1LYGt0KQhIvlPvpyo= 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 1793294698387458.95927781306114; Thu, 29 Oct 2026 10:24:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTrD-0005ey-Io; Thu, 29 Oct 2026 13:24:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTrB-0005dQ-Aw for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:06 -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 1xMTr8-00013U-IA for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24: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 69THDjDQ182196 for ; Thu, 29 Oct 2026 17:24:01 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 4hmac0r1qn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:00 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-98c73709b84so1931759241.0 for ; Thu, 29 Oct 2026 10:24:00 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6df87f26sm454334f8f.17.2026.10.29.10.23.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= j6BkNP7Y+KCW2d0qDWXRmcx2kUV5UXjV3g/TnP9YUfM=; b=VgfUhxfQUTG1Ncif hR+HrfUm1QoMw/Ek4i0JjjAA/vIdSjVoSHXBKOT1hGSq6u4lI7Pzh5jr74c6fiFf 20xQAwcFDw9MfX5hxvrFoAHyZ8TYNdgeTzTslUidrWsY8yIzzKM/2+wnmBvLnsOf YvtjtyzyR6m5KEt/bStzSH042FuUvIfxl4HD7lAoyH7f5YB5VxzIv22h+s9Vj4sW 6BZe6FAm4tPy7M/t2m+qcnKHhVxA8tFtgxoc/0PomQanZ3mDETeWy6kDyqNx7AD7 8JW35Wm4xd0xOQ9isqMYQIBzu7yzlIH6+uCGb6j3cuS4JYwxf4uaJTTz3Y+lJl4B ZHOUcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294640; x=1793899440; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=j6BkNP7Y+KCW2d0qDWXRmcx2kUV5UXjV3g/TnP9YUfM=; b=bKBrKjRDndjblaqNcmWwpyq5urX+5UhpzBYSLn3GQ3X/9zylAJ9V3Q7Q232WBX7N0y OfSrVOebtiEQwm/CVu3yXanWvCaVEsuj0TEMpvS4/RezTKeG5NwAIQVy+XMNmdAJHdkL GRq7dHaTvLsW0F1QhHeSzpQbkJ6ld6P+TkZNcXtZgk5YHoI1X7057pep4Q5eCMmYRpdn H8mSJmHyF7bjMze5sRp1LpqKa25E0fC+/FbtKWrmo5AfuSHCrZd4AyAd2BI8Ru3/UFao lkjlX8ne504MUeg1LYX9VAXoMmsnpVl4fnOYkY5pZPPoTnmqoMf76DeoDce4fNLOL0jV k10Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294640; x=1793899440; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=j6BkNP7Y+KCW2d0qDWXRmcx2kUV5UXjV3g/TnP9YUfM=; b=e0tC0Ipe4Pitj/4/uIOG5YktY3nrcpsZ6d7BL13MMC1KuFp96dyeUzPrjAPlDtIHqq PEXtMRY3QwOqgWE5AybdUOLI6eZ59dyjfZ2GebwIY53rzMVq9Z2mqpg8QAQ93FExhqhy 4rleLrO616y6E59B4zyM1RyWu2RuFjmIECrIm+J3bnaN/YsNxuY2ztlMJWeyyRCZ6TlM pkOGKRhWXgBtzHo9ru9esmkdnXLRevp05H9MR9CegWU/zBUf/xn/hOiuJsCCL5GBwZb2 stsyksdFxNGEqcNy4XwmBeIu1ItpnIQjgZuggyPI3tHpy5/oU8HE0Fwrch95tvN6YbsK UOSg== X-Gm-Message-State: AFq9FYIvaZLFFajcT0ehLVBwNFdh6A73+0nperJdFSxUIF5jq06bRZqz p8xIQDZT97cy9t1RWqBR2UPSJMOab17CsglAu8J0E0+W/SsEG+ChxbiZNQ5+jZ6zL+J9hCa3j/k wfrkWTFIs4bwrDkSlMuWlAsmr39Doy9h1p9DQrP0WLrIpMhlfJ7HMrJWOJyDqujrN96d3 X-Gm-Gg: AYBFou2/Re7WA8rMNm3ZmxqSC0VXWqtlxCuSO80pA4kw8dNCm+GKhC9Vr6UTfe9gB+k wg249qa26PJrSIUjgI/Pl6Q18ueYGurznV5TPX5TXxJoyYHp/CayaX8yDtPH0VUy6PrQJjQ9Oa9 jC/bRyKp+H093kedvOQwy5QTcGlwB3vpRnXbRaG1wsHIrX1rnE0qZKqp2HUdNVQ19xWYckdumPJ GpWVGxdLCOj09TjH4TJUjIBZKSuKRbX4SO5f0h4fAzUjabogFzI3ktYeqP+BXcZv4hs+DUZiImV Qcy+Wt/z4FOf3wW4OH4O4inxXaXWzs2qtw0ZoSQnLJoXO6ZPKWP0ikt8YnYNJQAMzkUAx+FiFQX oczuyYSxGE5+3XsvYAdWv2SriGu/aWNkFv3WqEAo4RXd1i4Mo9kJgpnH4zi0cu5f6ixcjyr010G F0fSmGldMJM3+Fd9S0QjwSzUj+uxuu5Q== X-Received: by 2002:a05:6102:4b03:b0:7cc:26e4:193e with SMTP id ada2fe7eead31-7d03a602e49mr3069403137.29.1793294639261; Thu, 29 Oct 2026 10:23:59 -0700 (PDT) X-Received: by 2002:a05:6102:4b03:b0:7cc:26e4:193e with SMTP id ada2fe7eead31-7d03a602e49mr3069384137.29.1793294638669; Thu, 29 Oct 2026 10:23:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 05/31] tests/tcg/mips: Group DSP dot tests Date: Thu, 29 Oct 2026 18:22:49 +0100 Message-ID: <20261029172319.25766-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: xumTYQZjhbZ0K-0E5vQBLnxMI_ynD_XU X-Proofpoint-GUID: xumTYQZjhbZ0K-0E5vQBLnxMI_ynD_XU X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3rPbD01cWFwo te4Gc/1QAA9J7PKNf9nruja3pVkhWBWLLQv8w7cW9K6Vkn2qR0C0w2lulhDLTyUhgCsgqOnuxW8 jqzHjxOMwfDBGxZhB82ka78RRkwQBRc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXyVPJ3P/BnJRb t2/MRs156YWJ3dwZOHTzZ2wWdgDj9ZzfUCyiAankT/pDVtToULWJK4bUg6+fPjCeZYkyfMRoKYk 3akUfkMz70Q0GXOglkmX1RQzc8qPFT3anQEuCRm6aFK0pAKb8vUnB1nSLNmV+K3M5I7Ce/BJ2JZ prBQttoL/9/jex4mZp8WNwlpccvHRaDap1o4Ie1ARAm9sliqwdoZO84sX0GsXlxPcrHW7qdhrg+ 1tPgIffKBbPUwH4joTScVL6tVp6oj6shVn+IX6Wn8NOgJgmYmcNzss/o2j82lVXS/PmFMzvvbG6 Ru2VjnqLoAq7C9rRw+rHCQc91be8hP4+I27KSqfd0XjrEVjObpBQa6auC0b2B6bMYVs1bW19RlL EXQ6GYRAEOPjSJ/vn1D8eJugq5/9RoAVfMtXpeSw7GE/wH9pnI5pt4iWGDSiOdtx25AvrtRiGmG 0djxdJ3tyc6CDXy39CA== X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae38130 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=-Rm5u7GiSCzGvK1VmZsA: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-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294700585158500 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 | 157 +++++++++++++++++++ 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, 158 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..97bcb73f4114 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_dot.c @@ -0,0 +1,157 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294673; cv=none; d=zohomail.com; s=zohoarc; b=CEJZtWXV3MonjiNlQGI2/KauCVJ7Jy2/QVHBi1yDix41WccB1ZO4GAyqxichAb+PgidFZyfCACAJUIvOm0sFJsITG6ld23/E7Rvg7dngh+i7FzgwLIFYcZQhk0tdQfCOiOhrFnn9P5A5WhZZX7aafvdNL6pAqzUaHMiBHbqWegQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294673; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=K3eN+w3r/PONCOF9kLaw93/1PrdC3ACQ5advhIISjXo=; b=Yhke/pj1de6AwAM15SWSBEna0ickjXxB+gv1iltnBI1WGjcYX+64q1vYG5aqzejGjY45kZHTd8ooaygITkD7Jz3nNjSYEgNL4zUVodXpYzWSgTOkZAuJbXS4gQJ5s0oxaW41vkGdDXD4XPP8LjrsBr8u4EZsafko5XM9l6ndixU= 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 1793294673632466.22217458229807; Thu, 29 Oct 2026 10:24:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTrH-0005fk-5e; Thu, 29 Oct 2026 13:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTrG-0005fW-Cf for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:10 -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 1xMTrE-000153-5S for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:10 -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 69TGDe3R3689779 for ; Thu, 29 Oct 2026 17:24:07 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 4hky5sb77x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:07 +0000 (GMT) Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-9905fc56b60so785970241.1 for ; Thu, 29 Oct 2026 10:24:06 -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-48e6dfbaa2dsm390375f8f.52.2026.10.29.10.24.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= K3eN+w3r/PONCOF9kLaw93/1PrdC3ACQ5advhIISjXo=; b=grZqRLjnfCWpAXph xQ3bGIwuVI8hCr6AozWMFYQJZpASutMt03XG4CtVX83JVwMY/0h9AqGbax/e9AhY TZmib+czZC+MC+b4ylqW5Xv9bxBiQH/Yx4k7YspLdzfLa7y5o8evTnE6mGGX+sxf 0uSSnkgriZQf8GsumcmoCLJcRPnJ1RwDdDQtoPMyYZ4Pb9BoRj/IyTfBu2Rv1Ps9 adXf7WTSM347dZSIWSwAgJYwlfg4ZO8pf55Hyr3QX691T4qmMd/AElwIaVRlkmMA Rk4CgjWNi7x2z/4qOdWvOeYDs1IFlMeNTqgmk4Crxjmj8N60mKxkzQVuhpbBkQ1O rze3ZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294646; x=1793899446; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=K3eN+w3r/PONCOF9kLaw93/1PrdC3ACQ5advhIISjXo=; b=BTAnPQnN8UnyCPJMpgHObSXY/deVACpljoGjjvRBe8MlRDHA2kvqlB1vneQYE54sNL X6upCIjG3mj3+AmaQCSdztJYgMXKPC9vVWzwZbXseojR1dgQ5dBfUC/JZb55AfcZunsp iDv+TPRiC4Bir8ahKWp6s+hMe1tGYF/QP1l4nV78rEdPj6jBW69upSI6K6uOikaUMErE VVRXBRYwCq07DNtr50hIrcoSpt8DgkUI+41pQUhU1FFydDvnsLxaFahHF+n9sBwowLv7 /PbhjxLIZZGOa2WnVZ4caABv4SzPBJrExiwXyJj4JabLtcnTitJ5VBeeBqI60OfHR/ph 4N6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294646; x=1793899446; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=K3eN+w3r/PONCOF9kLaw93/1PrdC3ACQ5advhIISjXo=; b=NgJsX4FCAXPOhs2GAIFdHJJQ/0JG41cG14dQRu3Qj15h8Y4VfH4HBw0hNdAnkl4Uwg SCQdLL5ce9MLEdMw1FAoV4p6ZVGlJusTXKVIm4gkWTmeni84iU5stbR9ssRa8gMUoOBz V3RDb4eKxzM0SgGv0M2a4Emg4TsGUHWGrB0S2s1nD6tiEmnC3c3zePJY+3jhYvvZOOxv SiMbOtTHD2331F6srbYx1quXHq2gZ+aXJKJlLXPfNxtlcihzpOBI2FEfGNEZVxaHxSfA 5I9g9NjzQFynv3vOmiZHrt/EknKwiCGZZ1mV9OVQnCuSfQVhPDCxEzGJPAkfXB7mznnF 5mPg== X-Gm-Message-State: AFq9FYLStY/v78lsdf/JJqOjPMiC94ErnczqOLjl7MfG3XyHZnfZKkr7 4t2PAWgq2ozY60T1DBaBmTaPcq6O08QQnuWyZTlHl5GK2AYYexkwsaNdMlnQyjRqmi8cH63CaUX df4/+8Xa3Zi+FYjJxBA1t3ICZuS8VYvkdK13VJKGhjpRfGMqvRDEn7J5QeeGlr9yN/KBk X-Gm-Gg: AYBFou3Tn7SQS8zZr45REl0bjBVTOxApu3ErnmOpiSD1hdFpM/4CIbHUU16IYj7Bf0t R0+jxfWdFrArGKg2z02LTM2nyqgBDQPZUbLpZiFtjrRG5rUo2qrImX5hxhC9ZFE2HKThnNrsmkr ypdXDs3jZ9Rbu9PMgbLBKOUjyKqXuSzVXlDIf6B0tyqiLVJotj/d4V+T0tjCqTzDwr2iMLjpaNR ffL90xCadASRS5OtAqCQ8YOm6sqvoE2jCkM1V6q0pqMiCfjGFtfX0M7J4VxxmMahVM+hIsJLEWv nu07aFyWO4KYtnSKIxXLos46jjJTaHmYnqTwuBN9vZEltN1Edtv20G3TPcd+FB0n9zZFzfvF9Im zoj9TqFTCe8vGFZCIO/HGUrMoY1UZZPCeM9Ha7MHaooyNspoOtH9KBWC9F3p8JEIDjD2gaT8xfo O7kSAhDQj+hnFzG+qSI6L+A4K0xQJyIw== X-Received: by 2002:a05:6102:3907:b0:7ca:5626:11e with SMTP id ada2fe7eead31-7d054340e35mr1085625137.36.1793294646232; Thu, 29 Oct 2026 10:24:06 -0700 (PDT) X-Received: by 2002:a05:6102:3907:b0:7ca:5626:11e with SMTP id ada2fe7eead31-7d054340e35mr1085614137.36.1793294645789; Thu, 29 Oct 2026 10:24:05 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 06/31] tests/tcg/mips: Group DSP mul tests Date: Thu, 29 Oct 2026 18:22:50 +0100 Message-ID: <20261029172319.25766-7-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX/ml//pyQuE0K wcgepTjb0EQOQs3N7BhF+pNaoZeSfgmQZpS1pFDp5+K0uhD6Y5TMrO8IWcbOlQ4dhfAyfkvgaH5 OoHbM0/VLYZFa5VdYqu222mKaNxsuA4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3fLmC0PJG4o7 Qdr0wpgjMP5Ru5Ezhzj+MY3cw3TWhAgyvNQWviVj0JNZZuxdrFA/2xyhT5wMoKMP9xJE0nLQjHn qLwF2z7Blo20fXfnwrlAVLjiZJ/1vSpQ9q8+uSwdYRuh9NQrmYeW4P+j/Mnnv2//H2MB6U+EdYL w/0PF4lu8qfvIrN4fYn7W9rR898Nb6MXcsPCa4X6iQRmuM+T8zPAixO8dSoWQeYE9NZEAjTShDr 98zBWhaFETpFHhDj6ICifjf6QnDI2Wv4eqj+wRDwY/YJgYPWIzJc9lBWxXUAkzcnmHhHPgWhugQ og+v3Bi++n2WB0QV7X7DtouuNK87GTDqX24DhS33jCeE4GDT8tDT2gYtd6C6p7N4sh5p56uO5Cx 5erpA6x1kCpsGrU4HzlLb4SZ8ayveQ== X-Proofpoint-ORIG-GUID: uScKnPKwzd3lq5j4TyY243PKepciOrON X-Authority-Analysis: v=2.4 cv=f/vdl+yM c=1 sm=1 tr=0 ts=6ae38137 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=OUIqsWA_ulB3aGyEHOAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TD8TdBvy0hsOASGTdmB-:22 X-Proofpoint-GUID: uScKnPKwzd3lq5j4TyY243PKepciOrON X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294674043158500 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 | 67 +++++++++++++++++++ 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, 68 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..f7189d94dfe6 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_mul.c @@ -0,0 +1,67 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294682; cv=none; d=zohomail.com; s=zohoarc; b=LJZc1gfJqvTV5LtcUisTpj7dcHJOt4gCg0ZPO6edpmBZqR6DjtCpdl7kMl0Zts7kz1HXA3GMU0+I2EzW6WdhmtkT8lDILEZNePtKL4Rb34KSaqRWP2mvbRdrhWKBjXbuj8PXNeB0Zb36tDqxQdm93Hiamvw5npREQfijgDjyHi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294682; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wq4UDPElkhv66gvhjjo3lOsigCeqfLf03NAkS0SAWmM=; b=KHC7DS7uGLsVLYQEawCqx4W9o6TlanlpFJOIoD/Djn2ScA/moJetgpXsATw53Qty+mC+TXzS2Wv82bKZ2HXcXC0u5zVV29HwUv0VcDjzeyA45cm5yUca1CTrs5lIJ/BTl5eiyumZr1elxya39mmJknZssr/7MaOVKOnoR9b8gCU= 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 1793294682083999.632589085232; Thu, 29 Oct 2026 10:24:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTrb-00063v-Op; Thu, 29 Oct 2026 13:24: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 1xMTrQ-0005sS-Ex for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24: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 1xMTrL-00015v-F9 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:18 -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 69TGDLHS227483 for ; Thu, 29 Oct 2026 17:24:14 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm42fj9gy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:14 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93cb6391e89so452810485a.1 for ; Thu, 29 Oct 2026 10:24:14 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa80285b88sm77924415e9.14.2026.10.29.10.24.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= wq4UDPElkhv66gvhjjo3lOsigCeqfLf03NAkS0SAWmM=; b=TwyrZUlqwxgJ8TUC j2rltg5gqTdWj1zO5RGHfLojuwkWVcr9vo4jpKMGivDIrPgUz5ctFkmpTXpXHW6M yfmfQ+9/OMOpDCK/iNScQgCRFsSF+7ja9VzBUWbaTUqEkwY/1tuNwqR8zTCQC4xV NLh2MybWRzw/0/Cl922oZ0Pe7i3dgNYFgzdFJ0XIzxCaidrfxteBrquLWh945hIY /3x0L3nGgcn46YZZZiRsc52lfAcsVeT+1Agzea/muTBHuEKIOwP6MUTOyD7DecTr rcSxmLrubnp0xySMqvVv6jmTWU8mTzIxe/ShanRPunMRhXG/aqwPVbeDxqBCaPgP KeB77Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294654; x=1793899454; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=wq4UDPElkhv66gvhjjo3lOsigCeqfLf03NAkS0SAWmM=; b=FrHfWNZYQ3FSJQ+aXG3/OXf0oO8eseDWUsyXKgDkoywRVhzDkzgP3rThBOz1IbYJ/W 7Ggg9q4pUE9FwjJ8HmsvnmFyMH2lNnDCBUrFOlpeDCw6OIlvvsOufw3thK+Q3ZFyBodH vMxClCqBjW++qg1hPz1kd59Atd3XC7x5JXylJmvDPAK5Y5vSHQ23CdhVlJQF4WCKNZRZ yENURFwN5NDbe5vZiz+5AW9g0UBzBfUV79U9eMn696voqiovMghSlLPv+NlsPu56Bijl jmb87mLEkVZkQtMbqgQm6pw/Lt9r1hmkSod7TKttlz6iLH5BqhvUHnYqmKliHBe0VyZl jNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294654; x=1793899454; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=wq4UDPElkhv66gvhjjo3lOsigCeqfLf03NAkS0SAWmM=; b=vwGE16drVLA9iG+NgywtLBZniujVKtD/4FpJos00otwoLnUO82uj9Ou7T+2kov/1mx /THxsBrWAui6pSgJ5vrFmn5IkGe81Vzk4UHHA/GOXeBm/FJL60R+j/mNr9R8ezVtNTlM Q42ZBe2gDZmaV3zQJ3mqMl7q6cslYA6PdcjpzCnv6uKk4Upef2gKf7e6OKjt0hTom/MA 7mKM6oDzS453jCNxutcOCZyPAzn9nPMheBGt/+ckUFwlYOqc+CX8+imd6K6agvaim9az s3t/hBE6HzRMMnUKF/iz494AqdfP2tUOjn+jw79hUGYhxhCes3p3JTy7y6Y43nkxmmsx Afnw== X-Gm-Message-State: AFq9FYKebQiEh6RuLgqvZa9kVJyZjP+1TGVxR1b/nWvxFkeNOmGlftV3 uVVRoxaXFaI1gnrE9y44BIT6sCJUr+FEgYSgCGPEYZmykwUPLXKhO0YY77fLRJ4VvYdJ7mKVK4K JwFdRCCUrQZ+HD18AzH9kYxnjLfQeVN7f8g/kfhzJWSZD33Greuihf0sbJGexQIpsn/Hl X-Gm-Gg: AYBFou3TeC2HwKcghnadEg97/+rWK/ElZbfGHSZe0Ook0xRfRp+AxrXEn6M2w4L40wA FWszjkBbQDOJxOsRzV0/5xK0aV0hCOrZUsHIz5w20q3X1+D8ne2Lc8jflt5uLzE8MiVtqT70+E1 2nyqvbmMaarn26OVXkT5mqOrNVxz8zUKB5afTqJWrGUzUzqDyH75U6KsljCzhaSZ6NBtRfPIXvg LgwEVZGIH35ndjumS6CRX3aE2EMVUIIDnLk6x5TdmgvJY2AVxN+23wy6yEF9u92i0aqzumXErFt jIWe6eeSXyTyg8nBFxdD8G880BufreYxiOmsYixcFeXvI7KwxExUTxcZouuNIIpNxjNr4X3ukLk Pq04k47W3moa5WS6njt+O/9vrB182m52tc1QDjyrH2HvTP5zdtsGLtYqJwwoVWheC6KSWdct2LQ qx+Jdl73Sx0EHeuL6nmzs3nAYffjNwzA== X-Received: by 2002:a05:620a:4686:b0:93e:90e0:d2e3 with SMTP id af79cd13be357-94408c949ccmr936750385a.39.1793294653736; Thu, 29 Oct 2026 10:24:13 -0700 (PDT) X-Received: by 2002:a05:620a:4686:b0:93e:90e0:d2e3 with SMTP id af79cd13be357-94408c949ccmr936745385a.39.1793294652965; Thu, 29 Oct 2026 10:24:12 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 07/31] tests/tcg/mips: Group DSP pack tests Date: Thu, 29 Oct 2026 18:22:51 +0100 Message-ID: <20261029172319.25766-8-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2JJZysyRpsYT njILcxIN4e/P1xR1GhzMplbd2insSQC1FA53qNmRceo21reUXKqSXlexWIYGwOwExYbap4lJ9Ci ITlXR8aw4TfexYkWFOC6FP59B8/NoqMfHta7Tsq+c5bphC0V8mNLeU4sGR0lYeBmuDksn43F/BS HBxaltk0HfQ8A32ptg2h0/c+i8vL9hnKhcOBtrFNkq7eiBCi/CX/JJKtex22L8rjlee2H8ZDhqf aG55yaGUoFKaiowzo1aIoKGmtf9q2Wb53+J9OmDgDn0B4gNTh+IHirM7WXcW1Xhyo7AcwymQkUB 7k/EpZIBqp9zscrbFAscDzD5NGuwDn0eSfB8w69R203iYSUNRUXdXg47UkQrtGZ9N09VI3//2rV CQ0ZDbLJk1PF5pjA6tDUp529gpDy7Q== X-Proofpoint-GUID: z0HIp3ZM1ywbq1lRlVJjwi0zR7bs_bnu X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXy2GookCd6CYV +SACND9KNG448Ft2fOmB/i1Zrtx4NjUGz4+0HJrfRa4kqNlmGIrJJo2O1ljrW6SBG3hir0/JTob NlW9Z/g/e0aQudg23YB6QgBP/KWna9E= X-Authority-Analysis: v=2.4 cv=UN9Ijyfy c=1 sm=1 tr=0 ts=6ae3813e cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=0H6t-_0pH3jiKDw0XewA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-ORIG-GUID: z0HIp3ZM1ywbq1lRlVJjwi0zR7bs_bnu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294684351158500 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 | 152 ++++++++++++++++++ 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, 153 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..1c04d420ac22 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_pack.c @@ -0,0 +1,152 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294801; cv=none; d=zohomail.com; s=zohoarc; b=TC4DCIpFx28430Vv2UZSaD/JKDNnisTLMlj08Ejc1gryDh8iT8TfoacIeMvUSE7iX2LpvYYTbIMj5qmBvQwHBrq3Ivceay8DJPDQ/kwMoOvzU+fng7rp/8hO7in0Y3a39RmfqN8o4qx8AsuJ+HAWj3tAgkEpVfBCyhU+/PJIajI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294801; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ihtI0tOTwH0JQzq9Rfhpaze0cXnf9b6PJefpTTIAEfg=; b=XvUqKVUX3dps58KsHp0ZnV/nRhtCWfaQ2oWiMz5kXvi+gppmB5hPslW6H/TCVoDbb4zOUZNhjMqtMllJ3PT+yQslT9oomr83NqnOU75i6rMvA81giR5Nii8BnFtzM5lepmI+6gnBJQcOoSimJGIhIy0lipJKXXRvk4L7EmAjIsQ= 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 1793294801453547.2014500036362; Thu, 29 Oct 2026 10:26:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTrh-0006BQ-E2; Thu, 29 Oct 2026 13:24: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 1xMTra-00062S-Rl for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:30 -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 1xMTrS-00016s-Ug for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:26 -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 69TGDHab227449 for ; Thu, 29 Oct 2026 17:24:22 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm42fj9j4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:21 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93caf7856ffso534395885a.3 for ; Thu, 29 Oct 2026 10:24: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-4aa7f322c46sm74712535e9.2.2026.10.29.10.24.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ihtI0tOTwH0JQzq9Rfhpaze0cXnf9b6PJefpTTIAEfg=; b=l6U1UO9oixKo3qm0 uNdIMsWdDT43DJBTvlO0J7e2z7BIQNF+SljKwKWXuunuznhZjepsk2czDRw/A9ek Wv/JoLIswj3tsY4082ceIH7iw8F08gl2dbLi1Cp48VKtcK2h5gpoJlNAXQms9Zmr 23JiWgnj4cvdfnsNJuWFNVn9daI4ORXa5Lejeq0bZOOb6ovzy26jviDIKCQxDry4 GtfmgRz856O+Ht62UnRDJ8snGx4eSu/ZcTZ+B0XnDILzCWkXwbPKP/PaLEZSrvQP 1o4MeNFi9GLbaUxB0yMdbVPfxPzcepZWuPhyx2jXoywuYXsD59c1ld+gpG1xO0Fv ZE1Izg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294661; x=1793899461; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ihtI0tOTwH0JQzq9Rfhpaze0cXnf9b6PJefpTTIAEfg=; b=hnumXq4naMddXmFCKVndIk0Wm8Ahs5S+NV5jdPFU5tNLXJxwDZPyO+c6efAu08IeGi UAGM09B38z3gr1yxUw2r3LsSskirpWC4yX5vgooCCh3MQS6jMT1W+ZSdZccexuOceBc2 O5w2JWnd9L5cl5s7MhSsHDy9jv4301s6jQVv1J7bjKH77v5NdNL2GyKOZ56zoV9sJs5N cBhnw9ov4mEP1RK0qGQwLCogO9QZkUSkqcLtbJAxQif1nVhdC4gHjN78he4MsPp/QhWK uLZ9je3T2/xdk/XFnF0JzvDfXDx7yVPOlBg/4EEQHMQrqTcy33mmOSudMgmvEg9qjJcr KDDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294661; x=1793899461; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ihtI0tOTwH0JQzq9Rfhpaze0cXnf9b6PJefpTTIAEfg=; b=g/o16lKSFICpRojeeQqlRMPDwXOUESMAlOV2yIqOgJPDpcvpSRmED9Wx72FgiC3+Wy XhFXu1E7U7BYNOfEyGMkr4llc6gO7SfiOrl6vu1vLW6lSdfh2EgOulWOEO0RJc4crq9h oaebUFAe3HrYa63KjZeuWZmJuBN59Tr4X+KpR2b9sxvjLnzNmKi31ZvgkM3XcnLpOS4A 5GY+xpT3euYyWBozJfrd8zbCAmzEXIvAtbZ802hYIOUDbYq8N+3VI7ppZ8rpQKvmxkAm xqUVmzHDYMMw3DvHKvWRFObEO0IG4bLBLQ6RkIOayISXKAyzPo4Y4M/D9UgmfG8ABj2H 1YcQ== X-Gm-Message-State: AFq9FYLXrSmfLamGODZ3apfeOpihsXXiXQUKGFnZtBroSI0q8dDZAVko YB/UUpEbCojdZJBXbJGQ4uoCIHw7wn0d+BYXfzdzk/dHyxQwlKuhLwWp6ILS79oRZ4GafoQ+h0d 58w+GzYQ2gsIF+GsQb6H1dn5lY429AIV+AVa/2kKR0zMDsHszA0E5Ln9VmNK+SaJtlZcz X-Gm-Gg: AYBFou1pi0vT3gYWdKk4pXsTUO+dXxUB4KTEJkZRXtXykyFj0l9yxQ+fVU6EIzU8x3G aSGNQWnWWaDUXIRStAcvYpH86nKoR0DUxHfVPGITaYhMlYvKzHl88fih3eeqMHEudmYAmmkt0F+ 3UcHW8aL9so2a1k2hRjz546msVlrrcg3hXHz2vu4GVVaMx1OzQtlcG+Xta86HrF1+2/iimVnGKA FmVI9LPWhIbSDLWs/hm5o4AgwX94p6GAaEOvBY1lNGlETNCGdA//35+0dwdAQn1pdgeCVpvBzbA CIrki1f8E1cgl6JythQpXG1ATAps7OKcYodD6x48eBjTE6xd9OtXXT7kjYqCB9GWxgLxRKp3LWF NbaxCWtQqF2oQdGyhkDUpMd+EB04vTGvy5DwNs9MpoC4HjcYLx3g95l3gsq+BqQpATjV2AxMGLz o8yaqTjqgNhwxZVZMILuc8yKzFVzpYqA== X-Received: by 2002:a05:620a:31a9:b0:93e:6c4f:bdf1 with SMTP id af79cd13be357-94408a5f828mr1010940385a.17.1793294661000; Thu, 29 Oct 2026 10:24:21 -0700 (PDT) X-Received: by 2002:a05:620a:31a9:b0:93e:6c4f:bdf1 with SMTP id af79cd13be357-94408a5f828mr1010934985a.17.1793294660436; Thu, 29 Oct 2026 10:24:20 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 08/31] tests/tcg/mips: Group DSP shift tests Date: Thu, 29 Oct 2026 18:22:52 +0100 Message-ID: <20261029172319.25766-9-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX46l9CGK1T9Ny VJl+59/vk01cRiEsT0j1y8gxJ92J0sEput2JmB/eja0l0AqdFd8pw+LtXjubobgx8Kl6y29O6qT /YLHK2RheGPsIUh9ypgtAnKmtavonSKfB5KRKW6MV2JGQi4xQinLJeVToSOL2qHhCINWGIdG8Y9 65bKjWDUvrAmV63Vf8yBdPRHth55wMJBdjWxijEWCExQJd63oqQrJe5IcA/a4xPBwGV8Yuh5Xze RE6mQh0TsxHyc3EY4KgMLhGFpohPb9Kv5//yynqLr+HVx4xTo1oZ39vR4EZAT84j6YVMfh9aGhA eP8TINlDufjippPJSLG70TxD4qwWjH7RrfsVw+gLSizS+FTjVlGc9PQRqs5NE8+50xiHPsvA+Ho Yz8aI4TPYk/j2tgXXfhkIdIDO2BhsQ== X-Proofpoint-GUID: FlD_TQYXPXhqpg9BbAcVULvMWtwttrWe X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX1EEMds5SWjp5 d7qrX7XrTLnc3bD+Nq1hqGi9YG3LsK5yHerACsr/2+0aJk5OtbBbNrbQyTE6ttRNJpOAbyl3BSB V1IUTLW62/FvThwDmF/SBZSc9ADYBPY= X-Authority-Analysis: v=2.4 cv=UN9Ijyfy c=1 sm=1 tr=0 ts=6ae38146 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=4Ezote9JcLLRqYrsOlYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: FlD_TQYXPXhqpg9BbAcVULvMWtwttrWe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294804098154100 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 | 127 ++++++++++++++++++++++ tests/tcg/mipsel/meson.build | 24 +--- 24 files changed, 129 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..8854ca255747 --- /dev/null +++ b/tests/tcg/mipsel/test_dsp_shift.c @@ -0,0 +1,127 @@ +/* + * 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) +{ + int ret =3D 0; + + 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); + + DSP_TAP_PLAN(); + + return ret; +} 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:38 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=1793294901; cv=none; d=zohomail.com; s=zohoarc; b=O4NW1Eg6R42lMkMxN3kmVtPvEkbTy2JYu2srwc0zUS4P2QOeHdoJHTuFKSwIpZsU/ah2PxUjdkg++I0uCQYEKyOu+bnWgdS7Z1oHDy2l70Mdx0oKxwzp5QIb6El2/3/9vsLSmLWpSHO40Mqc4YCN8TtwAWzx2HosVpmzxLjDmSA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294901; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=iLTioeQ49GwWlt4kPVFgUceVxK6RkIx6yR6QQY3nF/k=; b=UnjcF0txOJPxDHIM0GaEGKaq4+4FCOuPNIGDkFe2vFXTft8JSQghWq4ja/Z5X3Xpk6vXFnxVTh1Wwo7fucnYVbkYk8b6Tj8DhnMnMAulqA0z/z8RBpGqmBuCeYzWFHn7HyDjxxY0jD2sVNg3bhoI1NQS07yJIjxIegfk96JR62g= 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 1793294901269117.95083281563097; Thu, 29 Oct 2026 10:28:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTrl-0006Gu-B6; Thu, 29 Oct 2026 13:24: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 1xMTre-00067E-7m for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:34 -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 1xMTra-00017Q-Na for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:33 -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 69TGDbLQ3689758 for ; Thu, 29 Oct 2026 17:24:28 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 4hky5sb7dv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:28 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-990634bef80so546441241.0 for ; Thu, 29 Oct 2026 10:24: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 ffacd0b85a97d-48e6df1e537sm446698f8f.8.2026.10.29.10.24.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= iLTioeQ49GwWlt4kPVFgUceVxK6RkIx6yR6QQY3nF/k=; b=jmsMLWLHBUV3KyVU s44kLQHJmXfnPGYB15zJmIkpg9qW8M/418RhXOoxDK0nkz/7eVDi6nkiwbUfCNiI Yr8nceGrKw4/pL0G/Rt0Eh4hwcbZ7veI0pW2FTgCwGtbgMQKq7mJbCjVjLir7P7R cho2L3P+WGHFfeyCDoxd4qoIOlypiquZLi4Zx1JFWdCSyurfotzCA2pySYbtZ9S1 s6pCGNYRGeAa+JodnaF6010BMfqH48gxRSbhWSPhdVv+RAa1TWjzQEHD2m0xo7Jo 9YgFQLD3OuBCSGmifpwACPr3ZT9QuVyJ+2G8rbs5OGHKgXhuVN/5HxWy8CXu3Y0R u0o33Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294668; x=1793899468; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=iLTioeQ49GwWlt4kPVFgUceVxK6RkIx6yR6QQY3nF/k=; b=RaMzCVkYGr5/7uFZpfeU6XxhXjdbBC3cllJR/+hcwdqV+Edii5STLPjxUxWSFnsDgu ulC27TDap0PjQek0LOYyUvtVXxYHvmRCaF+NAmosZy8IiJ2T/LOxo161x20O6fkMk2tL m/zoCINcTER3BEUAnzmf6Y5drwyQ7wlBkofKjmr+8aJL4FVQqu4rG17Me8tMnZh1YVj2 jZtZ8HUET8xnj2Zj6SL2C0XLkoQb+59MnlIWYvLkC3fAMk7k0jAlP64Y+2KJUosqXaTO C8QP19IgvIty3mJdsgjCZtYkqV7ZJk4i71Al4an8Q8oyduh24dIRFPDlJAGcasIJDE/v Oz1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294668; x=1793899468; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=iLTioeQ49GwWlt4kPVFgUceVxK6RkIx6yR6QQY3nF/k=; b=BJN4/Yz8pWA10dJVWEnTO3CCDs8wvCIi2Y2fnN8m6Ffr5SYjgKd1Dr+RXMgRvWxg5Z kEv94PJs8QWm0eWI9uQT/MW+7fjLq3zd6mtmJB160Bro/ee9kWF9gPZr9fVfjz6zGzPN IJtyEaTsRX0PTF/r6S/XrHNCp5NrH8E/N1cUiHHc1m3AGu6tYXXUH+IYDH4BsmkfKgtI LIbGUUMvIs3Dfu62rzU1IZTSDvumCdWUadeTdcd1ekIELk/zWwEaR+SWFDL/JJM1x/08 tTlfIQl6gvt1kO1pxq//u/2T7QI9rd/fm3jaOH+84i6j4HVKFgHH15CEvlmzF+4WFM8W y/6g== X-Gm-Message-State: AFq9FYI5IKa5Z8ol7J6TFSn5rz4pBrHxKwYqjdYhiBjrgIqHp+dsOren eKptocj16xGJorw5GI7OkyrxzVE8z1326Phl1eEmpHj1DCx0DId6gDLPVPrlELVJCcXNqzeUWAb O0dzpGhiYlB1E3z+Wspt6T/QffnBU3DFAjgWIBvI9EHmYpB4xl6nXiwpSnSEUaHawBMA9 X-Gm-Gg: AYBFou1+jLDgVm4mYssuYb4RXEWpW9LFZECp4yd/qa31Di9NLX8zN/bv+6Nvn6bBhGv JqdSbsy6ZhvAg7ReR3R7ZfYr5qWD9Da6kGHZkTgHQFU8OC8sWMYSmPUHMICh1TIkZEmQPD0p0dI aBUGgwdDM/f4uC5S6DpRRzUkg0xymBqEhU286J7oQt0wZwUzHYEghfpjOtVXmFIjIHRlYS+1S+A oI4qE06hv5TGQi5odro/l3nUUONVCfsAMuu/L70uKA9pSUXEgDsErG+IY136KXaz8e4M6ZHCoJW QL3CQUZVpORsotTFo76za9pJ1WVzBuPKIRef/Rv/N37NAgUXRt8JQEYM1sNro/2/uBEYZBBuHDr ev9rSY1S2fHA5AeUWUHKV0ah3lIpYs0bHBZzCRfYunNhzNbEAMWKAtdjFsSyDEY751QWYQ7fWHv IQPKKXeZL7A66UR60mpgZec6mhWhlsSw== X-Received: by 2002:a05:6102:5492:b0:7a1:f980:e93b with SMTP id ada2fe7eead31-7d03a58d5cemr2383635137.23.1793294668024; Thu, 29 Oct 2026 10:24:28 -0700 (PDT) X-Received: by 2002:a05:6102:5492:b0:7a1:f980:e93b with SMTP id ada2fe7eead31-7d03a58d5cemr2383617137.23.1793294667470; Thu, 29 Oct 2026 10:24:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 09/31] tests/tcg/mips: Group Release 6 bitops tests Date: Thu, 29 Oct 2026 18:22:53 +0100 Message-ID: <20261029172319.25766-10-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX+Ha869W9JcaY hrqYhq/S4U6W+//c19iwsmtLXOLR2g1cUUA2UsxWlp3pxqlv4Ud/AJG5EHIGtS9hOs0AnR7kq1o b2Bg2H8SsxaFSKdYm6aF/ykKXmgPQPw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX5dzYG209N7Bk 8+OA+eDB/DtdMefBeoVPatN5kWxXoq1xI2B/PR7nxgVOxpT3Kq2UYB9m5V/bLNRMj51A8J/DO3u S6pIFDqxVozwFkdRVx+755SM9M34c6VeflI6yi2kKKG0nmwBSRvxqFMG9kRAccYitQy0CGvmFKH hdlhQKqSjiwKQFslPSYJJTvEaYghcmAIYgFESZn66aTmn59UKX7SXeJRFS8IMfBUKfsMXJ3bwjt s/IlrXVbjjrS4/PMcb6LtyB7uXrfgR3yUK2kjaRm06YVtNbaDmbMzQEq5K5AEs2H/qV73YveEGe PblFMffNmJv38pFLo7FAp9M4JHlvrypuLOmYgNEt48LdU15Oumic7akxtwdlrgJRok8FCGQp3IJ twlh/DF77nY3gTyzoSTV8I0/QVFouQ== X-Proofpoint-ORIG-GUID: K1KYLGNrw1-bAftT5zfUUBAvBDXrj2At X-Authority-Analysis: v=2.4 cv=f/vdl+yM c=1 sm=1 tr=0 ts=6ae3814c 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=YL-M4H_a8yb8dC8ADtkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-GUID: K1KYLGNrw1-bAftT5zfUUBAvBDXrj2At X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294903530154100 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 | 62 +++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 7 +-- 3 files changed, 66 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..fbdc566b010a --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_bitops.c @@ -0,0 +1,62 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: bit count and bit swap */ + +#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]); + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n1..%u\n", count); + for (i =3D 0; i < count; i++) { + int r =3D r6_tests[i].fn(); + + printf("%s %u - MIPS64R6 bit count and bit swap %s\n", r ? "not ok= " : "ok", i + 1, + r6_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} 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:38 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=1793294716; cv=none; d=zohomail.com; s=zohoarc; b=Osa4BS7gQuOCAFQRdpaSUfM5SpupzrbrHUOOfNrDRa5ko2RiXIVQYquHpIvd6lxubQNZ1tqwoYeweiYCchTvQWgBP3hv14tVQECC5qZZc/jbqXw/KHaCUNGPBagDuUw5G6zgFVBX3XDtqf0p+kv51wFf1vzDzXlz5G2tbHF2Ifc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294716; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=737taqbSU6cixnUtGd0l1N1iEMnwUgvaTyh/+CYFk50=; b=UjzWHdYWRSMFyWE3kbzDy9ILIWJcE+rtymvwotpTW2L5IdwSzR7Jou19NoZowgdQBbcOYWNXS9tLlfYLaDdiKC97z0ZVKVpAVHN2cM2kliqsdU1EUSJcdTHE1Es1x1WXdefBU/GDQ6dn/90our/hILoTFvj8ay6Z82SaiuTp7Ck= 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 1793294716370753.5135967869845; Thu, 29 Oct 2026 10:25:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTru-0006OA-Up; Thu, 29 Oct 2026 13:24: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 1xMTrj-0006Ha-OD for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:41 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTrg-000188-8S for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24: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 69TGDadW3689727 for ; Thu, 29 Oct 2026 17:24:35 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 4hky5sb7f5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:35 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-99064f8c7efso1519285241.2 for ; Thu, 29 Oct 2026 10:24: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 ffacd0b85a97d-48e6dfaa4ccsm404075f8f.39.2026.10.29.10.24.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 737taqbSU6cixnUtGd0l1N1iEMnwUgvaTyh/+CYFk50=; b=nEs1oH3xFXOev9nO K8nrsVvn4VeD+S9i9b741+p61jMYBFs2a6OIJbqgPK/HdCBZL6mZJGCbhWNJ1aMC MyXWD9Kr3Q0LP2B57xAcxOmjoI9O2BEOBl6I8LSCdbqE97+zc/rS/6+SuA/6yRlp uegYlogM8/gWM3Dc7ARSOOMS4I5jYtklJ2MOJ2z01s2/a5LYQ3AJfkgmor4rUd44 +gG37KZlEWdkYDZNcWKCOvpNz4HpZTZOimTGLP+/XhOZsuogSEUUTd40W6yfK7QQ tr3daqgv9VvWqGSPqrPn3bckrs+KMXlADP9b6pThoWcLIhjLyn70Shx8bMNTqThb GO3oYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294675; x=1793899475; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=737taqbSU6cixnUtGd0l1N1iEMnwUgvaTyh/+CYFk50=; b=TM7TSrQWqv7bQZ/GovC/4nNNSCqeqzTx0DZ1gIpsIWYo65JB9AC6S9XSKAauZThyHF aoA3Z1z5DznQbeb6U3nPcQPv297ZYnhKMWsXZusUTh7P6jZdtDkq45BgGKcfK6Y0I2Q5 FfqM1m3P8cG4jy4XYNmOH/hQoAdefM5ncBYx/KMOM2kK3FS66njcjGH4bS8F70lMf7ky sCQoffp4WSjmSmeawo2qiCVlExkIy7cy0WqZSkxdBJj+4qB2a6+tJRkqp5Spd+m1W9N2 BWFBfX2B/dy9uXzrbeo1u1yRHuqqT/Zy6InZn6MTQWxU+P1DHB/mAlccI4ZN2IaG+imJ v0ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294675; x=1793899475; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=737taqbSU6cixnUtGd0l1N1iEMnwUgvaTyh/+CYFk50=; b=P1kdnONhv+fUAEWY4+VF0umjnmupdb6F3VoGlv19TBdnReq+E//ZsiJc00SM6QZw8c 1/XlTxGGFSnWN5dkpI7PHojLShlewHY9affWysmQraz/bc7gy9eg6LZdEaA+vMpOxSXf i/yjxBUGXtmCzUqq2CDHB+lIL6lx1COhWK3sUQUvDwM5yJmM5a66V82xsYbjrraLnqms xsgPOqF26c4AaMMqX1H8eh8BViLtFKqkgw2/zQgVWDnNGY2nKKVFn4x9MqK8kqYRN/xE 7cYkGFg/lxRFDHZpfLY3Y2nVy0R5WzzSv3Jzgxg4VYVCJBKShFow9evZvmbkoh4wWD4v NXrA== X-Gm-Message-State: AFq9FYI1MzWVTDBexrHdSMveDovsYHKFsS/4yU7sZ0Qteb/KDy+uw/Xf 1z7Ih9vdmV33obG4KGk4VOlwHE4Je+cKxH+93muak5K2LKI/B+9p+orGxp/hFM/ceTULc+YJOIb UFIelO7OQA3efXbTM9eQrgPpX5736oUFAn5L6CWdJKz/1cabA7KIzKTM7YL65YdoynmVg X-Gm-Gg: AYBFou2ox41884cPuty+64WhJBLX0HXi+wA6h40xI2TPHfpsoPa3qxJY6C23LJDiqxq a3g072zs6tuMRNaI0SZuvxEsG6J7PierfY3iPp76WcNwpEDdFTs7+T/OpB/pClf4ZsUP8t5gitX yoaEnIb37u2HV6ShFZS6sz9bMOrDWYE2Bb3ZMXUMRlV37blUEzp+rUykzuzLT4UzqxSecSW3c1K b1VWIJ69UQdWxR3+IBcvgTkF7+0SDCfiaqbwMfhQwPBjPnYIozSWl1l+FE2sD7m745R3ZGtcAJg dmxgFAh47lvvXsEDfPdFswMr0liXoRvSsydtM67gT4IoHIwzlmakkN1HdKOurbNvew3Gi6pe7gA i7NC7ALwVjTDW3s1ZpOd9vhCt1bH1vCaxUz0kD8FTlz5LM91PkFT6pr5jQLrF10xcgw/+8r3Wy8 Aze3lpnTOu1XHlChE3LRbz/xtxFqUxXg== X-Received: by 2002:a05:6102:83d9:b0:7cc:26a8:e726 with SMTP id ada2fe7eead31-7d03a5b58b2mr2813665137.26.1793294674925; Thu, 29 Oct 2026 10:24:34 -0700 (PDT) X-Received: by 2002:a05:6102:83d9:b0:7cc:26a8:e726 with SMTP id ada2fe7eead31-7d03a5b58b2mr2813646137.26.1793294674426; Thu, 29 Oct 2026 10:24:34 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 10/31] tests/tcg/mips: Group Release 6 crc tests Date: Thu, 29 Oct 2026 18:22:54 +0100 Message-ID: <20261029172319.25766-11-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6NpDWV+j2eyp mVTNIlVEDZ9PoWIiZ2pQDIaLqKGZR9RByjah8/IBN9ApiLtV9UYOk749tq4GO2oMavDMwYDx4EW O0dmMlGOSWZiPvHIEiA3DzNq5TVPUBo= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7NRm/YcSUl8Z H1I2zWpoxrUbSOk0gVr+xFcxoeUWFlC+sTQAcLCblrrJB3SNB20X6qLMdIpiYWCKcGxGT/5EBMl C42BO7RLjyac2HlEDGzCn55/VRzhED6OUpDWr8KF6fTGrz0wISRFllhSi2bggTsGQkn9RG6b7AG lIoLL/LRRX/FD/XdnYyw3DPDMW8VOjf8DsrpFyfNGpMjs21WmIdMRLI+YGjPeEptwyfOrCkf88A kfqLn9A5uZ/5pW7vpnJ8Yuqe2xkNOr5lJGB5jOOkdpVxvDWopoBUes/cBb4K2pI6+XfQJSmXHag Fh39I9Jibng1eYslI5m/8AJPnDRjcXuAU3FXkW2GQHSTEM5DaL6H8HKeXN7lHhLww6NoYw9yHgd sVcG7MTSaHwwKCk6x1noBWeWkrB6ig== X-Proofpoint-ORIG-GUID: cizjEnG1ghl1-J9UXTJMsOm7rNvEjccv X-Authority-Analysis: v=2.4 cv=f/vdl+yM c=1 sm=1 tr=0 ts=6ae38153 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=-pu2kDSRp-wWEHhDktMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-GUID: cizjEnG1ghl1-J9UXTJMsOm7rNvEjccv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294718628154100 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 | 74 ++++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +--- 2 files changed, 75 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..24769176a1c4 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_crc.c @@ -0,0 +1,74 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: CRC32 */ + +#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]); + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n1..%u\n", count); + for (i =3D 0; i < count; i++) { + int r =3D r6_tests[i].fn(); + + printf("%s %u - MIPS64R6 CRC32 %s\n", r ? "not ok" : "ok", i + 1, + r6_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} 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:38 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=1793294735; cv=none; d=zohomail.com; s=zohoarc; b=Kp9wHyWit1al3kmOZCKBYw6+Ij79HQFUjzE07uowOeS77l0TzLIX3KUVm4gggBARe+/vgW3mbI6ZxPevJ6jpdW+0APVIHR72fmf3R+91zKN35v353TpBPNrH5n7IlThrx5CY2KVSvcOGIXtYdAU5mUXr/fLbwPEentR9p96+aFY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294735; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pFijQmBaxpZ3ZlcbpsP721mx3w9zqkCtgmN2SAXy6T8=; b=PW5UEsqZc6lciNjRTr92qDNhYVG+oBmh0pEN1DIqNw0tr4uFjHmmyMwYv9V/Uo4UO7mJWrveJtgRflleXNOVJagiCJUbNY7eZzWJrqfsaymhK7s6XHh+OB01RVHW4OOPJ2bNWG4Q65pk67iNUR0tM5KBwBBkeQyxTpk+KMNSces= 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 1793294735377350.7237389386087; Thu, 29 Oct 2026 10:25:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTs3-0006Xw-1J; Thu, 29 Oct 2026 13:24: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 1xMTrr-0006Nk-LU for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:49 -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 1xMTrp-00018q-57 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:47 -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 69TGDasg3689726 for ; Thu, 29 Oct 2026 17:24:44 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 4hky5sb7h0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:44 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7cc0418036bso408295137.3 for ; Thu, 29 Oct 2026 10:24:44 -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-48e6df9e6f6sm382330f8f.29.2026.10.29.10.24.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pFijQmBaxpZ3ZlcbpsP721mx3w9zqkCtgmN2SAXy6T8=; b=F9XM1HxzkxdovPrL 585FtcUnurj/1y836XoxooEAU5jgN6IB9KbE7PfszwWtsjShwMYA64QM+0o2s8VV QeGoi2uAQiJ7d7oFK8Vd4sFyYhF6k8RZIgkuDud428RR6rTGabc6Yk4rXIWUkB0K hH6gOGsvLS1gzWCNN3nzU51tRRT7EVO695nS+FZTqwiv1NRQ2WX0VqbPy+qdQLcg ffkQnKbsdSEwVJl7Hw7brMsvvQtrYtXeM7k2RncL08uyJBm74K8PKRixl4USbWLx dc1J7/8hw6/Q9/VXTzXTVnwg8eHA3U8swmop4nXt/rG7nPDRRP0lvx1DD75tSJpD 7vT1qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294683; x=1793899483; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=pFijQmBaxpZ3ZlcbpsP721mx3w9zqkCtgmN2SAXy6T8=; b=eKp4NeVZG5qj5Z6uSvdwOriuBXGgouRyT8DgkxIRBEYtMWRQNy2/jjTRjvTA7OZJ+f TaxgFiZNMsd4JiDx9jfBcPj8hBoEOzFHk+qAtotoWsP3WDrFz/AfsqgQCTg6T6Q/sWtM QCGwFaBg3XBtrxsKhsyGNBJcEpkXpwrucWg+YKG9e61GNsG/i+G/VGYFXsqOK24P22/B W4Ngec1/DcjNspNgyeCMN1XD4r3nCL9zsGkQkTs5MujAKEHfKzW3ObKKfo90db8Cbpqs p5rl/3CbvQkpi0vYhT/JDogGqkD7h54L4pvumTiHeKvNbY4C19GUC4lxs1B0EIsOPuxv 4PHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294683; x=1793899483; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pFijQmBaxpZ3ZlcbpsP721mx3w9zqkCtgmN2SAXy6T8=; b=nrverglt0Yy3tezp+fsOFnI+NDSexyLXKZ3M8E49hi/iOvskGsvDwcApBfEPaJOBXN hFwNjpsbpHC33dC7hHzkG1mB2RfmEYSmOT5vTqysZsHXBfppN/Pu9PZBq3rFYCLMW9Va Stvk+CSPKjtqnrw+fVvfVKKMwAKwSak9sZCjiXFlpGq8B8uffgJXOYRnW1Sj7VmAKdRf cpMbd1wvy3aQLSLNyJQ1mcC5kG332ukZCe7Oq4zy02p+MnF6ppdTw72XeLS+WAydVOGR gBVpjRqNhwBDhwnNJt1Lu9LT7eVVTcrzn0s5S1DDxVPKwZH/HzglwJGFvidf0FjZXvsz yPYA== X-Gm-Message-State: AFq9FYKhgVeFvskMHhhyhJInmGAF5KCZCGbiCKqMWUIkz0kh11IV6NR9 1xWOA22JTeHacmnZc4AgzDt5+rzaykXPjSR1AwR70KhSfxofaApcM8jmtJ1JfmWH/S+1NxryFda u9frrYHXe08B+xUE3RPoUdfrWfI9iKGdV6Bg5pZnKuz/uAC45UAhmotr1S8//UlPNh7MX X-Gm-Gg: AYBFou0OQ2mz455dOU9EIkyVdx2D9Pl0ScWqpriT306eOmM3F0OtaboLZqblRxWia/M qsmhZTNhraqV8w/b4/IlhO2Lyu6SZmjlr2hm+SZHJy3D1uwQFZQUNKmZ2sCWPF6kcwcrGvKRvGt pmsHp7I2Emoybz0hwWuCam4kR/0DwvOUOf2ca+YAERYAkG97Xdu8vP51djEst2l+82hVS2BZR/z Mp1lJeGjyq+pi/d4gP1lK13IHO8csjNj++aMRWqzSwsYxI5vPuf6vrkok3bZUMbG3aM8Lmbxb09 ooVkGklyFEw+8k4iCKK/LKi8cBVay3TreGUcScN6L7sGR87Zg7TD06Y0n/eYGxdDxZghZeA8YFF oHuz+Hfd2y9EqblWVvqhmDYmr5DLOlsJb7zCCXk5R1AfFVaqfiQZPV78hkMIck+sW+iEMq5HILT DR+wgvUWqaYuy+yvR9yekfokN32h54hQ== X-Received: by 2002:a05:6102:868c:20b0:7c8:1fd5:82b5 with SMTP id ada2fe7eead31-7d04f935382mr1164787137.14.1793294683412; Thu, 29 Oct 2026 10:24:43 -0700 (PDT) X-Received: by 2002:a05:6102:868c:20b0:7c8:1fd5:82b5 with SMTP id ada2fe7eead31-7d04f935382mr1164777137.14.1793294682884; Thu, 29 Oct 2026 10:24:42 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 11/31] tests/tcg/mips: Group Release 6 logic tests Date: Thu, 29 Oct 2026 18:22:55 +0100 Message-ID: <20261029172319.25766-12-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2S2y0x/SI+L5 kb8FK7ggykoSj5v3aasb17F//egNXApF1pITAKpbURtVRU5R0Od6C/PES4xnDoFeQdOTBe156hk /ODe9VAwybOHjaKKwU9hYyjhrSEvp3I= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX5yz3ujwbGx8q WldxgCTTRNYQBDRypiY6+PNaZmd8cCC/xgjIjaFaWd/6RAS/Lo+q7HOeP2CZ0v2hWrUOA6gFJey F8dqSAT8pY8SN+PfVy3uNPPfHnM4ivKhRjDaM3jnGyd+X3UM3i98emMloDEV4bZf+GmldC37rGE c6tO6ixy6ewDKMlwDu8DaWaS1xQcDFFEPZqz9fypkNb2MeRSobgrhmOz5bcrRbipXaS67rnChcr 8dNIwT0L+nYL8YjS5E8lYQFCQg/SSfZrL5FPskK+U/IV3Z4otgW3Xjo0jiqMHxiDAI2RJlz2p46 UMGtle1UT2YjNZvpWvugBp18y1qkS9C0sh6TQAFqJeBQeqtsnKpGG2btlTTpsC6bosAIjr9fSWO 1hDMB5GhHPOv7aFRMKmAUaymf6Lbdg== X-Proofpoint-ORIG-GUID: fA_rXvamfe6YZW7i8K9D_NwDTWq2IU41 X-Authority-Analysis: v=2.4 cv=f/vdl+yM c=1 sm=1 tr=0 ts=6ae3815c 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=B0xLmQhOeFRMwvCvl4MA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-GUID: fA_rXvamfe6YZW7i8K9D_NwDTWq2IU41 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294737183158501 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 | 50 ++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 5 +-- 2 files changed, 51 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..7b8784f42430 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_logic.c @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: logical */ + +#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]); + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n1..%u\n", count); + for (i =3D 0; i < count; i++) { + int r =3D r6_tests[i].fn(); + + printf("%s %u - MIPS64R6 logical %s\n", r ? "not ok" : "ok", i + 1, + r6_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} 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:38 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=1793294943; cv=none; d=zohomail.com; s=zohoarc; b=FuXVeCLVu5pOFbT6iRDRtwkbO7jzGpXElFXM25c7mBSjWNiQUZy4eoHFCJIw95MWCNOX5JOjUnHClS/sU4zeyUyKsUjbhImmCoGm1zCsrrk9SeR34VnHXw04aWHn8j+p2FjqCgEm8LclLdLl2tLn76XF/YXNyIZdbKD/ng6TFn0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294943; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=f0mX6HTTqBh8uUYEHlS3PN0/UzU1FWYKamwbrNN/oKo=; b=PRrUWw9dstnUhmoRNyHPMk2jQDmOmOMTZcZj4NUXTJ0EQAQz6KE17GQdCN1L20/TU8G4cmyaupn2ta5Txt6qeLX7kcu1tK6+z1iS4FXpmn8zMbvyIh7v4lS6scygvQL5UIq3spTvr8hyVVu16+G59a7prE3KIQQpNDLizB9MarQ= 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 1793294943831648.4988358221462; Thu, 29 Oct 2026 10:29:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTs6-0006gO-Dh; Thu, 29 Oct 2026 13:25:06 -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 1xMTrx-0006Tg-O0 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24: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 1xMTrw-00019r-2P for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:24:53 -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 69TGD3gH1143412 for ; Thu, 29 Oct 2026 17:24:51 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 4hm76chfsr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:51 +0000 (GMT) Received: by mail-vs1-f72.google.com with SMTP id ada2fe7eead31-7bf08dc2fc8so524530137.0 for ; Thu, 29 Oct 2026 10:24:51 -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-48e6dfa0872sm421245f8f.35.2026.10.29.10.24.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= f0mX6HTTqBh8uUYEHlS3PN0/UzU1FWYKamwbrNN/oKo=; b=V+BceAy4m+F7bFq5 6B3HDD3xwbgve7kLHujUJRMcJwvn3a0cOCvJidTrbc4u7mMAfNr412htMcw8MvZo KlF8/mHEZfud97nDgpYXjPbJZY+olAIG6JVsfa6RNEBmMojlF1FwXh4ej3j3L2e1 zj7L8YlmjmZPmfsQXcRNbNHCsu7m0DHyobGvsEHzHpGAgr8Vg0T7Dit0VEux8/6I 7HwLcnbtNYv6MWgvGqurHdc4HHITYFH/I5qPqxEISrX4J78CpaiICO1JgRP7izli usFUuUlsk71omj1uLhd65ZNI+0n3TcIk0Ru4lPYa9EuU4vST390VDVCaqZ0NXawe BKShEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294691; x=1793899491; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=f0mX6HTTqBh8uUYEHlS3PN0/UzU1FWYKamwbrNN/oKo=; b=c0+iuGhkXIqJTF4z3HQi5UIu5dToT/aHdc9cs66EVL1DJQGUabQw5194zVfos7LuK4 D8XDjECqOllrorbYeaHLxQni+rZM3dI0T7vqy4MNJ0VBmQwdEmfCjoptHzismxelHasF vWWOKZURdCwQfIFyWqxQm4kuhGxffYz6U1REPzTvua/E1rwFdgr9wawIQy0eO/CMAKR4 MWbqOvZo3yId01PGl/5suG1i6X38dtXhtPEFYe6LfYBe8rnXjy4gnXTpoPGJpiGUI7Zg 6uxc6gjwuQRTB7nfUYWiuHJADq9W+Em+qwCBSUCZ9BZ6K7El+9hL06OPttJ8Ydg+ZfwM H2lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294691; x=1793899491; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=f0mX6HTTqBh8uUYEHlS3PN0/UzU1FWYKamwbrNN/oKo=; b=uqyI7OC2twv+34y7/tpymM2p7a9S9CSc55TPRuNzVkyS0Talog5l+ekBiQ0IZWVb9e ue4hb/TtmknosferWQxaKVslfNNBF5FdbvNj34exn9YQZViD99fLSWc0tp12pMA+Hk4V oUEH7+R8WKsje6HOptMHbJzo4XxdR8DRgbBQTt3iHASJk/XKdTj7k3FgVOF6gVPa/cZv iXgBEmG4p2hA0eal+jiD/Xb/qebGToBeKbVPHuuHPOkjsZQTNQovfApSsQuLbOJ7U/CI xlohjc84NZJotaMuiuZjGt+XGeXxCJJG1+z95UPbgpO/2uDhm5aD60VXEc2+Zln4Pgtf 0ONA== X-Gm-Message-State: AFq9FYK6nVsH5pyZuaF7t7pbNKUwqf59JC2iALKEdEVYHPbvExKVrXro dUbsjme6r376yOUeah5NxFxV1KK+VcXCSx9Q+tSG195QXxEWRmMUUeDeaLF1zTC9t4ahdTsXjEI 9nMMnDhy8ysHoNS3CTgge1/OiDB82TQE53QJXULnVgye44nDC9aHkxroSnBUZeUqeqwYv X-Gm-Gg: AYBFou3e1d0JGVGijmZVxpDYKln5oxn6j+lLpG65v+08waiH5b6beMbCPRNhvPMhbLk PkkAQ7G4ZbWhnuHDpZKMxUoUu+EV6R2/x7xfnAe46L5yyRoOLqgg1PsEACoY1TKbe6HJ1NiBCJv DJRC6X1UlccVAl1441C3a/u7Aew0ienEZR5+sbxjbKev5uYuqr96kFcwO6hiZkKomrof+Un06KA nyfatCQz2aiXa6iqJeZt0UF9yrmyX/0gXLhpiozlAO5ZRpfcycdx8tUp7edl2CVr289QMxTebkn /9X52BOJVNCkZRSRaIrfkT94GE7oB1dEAU8iCkkQt9GwDqo5v5p3IAfGk9vpA7BpR0YbfUcgcMA TSXWOXOc/bMty7y5RaQ4gmOerVcPpO7gmXH0daDyWRaeoH0782QWqJEEU2RkkGWO6/ZC6dOJ1ru G4x3Iijm86zrOtB1thAk3LBSTUpYbrLA== X-Received: by 2002:a05:6102:3e8d:b0:7b7:3acf:bd3a with SMTP id ada2fe7eead31-7d03a293d81mr2942622137.4.1793294690537; Thu, 29 Oct 2026 10:24:50 -0700 (PDT) X-Received: by 2002:a05:6102:3e8d:b0:7b7:3acf:bd3a with SMTP id ada2fe7eead31-7d03a293d81mr2942608137.4.1793294689920; Thu, 29 Oct 2026 10:24:49 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 12/31] tests/tcg/mips: Group Release 6 multiply tests Date: Thu, 29 Oct 2026 18:22:56 +0100 Message-ID: <20261029172319.25766-13-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 0L2DEpD-a1xUTFciG72JCbYXgaeBJd3c X-Proofpoint-ORIG-GUID: 0L2DEpD-a1xUTFciG72JCbYXgaeBJd3c X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXw+wKyGwI7o/T UvNqy9ZNpmfUtcmbSIdlz7kTzjVIa1QlABASzKY2BBrD3wCO2VvQjNgUHcIPEkfQYtdskTzTB0q 9mnIaIOmxq28asuiFITo/o4VdpTrhGM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX5vqXfOSq1sFD YjZz5WpI3hgOMmfHceJ0Ve9x+fPC/1M4bOhT6i69Q1gCJe/NZnDgh89F6c782onzunFEvimtZJQ YM7lMQXn2KH+eeIY5ClnFs877+dIYtFmQ40v2mb51V/PDIcDkIN/QGNyFVIVpf9WncA1J72uytk jL7dc+6MJF0F7LTgOJNghSntsj2B9fgQ/ju5ZCwjyLIO6dWhji6TTNd1b0rn7xH3t9W8NnuAWmh 8TLlUJK3gz5SGPv4TKOYx1eOQZCTb+TviZoEhCNWiItSB+DVEuRMplXelJ28xKA6lwfzEbEoUTY zJ2vroL+/dBooDhpn3j8K87mDguLqRiPMYBfdX6C/tc1PSjqIbF9UF99kyHeoJnQSKbhwHtDvzU p/kGCC6224eSzapIDjVKt7xGmJE2XQ== X-Authority-Analysis: v=2.4 cv=NPtAaE6g c=1 sm=1 tr=0 ts=6ae38163 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=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=9r4Io4F8rcaVG8DJpGAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=-aSRE8QhW-JAV6biHavz:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=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-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294946301154100 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 | 74 +++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +-- 2 files changed, 75 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..8ee9d064da55 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_multiply.c @@ -0,0 +1,74 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: multiply */ + +#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]); + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n1..%u\n", count); + for (i =3D 0; i < count; i++) { + int r =3D r6_tests[i].fn(); + + printf("%s %u - MIPS64R6 multiply %s\n", r ? "not ok" : "ok", i + = 1, + r6_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} 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:38 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=1793294752; cv=none; d=zohomail.com; s=zohoarc; b=cgGUHyLGpFZIwjeJWTji2aW+QnGzD+BS6K/9pasJjp0vNM9rO4lhFv3Y/DHZyOLt6YEeBRNTGgHCAzyARR/U7YKtIhKCrzmgo6GRuafLUm1QPpPK0D8nRj1ae5qaWhdCjyQO8/DS1izKtQUnFJG0rgK0RV9e8c/X+DUI3fbQAw0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294752; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=inPDoSVA/2ldPr5tnKaggcyPWZkQ1MGQ1vTAzNe7hUk=; b=F5ZoiQmVoP85b4Nf8kZkRFkFIr+8LyE7jtP2K4oSRwbDARDCgNC1i7hVlSxXns8L5MMqQNN5a+FASKIL+VVAoImJ5UR2QAXYoP/bWHCldPOLGcUE1EVrFnjU5waSwQJwEUGjx6pd80gQ6h38MYwS/dfZoS1ZnOya6q75rS39N8g= 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 1793294752636826.4478999362424; Thu, 29 Oct 2026 10:25:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTsk-0007DY-3R; Thu, 29 Oct 2026 13:25: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 1xMTsA-0006oS-BZ for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:11 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTs6-0001AN-CE for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:03 -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 69THDgP8182072 for ; Thu, 29 Oct 2026 17:24:59 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hmac0r1w2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:24:59 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-934963b2bc0so426739785a.3 for ; Thu, 29 Oct 2026 10:24: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-4aa80f047bfsm79564335e9.3.2026.10.29.10.24.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= inPDoSVA/2ldPr5tnKaggcyPWZkQ1MGQ1vTAzNe7hUk=; b=TUcCPvIbfHFYAYSq ZdvyWzKgvB5QZ0DiHlB4tnI5UQMejPXnixYaRn6asPKVElPQ7q88Cd/5iRwPJpmN EflnXAHG/MzYXKNNY6V76tC0AbRDfSPP2urtdlaHCnnR2yNGEdMVk2k1Dceysf4A w+L2Fq9AzU4E21ZodXvC3F9ZHJ5QUpCw1YV4B/+RzuV/7h7i0FnhMqLmXH4G5yKU jSlNkGv5iGttLA3zBJPnuxaIxdPmMJJLR7TpE6AU3tRCceeTsMD6CzHMk8b/EvMh i2mEyB2Qh2c4eCE3lQoxuSUZ5s+HKP3+OPx4zwtu5tno14n0mL1YsioSgdEtG+Lh 58FpiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294698; x=1793899498; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=inPDoSVA/2ldPr5tnKaggcyPWZkQ1MGQ1vTAzNe7hUk=; b=h1isZNhP9UHjeYusvTIrO3xj0jPjIG6fUqjaDDlbV7tLnu1pzDgKsEHATLNeMlyabk 1izp4z/QrYDkSpL7IDeRR6onkNKeFQywM6r8MQNGeUSmFFT0NxcFNtqYV16DYvCaZ5eZ jd00YD3d6zbBHY3cBLu5thUN3NRmmLibZPkQJFMwr3CitMKZCMeMrvp0mLT1X5P4Mghu 1yuhOYfigLMOI7YuWfeKD8A27qKQ7FViRfT7+YzUdBKN0jY5O3YWs4snsobF5AvxCIvN 3A5Vzg/ns1um7hAIsaKIS4dCEX1gK8rU6ChdXc/G+28l/CY9f6H8XNWZ16I3qkz4AR9i FFfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294698; x=1793899498; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=inPDoSVA/2ldPr5tnKaggcyPWZkQ1MGQ1vTAzNe7hUk=; b=vIwsAGvhdVZPbV1KKaY4GxbR175/lHhjRzNFATset0mW5/ULcsO/S4X7xsCP1fLCza Ec9hhJH2RpmpT2ZtRg+F9HrydPS8n03S4IV0/jG2B5qGnDazbUD27K8bn8PDjnmzA5rE FZcyYfsi73hH4aX+3J7ulkUifg3UsaWFRzJfY9EsdzBggEL7g6dyAT9Rkgbgv517Xs45 T28Fg2PaHt03bgRyUhecij0vEWkAIz3ZSG44CWwjcB52Tix3KklQP4LfIW1ZwyNHr0iC ej+CKyKr5CRQLtU4U/agxIglwIEcZTBPBA6lHq6NzZoc2AY3Ix1ZgrIjiBJaab6vL9bl s/1w== X-Gm-Message-State: AFq9FYID4IsbqlbwTRtm9+iv6budW38RCRB7NS/OzOPMxxfwZVFfRssi hPCpqmoAZquqKIYHoL2uGfMh2ydrgg3Ic3IBs6c0Yc/efo3/msRIl4cet4oU9FCPaoya27KG/Tf u8AV9i9IEKEpFU3i1280QatMvt4Br8wLIMuwncwQVvMfdz3CjMPk3cFMevxhCXemEup67 X-Gm-Gg: AYBFou24+pXPBnB1zMGdxIY2EzEcMXdgBI+wgG04f2KGK6A+UpnVXCOXCv1RCTgwaNC zQv717uyzYjAcsBI+p5cENXDhWEp6vrg7oumrlVPcueG6CxFT0IUCMZgphO7T8fuoaK/vi39ewG LQ/6Ho4Eshj/vRLzwOc1lRv4gmWIJnOL+nCV54pHJJlOxNednjmNZ2B/EhxQuPQ938vuMQ+SEXx fzgRlrjU9QmYvTFdESpv8SMIWoJgR7/tmTLp1ni3jbSiQDCb6EqOZMj8/8JObSI2KzLljaVOriH dLr4udg9lWgGlhZGW2jRELF0XBqS2YRr9f8FCq0epaH9ZYn6XcffawYXDnGUMDKBx9M/b8zTYn+ GlrKLdP6gqJNkpWOXtHe0KqCCub2PibyWXby0qbvivQrFTMcVF+3zWYuCAdc+EmzVDddRnhlkwi qzxBa8nmBwyLEJMr/n/17ZqSYaTUjCSQ== X-Received: by 2002:a05:620a:17a9:b0:93e:9934:d179 with SMTP id af79cd13be357-94408cf6b61mr842988385a.56.1793294698038; Thu, 29 Oct 2026 10:24:58 -0700 (PDT) X-Received: by 2002:a05:620a:17a9:b0:93e:9934:d179 with SMTP id af79cd13be357-94408cf6b61mr842983885a.56.1793294697410; Thu, 29 Oct 2026 10:24:57 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 13/31] tests/tcg/mips: Group Release 6 shift tests Date: Thu, 29 Oct 2026 18:22:57 +0100 Message-ID: <20261029172319.25766-14-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: 3BLukfKkRYsjQnrfNeQ1AbjmftJGgFK9 X-Proofpoint-GUID: 3BLukfKkRYsjQnrfNeQ1AbjmftJGgFK9 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX8H4dh0gYvsM1 rR0aUBGO9eYD8wBkuHnbj/PJ51XHp+6/20fXjzAGxcxL9oyRzdn7Ef7gfqTrjI6wlKrNCzPy9SZ 4I/N9HYVf3tMqb9ABWfCuU+d4UIc0IY= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6CV4g4h7DsOo rwHdKPPbK+8rrZr9R+7WUUGhwHU71WZXxHflNYZj8T7BtN0MeNMEmI5sNimzwlPIljQNmQdTtqe WhsU29Xu2j4W34VPuL/wNjp/EYexCs+wjSim6HL6cW+PgqIff/uXnscN7awyly+MY85Fn0uE36S qUNvm5YNWgx1tosxMbpZ8S3iGAWXBzxBWJrDKvND4j98+oypStDRnepkRsR0hTRwxMbnM+Wbry3 3sohmsYMMr7nLJKbKpbHPlDcUHitEHILLyFW7EbQOOzcj5j0G+aroFt60PffYly1zLO/D8mnZe7 SUI8IO1uLD8+Bab1uvB+2J9om2g+myBU1/gKp8ycEHPbipA6AUh4Q+urdrtNPGkJFY1QK1nWym2 Ri6cDJFbzJ/py0iygS+P1J06iLFKMwz3/3uGEvk9U0XO6p9O1JSk2cRDtQn7RZGWQGYJD9+4S/g NUdQd5NcArQ+9oih7gg== X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae3816b cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=-pu2kDSRp-wWEHhDktMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294755149154100 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 | 62 ++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 9 +--- 2 files changed, 64 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..a8734bebfd16 --- /dev/null +++ b/tests/tcg/mips64/test_mips64r6_shift.c @@ -0,0 +1,62 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: variable shift */ + +#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]); + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n1..%u\n", count); + for (i =3D 0; i < count; i++) { + int r =3D r6_tests[i].fn(); + + printf("%s %u - MIPS64R6 variable shift %s\n", r ? "not ok" : "ok"= , i + 1, + r6_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} 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:38 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=1793294945; cv=none; d=zohomail.com; s=zohoarc; b=iLA1Cn214+5ixi4Tlwb+B9MdyqmeMzEIPWDC2hOG2zCRzH+X/SJ2l8XNWT2CWBuj0KBLL4BF4AsEi1BmpLb6QdacV2zWiaKQsoOLUXcnbwZGoLGcnw8W71zinAib/xWptCV14GlT4exRFTqqySxEplAMl+/u84Ul1ColdRpZD/g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294945; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uJaxoVRClhk+/ic4X1+ha3GJP0rI0maFxc793iKVyoc=; b=Srrq7xO5oj3y1yxvqKSXe3Pu3C+qmfOy9pumKVvReaB17fYvOJ6vXIZidJYOIEenPYdGAzWfPbqu0FSK0ZMC6FdfPQRzr0Lb4CfmiHOs8nEPDl8gXCNJ2bm9xE5PYlnXeePrw0QihZZAQipiq93nZcEIeOu6EHGwgSuimBspt/c= 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 1793294945335922.3384302492341; Thu, 29 Oct 2026 10:29:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTss-0007IU-4b; Thu, 29 Oct 2026 13:25: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 1xMTsD-0006pK-LN for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:13 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTsB-0001BT-7D for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:09 -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 69TGDFks542847 for ; Thu, 29 Oct 2026 17:25:05 GMT Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hkxshuhq6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:05 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-988bea8fed6so1857212241.2 for ; Thu, 29 Oct 2026 10:25:05 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6deafdb5sm576315f8f.0.2026.10.29.10.25.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uJaxoVRClhk+/ic4X1+ha3GJP0rI0maFxc793iKVyoc=; b=E4DnhoJ4dfUuh9aP StaHQNNIP6hrDQKV1ex8DOwuVgsXh+ONnR2Ikz2KF2Kft3nPkLvfpqnqaVuFcgGm KCvrlLFaYU6ksF8egkpHPFQGx6cYJj0DUU9/wSuQw0ZRoTx/vJwvh12dZFh1RToJ qx1rep+kMbkz6eKxXmg6YO+lDz+dhJK/HH3GCn8YfdcTAoLwCF/ChxbMuf+sXlpx QKrli67UJ0F71SSQ9PUY2I0aHpm1mnHDwyvdcaGEmBDoTtJxq/0wMdCPudQdjwzT KV0E2W2+aGVVoNtjzBSFaO2JuQMp5is6+RkJ2H2c38TDWcfVyxnRGv68GfykLMbw iv6PTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294705; x=1793899505; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=uJaxoVRClhk+/ic4X1+ha3GJP0rI0maFxc793iKVyoc=; b=ZptKkMJX9GE6UrEa2aIxaHNh2N0IoId/puJq0QMlyX2kTrnGyk/1+jmbG8UM6d0U42 sNVNdJotJxw+1clJ23HdX2VffOhjNOos70AizZdWc2cAW0GN+SEjPqvv7x1HHNn2Ivug aIrcNG0koJP0z9gjENBtLAFjo2K+wRk/icyapcWEbdzUyIuVZ+M90ycmvHECNn8RBG6i MyVzgF9tj4CJ6X6GIR7iDjRNMNW73eA0ztoAWqDdq8u3J2B1iXDAKB6VRcJqTnbGg00g rf+5Pf0nOzbOpPOis2a3Wjcu39sn1RFYehAOdzV/aYyfKCIZ4KNUMQnDnm4ndkG+77j1 /abg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294705; x=1793899505; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uJaxoVRClhk+/ic4X1+ha3GJP0rI0maFxc793iKVyoc=; b=1n5pq4yxt1TPBTSR9dHwxx+9vQ2FGKaQVwQHifsNzUTM81VzIZdMwhtq3P7M24geds pJ58QKPILsC9hyxEsXxVQx6hmGYc0OsueBkNV4LZE5IJhpnknr7vYoPSfVW7gP+N1hNm QBvKIqQ7AJVGxFg4KoKrZDrV05dMQciirj5nMeq6IhOdyJ+zJ4P4HQX+vzAiy1ON8Mjl uPj1niGB19PwloMBBilZvGtbzOA/06c89bv5aIpDKV4MEeJqEbsH4t/apTIyCBwVyYPz JALTAXR1hgmppHXEXzfdHUTFiIuFkVDeXggksOeiKIkwHZRJFh4UZGz+nan3n5hmDs6/ l4UQ== X-Gm-Message-State: AFq9FYL6WhsbPyqVdoYFhqnVLhH92tL12TT91WbGrfzcasARRzqF3f2z Mo2AY8IzHxLkslVr2JKnVW8bZvu1HuW5Yf49wq3lsSi9pDTW2TWOebjew+eZqRfVypGpY4VVlNV Gk7pYQzdGo9nJVoCdwHTElmx+e01oMHlghmUxQLzDy/ZI52L1pv+1qIzBDMPTiAtK7eUu X-Gm-Gg: AYBFou09pZpn0E2Kpg+jnKtSszrUsSZ4QeBVHs+rJISX0P5gsi5rs7z0E1CfMrXkxvp H+sMTpliKjZMBqRkQgMZ8KNlrR0kqxxB+NqCuYdG+yGw6qG6E28jdqHueHzalTXj5Ku61knMYzS Rt1h0dhEtDeq1T6UjfNztt1NaoZBmUobf94NhRiLuTLAxsh4WjFiRdnC5o0qF0nqT9ixbGLTwLb sY9qz7UWJXni097tR0yZvGq+pyuRXEQNzENW9ndGznhMIx9PkjuSUDw8qJbNONu64NLVFpwE/+E IOMGzvDB6JfamP0x058hDNDwcC6DCjPndd800cVVMdsQtXJk+5XTszgZ4S4oapIksboejgSEozg 0mBj0FeUVQ/O35PTdfV/Z1jbMu9N8D5fUA84WpQUd097hznWzzZ6U37GUpn/TlNQL1S11XLvNz3 KKOibL8WFfvP3xil5W/7LPifWDSh10MA== X-Received: by 2002:a05:6102:149c:b0:7ad:3ad3:997a with SMTP id ada2fe7eead31-7d072247aa7mr12395137.5.1793294705008; Thu, 29 Oct 2026 10:25:05 -0700 (PDT) X-Received: by 2002:a05:6102:149c:b0:7ad:3ad3:997a with SMTP id ada2fe7eead31-7d072247aa7mr12380137.5.1793294704481; Thu, 29 Oct 2026 10:25:04 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 14/31] tests/tcg/mips: Group MSA bit-count tests Date: Thu, 29 Oct 2026 18:22:58 +0100 Message-ID: <20261029172319.25766-15-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: v6WG8k_vpPkC3cobUr6tG3WGsoVQDe-D X-Authority-Analysis: v=2.4 cv=H6BOUOYi c=1 sm=1 tr=0 ts=6ae38171 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=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=pNbjfAwrdh_UGBuOZC8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2L/vDJrHVk6J FzxUlH6xN7Cbqdsi6M0oQWdmmX8ATJiN+GjnQZZIEFCIbPjth77B25Bmw4BZDr6kq30HwQRPX89 aAQg4gTYaitQvApG/sWffk9vaIeZSXM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXy/+MxMeQZ0nr BcaGPeCh92irtnFwqEsgZH/EB2jRTDCZKCAMgi1uX3iZWPOu2rX2elyu/vdIJTAAC/3KVL3wti2 x0JwHVMJpq5HSL/QJdtvZJ0YINU2CqIueB6knSVsXTlbUxUUT1AoatWPBUuaqTy4NZhWX2bllNP R+KsUpkPkEumsRjg4NYyG8elR6QGt9lQBrBerunhtGGUaiNTMULFGjQeANQMsJyzamEY+BmyChz Mz5KvRggcHMeZkgtzSUWgrKRIJfCkQPW48GYKpj5aBsBZNjNOPRIK4lP5QWVhMkaSGMU70B7DKg JvdvUZa/zqsigxPtwhn1a3Z1F3wocB4W9B9mAar0DuEhNNZ7Akxi2L23c3C2rra/jk3YPc7QRii MmoX7iuLq/sYLIGhPhJ0f6dKr2fB+Q== X-Proofpoint-ORIG-GUID: v6WG8k_vpPkC3cobUr6tG3WGsoVQDe-D X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294947230158500 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 | 103 ++++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 --- tests/tcg/mips64/meson.build | 6 +- tests/tcg/mipsel/meson.build | 6 +- 5 files changed, 114 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..dacfb619f8fc --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_count.c @@ -0,0 +1,103 @@ +/* + * MIPS MSA tests: Bit Count instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Bit Count", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 88d598a4f89b..40984e9b4fcf 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -93,18 +93,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..bcc02d955436 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -39,7 +39,11 @@ foreach src: tests_mips64r6 tests +=3D {src: {'cflags': '-march=3Dmips64r6', 'protocol': 'tap'}} endforeach =20 -foreach src: tests_mips_msa +tests_mips_msa_groups =3D [ + '../mips/test_msa_bit_count.c', +] + +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..8b4e665634ab 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -40,7 +40,11 @@ endif =20 tests =3D [] =20 -foreach src: tests_mips_msa +tests_mips_msa_groups =3D [ + '../mips/test_msa_bit_count.c', +] + +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:38 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=1793294901; cv=none; d=zohomail.com; s=zohoarc; b=bWCEUWa7vex1oqVm2OkHQlBt+RZL/GzkExuDJZeMyvt+rebHqmuG1x2hLMrcxiuzJBRhpgq+OzezzQeuActjPrd0muhxxs7lg6L6OVrHNft2E3RTpj/8c1JDVa5deVhWzxT1nIgf52Ckqvf/hoE2roAZu2sXR93Dhz1QcTZqzKk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294901; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bEemRG8lYCfY1ttW49wc3sdEhHPWBllIcg9uaL5Ir+o=; b=hRsAjCr9t1KX3T1dK9Mksd4BX7n9k0t1h43FEv6ovp7hysHZLSPY+IJkuYD4SqX844YkE8oQjBkaFQzHS0HON2Goi0dT53WCWF+drftJFkzZRuIgymVBphFP8SqJcRyiOX4iek3ol91K3OXgYJYndpxkNaJ87ucHZE1F2P71/Kk= 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 1793294901244343.13866911932394; Thu, 29 Oct 2026 10:28:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTt9-0007kR-2P; Thu, 29 Oct 2026 13:26:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTsJ-0006ww-DY for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:20 -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 1xMTsH-0001JO-HQ for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:15 -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 69TGD7K7535458 for ; Thu, 29 Oct 2026 17:25:12 GMT Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm8k4h1eu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:12 +0000 (GMT) Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-7cc37ee6562so420075137.1 for ; Thu, 29 Oct 2026 10:25:12 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6df87f26sm460638f8f.17.2026.10.29.10.25.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= bEemRG8lYCfY1ttW49wc3sdEhHPWBllIcg9uaL5Ir+o=; b=LS9nk54jgQUU+EWq ZHbTDjyJHNmJGNxIZOkL9N1RzarAQE9aVWqiZOPlk54vVYwsMXxI62Wfrgpv3ifJ rSXe+WWXp8z+qF1F7FIPyposuGRIKI3MCRvS4cUwfCTPSxOLHgrjVn38dimZxDjG HVgom2pQPcTMrO2TzO8LGQ1DV2G6Hb7hjPDxCsGU/yVpI51H1AzZyc85v0ZGA5cN wt+0jnkcoB/ruhcnAldHeQmyFUrkstBdkrsazongz8zs4TEh/5xN48MkxZrVkng8 LHagnVPHjWdTX2doSSzuHjQJaXi5GUDiue5ssvGA6BjJ3rMEA5g1he3vyX+4jPqg FG61HA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294712; x=1793899512; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=bEemRG8lYCfY1ttW49wc3sdEhHPWBllIcg9uaL5Ir+o=; b=VnOFHhzkNTdIGRPp8fGqDyFjuqo0iBwliXhgUV1jRh6eB90W73wHUzX0SPB1oJaIgN K3cplRf7CrWHb3m/kQGyv39KD35X0eiZUP7EiYe/ZryXnUmRlIxLgZBrkE8Tozp7x0ya E4n8+WoWMmkqzPmYltcwYmGbJUxODVX/6JAtYCQCL74sMAk8K7dKpwtRGdP8fYDeD4HS 3W5Mp0yTlcnG/2dp0crd/ZlSOB0Q1LyvEXoW6T9XulnwT12MFE0P3Nyaw1paK4Ro0pGz g+EvTjBMUOwqDCakJFvBxFfoWmW6UIT5HoTedunZhWevXW8/cJ6HPgwN8gjuEuboVyEb efaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294712; x=1793899512; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bEemRG8lYCfY1ttW49wc3sdEhHPWBllIcg9uaL5Ir+o=; b=SOSCnkm86uuoJlSXQbq5w0utfJ1bkTOlCH3BYI13kLJbSkEEoLkw0aShoN4UOXVc2M UkIJsUnOfNl2AzPJX+4IhEriQ8NmYQV/p6AgYSWn+5VhKn7cW4R7kATkAHZRsUwLD1GU hAi7c8dNUPQcSr+h57sMij0aA56klTR7ngws4snOvSDbLJPqLQjRxx9R4Lc1SyBCKy19 tJ4z99KvGj3EUbcmUv9tA+tR/VEeVt2Hx9DR22Q3B2Xqk7OvjpIA6iJ30LzBcuMX2ilv xLk9gE6eMlAioJ1vuz+Kq1XDrBktkrihndtgK2S9XEx/6DdKDE49WtT8WojAxE5HRVHG vvFQ== X-Gm-Message-State: AFq9FYLEWb9VIM2lT6P4w72GqYSBWSfjZL5WwS+G94u0+iG5lMcK5A8z kCD7KlfmaZ3RT6s35hJK4sNDs0eZDMNjaOAhijsP2Uz3c/NP7mfI1FLo5rmEjGnQMWrdUXauh6x 0dy7GvMDdn59xCIPGg6hpGjaCN3oZdYfOGq4ugVcKSpmjE/2kAHFRfVjdQpcfAfQGWcfj X-Gm-Gg: AYBFou3HCw/KVrVt/pz86JrfYmomxRFqqI621pntYH+X3134YvuXH5X6z87DjcdwNX3 lCM41zDG31iQa29cTS9ri52d4F9j7IURPCifa6MQVwThCSL1Q8N+yMTafVgNxQI1JEswzrvZIMa w6KaBBvSFur+ETpaaIQ84pbSIS0ucB04HZ8QDjfZv/39TCplKRX4P1eaZxNpsPyRo19mLgrJneI 2ZYaNDgF5JAnhklAOMUYm0wiyVMTQwGhBZ0zK3rjrDYA+hunXHUlrMdiWFpZ3gjF1zXhkCQ3K5x ilS0pr63GVvwibngR0A3g6U9rgRcmNwG1XS2zwZIqsmfukulIqhRLQEEIPn4P9vFHx/7GFMpYK4 0+5EOYyyR8V6wqmvnWRsEWV4E/BVRsjBR7LOFqpB8npbL6FOh2KwzAG88tQfS1R3L1vkt6+EG+L ih42ceuEEHxNHHWeKcm+yhsfcz4iFYLw== X-Received: by 2002:a05:6102:3c91:b0:7ce:5952:125d with SMTP id ada2fe7eead31-7d03a66c67dmr2546629137.36.1793294712019; Thu, 29 Oct 2026 10:25:12 -0700 (PDT) X-Received: by 2002:a05:6102:3c91:b0:7ce:5952:125d with SMTP id ada2fe7eead31-7d03a66c67dmr2546608137.36.1793294711438; Thu, 29 Oct 2026 10:25:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 15/31] tests/tcg/mips: Group MSA bit-move tests Date: Thu, 29 Oct 2026 18:22:59 +0100 Message-ID: <20261029172319.25766-16-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3T273Xg4PdB7 65vIYMOS0ywmmODrFZNbni2GO0GQV7duV9Me/Gk/RSPNQJuYGfBMftTVc9uM0f0G2F63Ily08Qy gSZok3uZTJm8x3vCzo/ygCphl3YndKpY4F3q9FR0GliTGz+iupdIfTbMBvU/Ebc5ykPjKkqUuPD 4ZSZaq1YMYCRjz73yr0+xewCa/f5YTo2Jdxlz67JOaEkghA/4BOhsrGDSUytdn+Zzd4d2rC6iCA fYfndnNgN54YQJ6KSGR+P3Pyx0IVdrO+L1RJL1m/X0z5mzSeCnFCxiVQhJl3d3AfABTGCUTv2dV CDOiNCB85SoldFueekg3sxAh/QfMzF/QkEqBkyMIPGKdV4ZsQFXLL3EHduf5zge6Vv6KgRsl5f4 zqn8bdljMInjohhQl38r3CWtE+pyjg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXx4nYb8vkOGq5 sxvKlraU9Tb0gp6474/oxqaQYKNA4JhL+JqlZLFOh9kgqvITAgD0n0UgT4FvXR89f8RMX41A9t2 mWjFQ4EGdI6wQ03+mAo6q7BjkO+f2AY= X-Authority-Analysis: v=2.4 cv=LuAHWXdc c=1 sm=1 tr=0 ts=6ae38178 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=U98Yu14etVFMT76BwSIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=gYDTvv6II1OnSo0itH1n:22 X-Proofpoint-GUID: DpyWJVWlnmhWVn1IhfzBTJ3b7cBNvStW X-Proofpoint-ORIG-GUID: DpyWJVWlnmhWVn1IhfzBTJ3b7cBNvStW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=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-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294902306158500 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 | 97 ++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 11 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 99 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..4fd41e96764b --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_move.c @@ -0,0 +1,97 @@ +/* + * MIPS MSA tests: Bit Move instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Bit Move", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 40984e9b4fcf..adf25fd3c5d2 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -147,17 +147,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index bcc02d955436..b40b7c10c608 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -41,6 +41,7 @@ endforeach =20 tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', + '../mips/test_msa_bit_move.c', ] =20 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 8b4e665634ab..0a3b84623125 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -42,6 +42,7 @@ tests =3D [] =20 tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', + '../mips/test_msa_bit_move.c', ] =20 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:38 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=1793294782; cv=none; d=zohomail.com; s=zohoarc; b=Ubsq5ZEqEoKo7q4JUwZpIJEkGSDImtRdkW6GJI157yddNJ+eQmlX2WJejMOPyu1Vl1i2/O60c4Me5Q8YQZfeNtZnnaNd+73fdNRe3JSx5c1R30gB5Oh3ldw1EmBSYn4vP6K/PCGsrZNsQluCEHeft3a/FnJeG/3R3S4qjM/i50k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294782; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=cJzime4Z9eoOwr9fL6kkePu7a5M2U/xLgg6lRFKCSts=; b=Fz3jGGowh4l3rmZtmTVF1KxzCvajqX4tyP4FsDmrd6DWim1IeqJ1bR+fohf6QEGEzLfezbfvkvHFzQ0mjLDUrJUPwuHC+l4iHaU4q7SE4ko7lwlUNF+piNsSJo8YDQDUuisOEs5VE2lNQQFW9X3Bd8fq6eFS5yvdMX+szyygZis= 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 1793294782102938.1101615267747; Thu, 29 Oct 2026 10:26:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtB-0007nS-E0; Thu, 29 Oct 2026 13:26:09 -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 1xMTsT-00079w-8B for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:30 -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 1xMTsQ-0001Pn-W0 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:24 -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 69TGCxre1619552 for ; Thu, 29 Oct 2026 17:25:20 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 4hm44q9t8s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:20 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-7d06f3784e2so60780137.3 for ; Thu, 29 Oct 2026 10:25: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-48e6dfa0610sm474846f8f.31.2026.10.29.10.25.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= cJzime4Z9eoOwr9fL6kkePu7a5M2U/xLgg6lRFKCSts=; b=lX8Hgr6zvk895SrF eR1tx40OBbvIT3tFDinEECW4JJGO/9GVB9W+jnHJqx7aPkZfybNq0l9psfsb9QLq N02Y18ouNQ3/+3vrHjwMTcf22pzpeIyMpSviEap6z+SUJdY5vLVjrhiS6vTksULL ICAAMkovbWJ7vMYrxpzDf9xzSEeKTUoFJvkOjw8aCY0YIGKTszK9Y61Tk/6aOsKc L4c5/pGOObaXZp6s/AJAZ2RgZM2GfTEGi3Xcl/o8YQhKadleW5gUykwJL0UA594C 8OUSDdCRYKEfdoqgqKPf+3acwwuHUKV0OmTclcpiytAgdYwqTq4ahqtHqhp0t67Z eEvPtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294719; x=1793899519; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=cJzime4Z9eoOwr9fL6kkePu7a5M2U/xLgg6lRFKCSts=; b=PAWa/1mK/D22hkcfJH/WuRXOsXyUQ1SxB7RRZB0+weYTtSRwIUP12paLr01VlwKMJ3 NHH2NlRbNXmWab2SYwU2PCxuYe8Jzn1Nt0oQsqPliWVbG7X9GL7hsi3CYbkJ/ZMu0TIR YggJkjnrZRyaBnIn2C7NiOl8wCx4JrhBixX1F4KGUq7MQvWScrmPmcEgPjCpJCjrfKw3 mgZ1ZHI9bqVFigZ9LCtonIcVYWq61ibqc3L+/rrbaz1Nd2GEU1K0ANiPu4rQ+Xl6eIb8 DQgScaNGT4J8dPL7O5pPDdb9oVKYw06Wdv/uaTmQPo79s0oZPae5UWPAmmZu3Zme0vA5 zRwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294719; x=1793899519; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cJzime4Z9eoOwr9fL6kkePu7a5M2U/xLgg6lRFKCSts=; b=E+hAx7EW2TCh6o75omYO2AOmZ5hOm46msf0tdeNDFuPLiUCJONX5SFA9Jje7tr/0o8 Ck4HM8K3db2A6a8KWbkxHBe8vG9URFvGzoPezKUgiTrTPAAVnV2e31VhMmbY5Fpa0Nao 0whz1KMbcJ1461N2i2j8h3ql1YdlG/xmeF40ahgyJ6KS7ufG4hv7hYPE7f00ryHHLTOl G9sfgzBwImCM4OZZEYCyg8MijDMsQu0F6BXozY2guXAYGpxa/Yj+fiygu3UfAtz03880 ku6q7/CrhJNiystknke40KiXYg65u2bj9uFDKzFFGYIIpf5VTGCnEq5SEiRDGnmWrdYL B28Q== X-Gm-Message-State: AFq9FYJS4uuBWMvBa6ooO8mmRcxDRQ21J4mhiEEVuE+PN17beha9lCJk Gwldb2pvBvrAqdE6G3ARinDOI09u7YEEZOpuZua6NakmTRfsjusR6wioCLoiHUZ24jZSBqESBl3 uDCCsp/mM2ZmPDZ/ZU6NZiGKg4E2ir7W48/ETT6TZfl/vZ4GblqReIxfF+LMjx4KJ6VDd X-Gm-Gg: AYBFou295yTl6oJPamneAFMH0CJgigw1DZKwEr6qK6WBZGa9COEm0ykFjva0GK3btsR M2LgU7ADWYzIATlCmTLZ4HF7L7yPEK1AVNBq+mYWVKEcKjfHj0QP7XxnZmhSymbf9N7rwWo6ObR Wn8fr4hoJYpx+h+8wsZPeCEKrgRN5/6INpDthJIPmWzToqJLLP0s4HQWlwO7buF8UA6kP5c8UwI Fd2JSfGDKLZjAbOux9EUCB2lxwbJFGmk1Kz2LjhzjHg7Y8RWDkkTTqsN2cOqC08UDMQjAA1TTpq wEg+EBW+LMitxCpNfNVNq0JTsa1VLcewy+en+CyNrgIXe4dtTAGplEL0cBRt6CvDRpuXdLEN4ZQ CLZewwao3ylO5FBSo7o0z/phGZUgFkA5PB7P++A++yr0oOYoIoCV21WhM/HIZ0lvE+BHucSr9zw 0uP4RlXKCUOf+Eg0Sny0tisuCYhieqmg== X-Received: by 2002:a05:6102:3ed4:b0:7cc:285d:4df8 with SMTP id ada2fe7eead31-7d03a574a3cmr3239863137.12.1793294719025; Thu, 29 Oct 2026 10:25:19 -0700 (PDT) X-Received: by 2002:a05:6102:3ed4:b0:7cc:285d:4df8 with SMTP id ada2fe7eead31-7d03a574a3cmr3239841137.12.1793294718511; Thu, 29 Oct 2026 10:25:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 16/31] tests/tcg/mips: Group MSA bit-set tests Date: Thu, 29 Oct 2026 18:23:00 +0100 Message-ID: <20261029172319.25766-17-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3T4ELy60X9Fx tp+YJPaGsWGi6eGYpfN53y11blQ9Ko3fUlQdTS+bJdYaCFifzS0GE33WdgNCzL+pOO+51y4n3MO +lfvHUu+G2OGJInol/y8Xjjg9JRMtvY= X-Proofpoint-ORIG-GUID: BsWnWWHseboe6eY38oL334lHujjndki9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3zMmYTsF3cVI N8XCMatOOODHY8eJZVexlVQ66ix5p8L2oMURnykGhyxxRHsLkls8nnpM8Mc3FUdnV9NrLDgINr3 qDlDCX+zWMVudJVwEwiW5KTVhSFTHp3bxPkBFfSEBhE6JLEI+bkrinNYck90qAP3DtUy5egntsE kqkoHnTggNXyPZ0aWvUA4K9dtOn2xJD2JMfNaqwYvilN0jbuQgx5L+RxzcUGBLdvEXUGmW4qxPI 5tGeXR3ggbGOU+wiuIbpQBp3VcFV/uLtTfo0tv6PVqs77YkiYi54KcLe9Z6AQD0FQrNOSmwd7Z3 jBTTOV13lpWESVG6Szpi1IYXiSz4R3akQgjKmHCwWWvlLl5jJHXoACc5AXobg6EQTp90BEHJAyp vUjbJZL6Yez3evCXkZYsIkdjYN6/Wj9Lyugaqw2qBYYHbczWjMrBleKFpYiUJQAfRt7adrP5LAY nJnCaK4rUwCrkY93JTQ== X-Authority-Analysis: v=2.4 cv=CYmdd7rl c=1 sm=1 tr=0 ts=6ae38180 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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=U98Yu14etVFMT76BwSIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 X-Proofpoint-GUID: BsWnWWHseboe6eY38oL334lHujjndki9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294784224158501 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 | 103 ++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 105 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..76301fb148d7 --- /dev/null +++ b/tests/tcg/mips/test_msa_bit_set.c @@ -0,0 +1,103 @@ +/* + * MIPS MSA tests: Bit Set instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Bit Set", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index adf25fd3c5d2..f3919436dacf 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -244,18 +244,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index b40b7c10c608..08a4900a9fb5 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -42,6 +42,7 @@ endforeach tests_mips_msa_groups =3D [ '../mips/test_msa_bit_count.c', '../mips/test_msa_bit_move.c', + '../mips/test_msa_bit_set.c', ] =20 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 0a3b84623125..fc19a18acecb 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -43,6 +43,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:38 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=1793294954; cv=none; d=zohomail.com; s=zohoarc; b=NrsysBnFDgLbwcol2MJarH08KrkW1qUao7EjWa+xUbLW/gLRFxUpWh0mReV8lF0MDUHLYQElu1YeT31xQGACDL6PR1eEToz501rKBK3aHuSTZph9S/HhKPnrrEORnNoPXdQoe/iJ7aTJjSPVSggiZ9+K4mQNElmpTRAJb77Huck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294954; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PqDwKUQPxw3vXQAWEkujRYVr65eBYGjyQokpGd9oWMU=; b=JkpK/uDZsUCYzMN4nerT9HLZZYrTP8b5211ABDYRmMxAT0eAPCoDP0bPJOYu+amXmsWXj1/9R8gzwvOY2DYUji8IAJPjAdmtxwDvFxFMCPNckGtiQGDCETJka8lNkTWRhCGnhXO4F2lTUji2TkgZOvY8TOb5FT6cDdPNVpL+NxY= 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 1793294954383704.6488148734766; Thu, 29 Oct 2026 10:29:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtL-0007zc-HW; Thu, 29 Oct 2026 13:26:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTsX-0007Al-Gh for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:30 -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 1xMTsV-0001Qw-Io for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:29 -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 69TGDasq3689726 for ; Thu, 29 Oct 2026 17:25: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 4hky5sb7px-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:26 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7bf45382794so1929507137.1 for ; Thu, 29 Oct 2026 10:25: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 ffacd0b85a97d-48e6df8804bsm454719f8f.15.2026.10.29.10.25.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PqDwKUQPxw3vXQAWEkujRYVr65eBYGjyQokpGd9oWMU=; b=hWGUyKd4QiKNe7UA Ng8C9IX7N+X7Vg+jao4WHQm1UBokvJEw0ODpwUslUB0tFaZnA7V0vZmcFyhhsNgF cyAtg9sD2RYq94bntMAbTV3NoGborpc1RZmTgVUMEgHN6ER3AtKTb0fH3SAVEcS2 gzzsBB3/Gmg2QkPUoDbgBiPLw2veDY/O3JHf+Q6RG/XKwf+DPvndi5uByHeJOAYv zG0nFL8X8XBWQrgHfvrIFvirFCE4bBzF58zPP1yT1ClESJtbskVn1Z1Syemv7div FW24b+ibaL/NMLh4HuWej3+Y4mRYHKnpH2VT6HJwqSQwNV4ZWbmB2qpMRYYXswQ1 NfBV4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294726; x=1793899526; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=PqDwKUQPxw3vXQAWEkujRYVr65eBYGjyQokpGd9oWMU=; b=WoTUBTwW+jmLPh57mOkvdYGIKOvRyQt05Q0et7X48zN8T93nrMVuhu/gy7L8pVzzk0 gn+kBLPDQJDLYybn7lDHoKXe0J4K9Oj3O+EyJ6nxpmn81ONcvFKJSn1nwTl9CDxYOpdR XNqHwylBDOUCkd9hB5MBHF7uKva0LLGkuGXVolSsfBB6dS3DovNHTgJ2YsW9TgH/VKUp NxPxXQpNHp9p6MHdheWLMD4MBB3PP934zg9KBYZTI1EZqSrx6o1IkrsP+fRtI6eyJsod 8l0ftZHdvePnbnGxv+u2D0BPlchCGJXn6I0jM+TR3a+reop43FGLLWga9Wb2Y+oaIzhz bDsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294726; x=1793899526; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PqDwKUQPxw3vXQAWEkujRYVr65eBYGjyQokpGd9oWMU=; b=p3yX6sVTd0aQtPCoFYVJurqgUP5w5AV3VgwNVUkn5VV/zSG+7ExP2o5JfVdh1Bx8t8 WhiSIdISduomK+qy8/aOyczHWTZHAaNw11tRvXmKHnkLJc2gHeinU5YVPE3bi0ZqFJQc +sDwo58qySAWywmlbk9n7oQ5tm51Q59qYJ/Ac27eYqNPPocB5RqUpOsmJtwnrfpASrLY rAA8hmm2K3bM1aCJhxREbgs1dr3plixf5J6a0ZydG6BXNc7tEUVxjjIQap2heqQMj9Sa 9/y/ksAQk2wwIh2cThDihdnqpMXvipTAbFjWDJeXr2TINUSvkI35JSovzT+HMbf8uflw 6jdg== X-Gm-Message-State: AFq9FYLvp7f/6PXllUkw75dC7VDhFIFMxSPMakyiOdMe5LspCsL7d3Kv zcfUgOPQrPcg26s19I0/cESwxJsNkm+2v4pLeJnIW81oJiHjQqwj61BKP+IJ0QtgaUX0v9kmhqQ tqMoZH2uf28FjkiMGvoSr8AW3YsTq47rehV0PJ5oglZHU2b++eF3SdaDYaT6tKScnXtfH X-Gm-Gg: AYBFou3A3d3gmNPKZrwNk54Ld1aZ7Wyw3O0iGvmP5Kw4EqGOjQT8c0lNucFg9xX1m1A Fgalequ1DQOlkpzXidYvczmbhNjp0kx8ngGiAsCJp55H3iBl4/83EBiTZPgisF3roxRrt+/1m1b qWTXZR+4LF3NN6rzz01+KJBXUjPbwF0SWNaXPUbIXlKnVBuVOhmOSyVU03Y/XzbfvXv0sJxooMj yzap0pH21fyQlPWx6DL5TorAbQPKl7JtIHBKP8lJQUJciKYE/xlfSO551czAu2hZaTVwruoUdgR dU2dV29w+1NLrUae+XMBg3YrwQrahja4zCaVIcWN+VzAfwvYIXtcVqxZxAbK0ElTHjOxSvH0ieM 9x6wJaw4v4D3HYFEDtROG8Mkafosx6nZN/mcpUS3+7SbzL7+5Tt3lEC/fyvo35YD6hFrgxlnIns MTsTbYzcaejDS5XjAADaRsv9aM/eT2yw== X-Received: by 2002:a05:6102:1499:b0:7a4:e550:eeb9 with SMTP id ada2fe7eead31-7d03a5b9f80mr2950622137.22.1793294726120; Thu, 29 Oct 2026 10:25:26 -0700 (PDT) X-Received: by 2002:a05:6102:1499:b0:7a4:e550:eeb9 with SMTP id ada2fe7eead31-7d03a5b9f80mr2950611137.22.1793294725671; Thu, 29 Oct 2026 10:25:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 17/31] tests/tcg/mips: Group MSA fixed-multiply tests Date: Thu, 29 Oct 2026 18:23:01 +0100 Message-ID: <20261029172319.25766-18-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7NfvclEmxVil e8UJckpYRCki0iypibRKywweFicBkmAIO4VAaHyWnp0g+bP6YZ4IgnrKWOrRcNkMvIKFeiC2FPH TTg/gpH8/bParpk1yhciA2gdOZ5Qh2A= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX4EFs7y6JIvvP HpnV/rSURH595zc1meTZ/Ip6kd6/tbITirivRTJSUUwENiuktg8trPvoHApmTLSxJsFOUpxc9oN nDfhDDu+9jY5XjX1x264Gz9a1Y0u4e0K1S/6y2ghBXz26dSbgjvx4czrf+g4cfPAVWVS72MwenY 0XigbQLb5h+r1lVKgSRABU5BrJoIhW+CS2RUGjdNoDItvGhHgHtdBknK6REiuLwqxW1ds1LrgHS +4Tx4J2/VMbtYgI9fMg7RPj4rWVe+WbdYUR/KtYwVfr6DCgLpyP8ILzfzoVBfm7bhRP/U5i6J/m vjRHjuzoY9JtD90AFHjIaG/kBDIFWCwu1fwxFccmnStTm4/R2ni7NnRN0CSbWSP7kyDKONxTxCG eKU2wuLvJzpkuaxljQCQnbTLD2RDHg== X-Proofpoint-ORIG-GUID: wjeFwTILMelVEHN8gEaXVx58ZOIHwB4j X-Authority-Analysis: v=2.4 cv=f/vdl+yM c=1 sm=1 tr=0 ts=6ae38186 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=bS_b1DOo4Aa17MkEkSYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-GUID: wjeFwTILMelVEHN8gEaXVx58ZOIHwB4j X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294956607154100 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 | 103 +++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 --- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 105 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..aea5fddec4f8 --- /dev/null +++ b/tests/tcg/mips/test_msa_fixed_multiply.c @@ -0,0 +1,103 @@ +/* + * MIPS MSA tests: Fixed Multiply instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Fixed Multiply", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index f3919436dacf..21cf734c1763 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -192,18 +192,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 08a4900a9fb5..e1963c9b16f5 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -43,6 +43,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index fc19a18acecb..0b8a8b77a514 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -44,6 +44,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294915; cv=none; d=zohomail.com; s=zohoarc; b=DH8uaIzaLlIBaEsU5v5JUsH1Ox0TKcB1S1uOtzhH3K5+7OMRzyxNcs7UPkap19ssIkvj01tBn4FafzkRmJ6ghi6hpopMiutO3neyOAiQkltZgsDZyZp6hfXFi/xHBSPpFbmse1+Eh4S9ECITM9TRBMBq7QncXrru1313ygnsxxU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294915; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=W9PGMwAF0ci1YJDmb2FTLd57bpc2HRmE1pQg1xuBwJc=; b=Rl2om0AtBnKCbd3Qsru/MbxTyleOChLg4TiH5vXE1for/gV9dqU8rfXdOn4T6CHRTyAAmIf7Am5p4YC1POEYHQ/MAQi5D+oWUWb6Wbg2EPEpz7FAN7pUeC1iEcwtEWjaUnjQgZq5DsnJJaSxoenegbCIMBYGZg0G8f0Kpd/u8qE= 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 1793294915508200.3243455770113; Thu, 29 Oct 2026 10:28:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtR-00085d-Fl; Thu, 29 Oct 2026 13:26:27 -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 1xMTsi-0007QY-4v for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25: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 1xMTsg-0001Rm-33 for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25: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 69TGDXpq3234242 for ; Thu, 29 Oct 2026 17:25:36 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm31b24g6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:36 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f32050e72so564455685a.1 for ; Thu, 29 Oct 2026 10:25: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-4aa7fdb75e0sm79340665e9.10.2026.10.29.10.25.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= W9PGMwAF0ci1YJDmb2FTLd57bpc2HRmE1pQg1xuBwJc=; b=Iv6F6xMOBZ0dmGc6 Un6wbXxp/esEpvLkj13Yi/e/z3fJbdk3vIHAwwH4NQA+wHHJv4pjCcrbgwM//23G B1sAZ5zV3XVmGDwWbu3A7AsuaKoCjNvSoe3ZEibEsyRlFfwmJzaasHDEuj3fTsoF 749psEgdYOwJwHggk7BYq+hPQV1iGrmJYdmciHZhey7HKW37HBCrf4ueSnjo7dUx jYk97qHeBYvVwuVunudOKSloId4y/Et4pC8Av30X09LhL/Zw0rrUewnIYBJWDQK1 D0b4Ly9BykZeT3zPAnTmlJMGVcaHqxNJ6q2SGxp8yi7Ypne884KZlzb0U8TmKnsU huFlzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294733; x=1793899533; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=W9PGMwAF0ci1YJDmb2FTLd57bpc2HRmE1pQg1xuBwJc=; b=RGOqyOILhMLwlVY/ZTyZEEzLaI5xSMtfSEsG6GxXDqv5y4VsNCeF67Gb+0CWBUmaJt tA/+jUTd84iWixGYpKBx3H6GmNz/11j9cpJ2JqzU262dovVL85s0TmLctMqhFvn8QJ6R zLN2ftHtzOmBcAJfmqd2A8wHtqsFlLqMUZTIsqMMypXXzsLQ9V0qmnzh3BHmeldDJdE7 xHV+Vk2CUUXxxjQwTe7U7zO88xJNE0SidzLfsVb1qkhPXRZZFlCasTgbwcN9pCbRanUs cuwmAVSxkaYb/8xnbsyOdbY7U53byYsjYLL742Poyj/LZS5f4WOsLXFWa6qDX+mNdI/c lprg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294733; x=1793899533; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=W9PGMwAF0ci1YJDmb2FTLd57bpc2HRmE1pQg1xuBwJc=; b=dpLQ0PSN4MlnElObMJxqulP9afQDxtImaHDiAyZj8noHd879XKsmdKwpFwUxpKrVgA gmjFekeMspUZKdTR2fWxbeYrHVB9YDU9GnlczlYd/yx65/BKLeLWK6XPxDnbJlHpSsOG 6N7VbnTk1Wq87E6b1cVXcvGt+vss8vOtF+CZ631Q01q4gMLyEqTfWLHaQHv4FLwRX1X4 xRQWlL6rFDlNcKjYFHd53RccvBGHJQFge1s51emW933+sFhZiOORZfQyMdNuWxgHdMFn Ay9/vOetHh1EHftnktPBPMTAD6lYEu5gz5JlTUcJPPEnRdMLKqVGVMHqeGQXFg+R55bZ EqMA== X-Gm-Message-State: AFq9FYJpMz++u/6BVskI+Jas5W+TeclRCgfaELddWigXZ93TBG/wkMBJ cUKawTqsV5sc8B+nXJotTFwsYSMyC27Wr3XezPa3X58c8AADVJ5b7pv4PlcvPGrxAXY2B0lQ4cW MKEPdwuhJIAl576LsmVV70uXioQPoI20HfQkqjtwBbB1eFzEJtxaY9m7v9IHFCAjeN/jV X-Gm-Gg: AYBFou3ActMNsbJBL0A1XRIbJYGBb5PyRfCAtk+B7gl52Qw7N2DoDCchU7MyMLRMZ3m bt/NRmT1g4paqMuPWXrFssIvdssSiRyTLQtzv7KC/Q9ACdES28ewPCjiZ544T43AUQNL8qGJcBl a8YlDwFPm+xntt9B+9clpNEehx2m+/3tDhzlLH+uFs59/4scpT7Waa2OwfgbikempTw+rRSJnul B5C0/RxykfST2LDDmmqUuixrQZuBk3BFyLUnzV2FBSrVfLdHx7wNJo+PDF8N1AXdMVZW+xWCyEm 6hYFjQ2fr5W9uZUukfbZDdEEF/yhvqgjfGyf/BjNJNojdhLvAnVe0DHok7vlMujasaJYKV21GA+ hIz6FrtJ0I0gHSoFswIk3XCiHXX+9/iY2NcMZJqW5UDiPKwfKk4ZTOx9k0hGprPKSWmANM9mzTw YmmZLNSh1Rmy/jFvjhyArCtsqZvzhSLw== X-Received: by 2002:a05:620a:45a2:b0:93f:31f0:6a7f with SMTP id af79cd13be357-94408d5db27mr996474185a.69.1793294733073; Thu, 29 Oct 2026 10:25:33 -0700 (PDT) X-Received: by 2002:a05:620a:45a2:b0:93f:31f0:6a7f with SMTP id af79cd13be357-94408d5db27mr996468685a.69.1793294732589; Thu, 29 Oct 2026 10:25:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 18/31] tests/tcg/mips: Group MSA float-max-min tests Date: Thu, 29 Oct 2026 18:23:02 +0100 Message-ID: <20261029172319.25766-19-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7xVgOoBifwL2 WTcljBMRybYlJ0xZJgEDIDjnPQhcq5G7QPKuLmA2M6UAj97XpEsAVETDa9hzy2CKTOw213Vwp0G qhemM0HpxmkdFYTUTAuTEt0+gSATFgM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2XNYnIZ8d/7C 0XO9EKMGrLGVEZVQjmW9+XECHWeZlH/VrU+noEHtU6LxygbqZstDiFrijiTNSG4ePcIHtMfFdZD H6sCAs7cqJEAhvFq6VjjiS1BAufFgu/7NhU8sblg0MN0kx5MTJ6VMEknykyAQs34p8MyvF+A215 rqHfxHgk2r+k1GQ7mKBoz3SYVYnMEtx82FWBFfCRi4dIqoK04LRgQzl+KdXldXkwRxAk0UpZydy 15NnwpUkMLxr3xjKntXsSepPGwFwD2qTpCUNyCDHSRDFX1AChEbgUETfJ+MR8CFVJSSv5N592Aj a0aXBNygf4rPedsHuES986fjVEhD4rB42NoOdYmTMUGdfnT4P1nbp3OYfxTMja1exFEljpQsMlN 1OgBp1c5Z4g56bSc/+8wyKS1DyNz2Tf2353fI9Ctbes4IjsGI4H2y+3saSwjS9ZncRayhWIQHdR 1+d+mgTp1r0WzdkQqfw== X-Authority-Analysis: v=2.4 cv=A8T5rKWG c=1 sm=1 tr=0 ts=6ae38190 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=5Dn7miAWBvvkMBm5KWAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-GUID: auVCE-jMjAixPetJGO3RDy5s1m2MgXHf X-Proofpoint-ORIG-GUID: auVCE-jMjAixPetJGO3RDy5s1m2MgXHf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294917875154100 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 | 79 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 8 --- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 81 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..77b8954f92c1 --- /dev/null +++ b/tests/tcg/mips/test_msa_float_max_min.c @@ -0,0 +1,79 @@ +/* + * MIPS MSA tests: Float Min / Max instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Float Max Min", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 21cf734c1763..413879c205c2 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -65,14 +65,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index e1963c9b16f5..adc9eda70f3c 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -44,6 +44,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 0b8a8b77a514..fd4325f817a6 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -45,6 +45,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294873; cv=none; d=zohomail.com; s=zohoarc; b=Xhbo1SWUiDZplHLWeMbRAOK+LXf2DOYJmnbOPtd9lkH+ZqH6nRRYRPDNDitq5zxoc/5+a0NA8CLoHeFMctz0F6mXz361C/xbUpkb+/7vjTkPGA6eJi9XQZswlj69VJHmfVeW5YQ6wyKJmbFhk6Qk/v+/AgldJ4VZulIfmwNzJrU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294873; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jCxaYWs+FKfV/TL5ufZ9pSoFYfasGIZg5nYt6NZYc78=; b=Rc7VA4oRxZVW2DU7pOiaPtBrg6BmCUsejwFVM1rIOnexA4HQMhff6w+cCP1rTphD2vy8Xj+Wo88ceRKEbjLlisWibkQlgQTz47f+gbD1nbmfSpPSFR2wc5aZ5fQ1Usd0ziaXC9CeiJROAfWIttCpskNY47tPoD0nI2HuSK0JbWY= 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 1793294873573542.7060196585758; Thu, 29 Oct 2026 10:27:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtf-0000Bj-GH; Thu, 29 Oct 2026 13:26:39 -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 1xMTsq-0007bl-HE for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:50 -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 1xMTsm-0001S5-Ij for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:48 -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 69TGCxWT1619559 for ; Thu, 29 Oct 2026 17:25:42 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 4hm44q9ta7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:41 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-9913f410ba2so162457241.2 for ; Thu, 29 Oct 2026 10:25: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-48e6dfa0610sm476667f8f.31.2026.10.29.10.25.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jCxaYWs+FKfV/TL5ufZ9pSoFYfasGIZg5nYt6NZYc78=; b=TnHZ7zwJsPW1520A eqRgxTEt+C8z/h0ogfvrQf68VA87YxtrtjkHtNngZ2uULuOXlRGAzBFRk34knaq/ vBZuL9WJegXwx6CPvsBZp+gGaFpehI9ArqYp3vtqmIx+rLYgEoISDCtGGI5UWr+1 4F+sRooBhJED5UtCG4pEVEZSCjuM9PXBTmqb1SCJHBowjH5JqGVGXx1ISIUjzcuu j2h0XrDxZSGBjvVmXYJQ+AgUw3t1PJk9EKiPNjpwNAIzHXCmArnnMW30qqwu4CvN cv0RLPW1q8KVkF00PQb2QEj5ozlAyZw3xCOFy4xbsUbkbjLdCO/HIFM8HA8kJdqn BxlwFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294740; x=1793899540; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=jCxaYWs+FKfV/TL5ufZ9pSoFYfasGIZg5nYt6NZYc78=; b=WHos9LiFCeTrtFW5aNo8QzELHwN0jfcSnr2HalkFzTXVgySAwOAgV8m+qQ/pKktbgQ pSKXxLg+rfc9RWxlzxFIfvJ358R5BPbx3iey9+hxvWuwbp35jSAbrBsazlkglQCt34Tv JQDOGm7A6y1z9gnwH//CYnbplOww81CerFCHVkBpCRZzSrBV2Bk9s9YvRCit2bQ2D2MS +DomJyDtScSChIqqyjmPPdFM/WnOXMnm9W+rP1fnfGtpSPnmKMVWCEZ0pY9ad2+og2sQ YCMHXm8RK8yJvNVGiCmtl6+L8lPD/cCY7ExkX9doDjOq9P4UkvoH5PssWQXzdiqCrvXg L5vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294740; x=1793899540; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jCxaYWs+FKfV/TL5ufZ9pSoFYfasGIZg5nYt6NZYc78=; b=EOI0ILm3eHvRRXXO9Su55ue3BfOI2GGyocA0X/iriK4bhQpHLN/fXClt170PA/gJBC YcnWsEWatC5qpx08SRjGrCLO1udPBspGd35+FREterIbZlrefxtAmRdZYAUKrpBVG55Y DWxi5d8tpIrJYozdqUNIv556gi8TbIg0p3x6bHgIwEXs5RZOXGybSeYGS0rJp35LF3lE 3UuxD0KbeghplJ2VZmKGWca9omcLXzUR9azQWW4KiPJU7n/CW5FWVO9Bta7wL/uKDY/a elzxIyfJD3U4bUIB5HUUv5yEiFXb6y/45pS6LK5ZZfAA1Zwl0lZeJfaL40ITzZd/LeHH GHgQ== X-Gm-Message-State: AFq9FYLgG2+2z7b5kcD4WqNfKyfMPK0rcn8HVPHDdBBbEbCfJAobkofB j4fpysbQ5DJfw/n9Di1/hbVJb4IdSeCZE0i+6fKQ20YGF6BW3SOsPa6uu4qm9hlX+ZyXSY+mXZS b3e0sequjecenIXzzmYTgypPCu9wqAyE2VeR/I6pNbTqEsH4HnnDKHBLPx9s5z9iTp9Aq X-Gm-Gg: AYBFou0j7//dUClWj1y9Vh4A70eORL2kvlazSM8tqcFMlib/5YuXX0QvMImTUkaDNTU saaVLMtk0jQh3fzN8wVt9hwsK/mDqv4fNzbZoHQlC7TYNtGXyPrSx7/II6nRcPLKDROns1uS4EH YkkwDP2LzAPSJ2TilCKR7NVKwHbJe33mQQS67/fqwvxswc7+DoCmrOwS3uANoTyxC2Gr7Sj/On4 x1CYD2eKytk3reNMWrqOjGjX+qszcUzED+fTBELC+ava4Y0DMnYsHDKHQ/GN0BV5MQRvQVFSXMl IVGpa5OBz9+DaIsEFA9fqTrlFAA4YOxTFkvqgJRPkaBsLYdRavKGGQtx72qxozXOOTHJq4SeqD6 T70+vNnyVaXbedPCuj5xLKv5fAdS8R81OVNXL7wrC8RdZ4unDdm6Bgz6GI/15+moyJPlZ0Ar0Mj 4ktGOjqOIvzFJAvnKWmaXEA8PatDvxtw== X-Received: by 2002:a05:6102:80a5:b0:7a7:19aa:f0d4 with SMTP id ada2fe7eead31-7d03a651783mr2409575137.33.1793294740169; Thu, 29 Oct 2026 10:25:40 -0700 (PDT) X-Received: by 2002:a05:6102:80a5:b0:7a7:19aa:f0d4 with SMTP id ada2fe7eead31-7d03a651783mr2409569137.33.1793294739632; Thu, 29 Oct 2026 10:25:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 19/31] tests/tcg/mips: Group MSA int-add tests Date: Thu, 29 Oct 2026 18:23:03 +0100 Message-ID: <20261029172319.25766-20-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6v3/mHzq3Twn bSfqp7MdCA7vVcloLVQttzZAu5dsbFqpK+T7Y7x2Ng24oURyLIS6CZIqraQ43+Ee+/jwo3xNwQt M7ShNmgz1ekOfsYJbpGSODm60t5azhs= X-Proofpoint-ORIG-GUID: AtaQMDgIqW6bOds89auwq04PwjAuRs7u X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7raMDnOYGyqC SXBu+I8UCumPHsC/GQiJC8rNVr4tdklm5f22tzKjyitygkxUi+OI2vYBQyhti+jb4qdnAaC2LOv IYHe5N1OsgOhRXHRU63g3FGJ44+sKCsayC/lol2uYsGGFhbthpLusqGtTH4q+DKm6MGaBsdwetz BIO+fsAj+RmWFpShnakndG3XlnpXnLKeRfsSXtSGcsQSkr4ffEtQjOpgcGATOoBexjI1IrLulX7 4UdfQ8JKDvHwB/pNEdgevftTDYGSARjCKOGDNM1m3Xg7dz+AHdpdQa9tboRlNXUZShYXM4qpjQv mYalLYDmQeFxtSnY2s7CVYmU5uaD8n2pPNiTv0dhQq1Ce9CtXxC1QhR/D31Hd0vDx2cEKgIM8e1 cpFvCM/a21OiUXbDVB+gTtmZESyfJ+1dZNiKztOImWwkEFd98NY8+L9ckGXA14b/s6LyFJ9FWtJ i7rRrlvkh2LH17BmNgw== X-Authority-Analysis: v=2.4 cv=CYmdd7rl c=1 sm=1 tr=0 ts=6ae38195 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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=xSJLvnGiI23x1uoAYFQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-GUID: AtaQMDgIqW6bOds89auwq04PwjAuRs7u X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294873713158500 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 | 187 ++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 26 ----- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 189 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..aa7165f42f2d --- /dev/null +++ b/tests/tcg/mips/test_msa_int_add.c @@ -0,0 +1,187 @@ +/* + * MIPS MSA tests: Int Add instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Add", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 413879c205c2..98bd391ee22b 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -85,32 +85,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index adc9eda70f3c..584b69812a54 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -45,6 +45,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index fd4325f817a6..5140ada24cc0 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -46,6 +46,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294879; cv=none; d=zohomail.com; s=zohoarc; b=U2WW51Z42H8L6qmNzfuTRaJgnBCvycVAVlspMV7+8Mcc0pkF5EFBEZxbDLkF2Cxy8Nut6kqtToQIsSw5ubDc6em2zs1/rDRFrL2QWUZHkXY+G3dHzedt7LBzx5Mf/M81UEHAAkNHjFY/TZ1IW40A3MC99wTzBesbeTD62iGhjy4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294879; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pjucjWpk4bAajy4vzq8fJEqAv+3kNQiif8uyByYYQoA=; b=k8iLo4bs0xrqJ/q6nGaA7jA4edA2IM29DCJZocg+aSBZIJYf3N4GS+jBwUIfZCeWsL+NiIBXeuqPlaXb1aWVg6yQM/NQnprs1vpTgmoQBQMCLVtiwxm2F9YhGzYQK/vdqKhJlt1dOPzs7rVELkL1+4B/6iSEVCqbL1WkHmf2zPU= 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 1793294879322221.02371511735873; Thu, 29 Oct 2026 10:27:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtY-0008SB-Tj; Thu, 29 Oct 2026 13:26:33 -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 1xMTsu-0007e7-EU for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25: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 1xMTss-0001Sb-3q for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25: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 69TGDGCs542908 for ; Thu, 29 Oct 2026 17:25:48 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 4hkxshuj11-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:47 +0000 (GMT) Received: by mail-vk1-f197.google.com with SMTP id 71dfb90a1353d-5eac1e41c2aso708109e0c.0 for ; Thu, 29 Oct 2026 10:25:47 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6df960f8sm421861f8f.25.2026.10.29.10.25.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pjucjWpk4bAajy4vzq8fJEqAv+3kNQiif8uyByYYQoA=; b=HIfzHsvCCh6CjqMF ENi2hnn0ADayXW3FcmHSPjFANnnBNnZmjWMK3A1CXSpMO0Nqvv4Ti8PTQawGDKRe 0Dk4wVFAlvpVz4S3Gcq2yceYPp0V3eaz63US60G+IzR54wh+6Mu+8LGrRWC8FvM7 Kjnz/c4BDbN/1/v5Q0gOYon0XoeWj4Dpaiue9NzUfG3o/uOpArlCdTgs3o8F3Ccu nHn0+x5qUZZAnBzZzf8y5WRtRYjwPLpr13rr2miq9rgzqqYnHCj53k1bEdvDNkfg 5d2tRftqfUKd6ePEYE0T+bIgD6WoQbCTAznfQikPYNu7dqeuDX0YZUJI/QBBBXX9 j2diIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294747; x=1793899547; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=pjucjWpk4bAajy4vzq8fJEqAv+3kNQiif8uyByYYQoA=; b=G3EwvI3UcFEk5Qar2RZ2KiVVBNS6s0d7vXvdj2V8bmyFzubThHCMNQmKzsqEMH/ufv f5OdRHF4NhkWxUUiWdcujaUrQ3dNFYZU4AZykjz/uNEdm+rK3MPLlG0CXcA68efeLjLw nhf/uHJT1hRrbFWdV4wgmq3YhjAJjDxxJgDWkL7V+FFYMarh0MQlD9mU1yIM0uHTIRz6 2cmOc2EPMh+4SW5V7tSRKV+mUxahfc3CmttOjtdwHsoRrJYmK3BUlvNrq3JbZ+RHwWao A8a1EjPWyfIukRtupaCIt7j+FK8//YPZWljQsy04zfK/lu/FZklF4GfFVQ/NWgrOK2iI m1Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294747; x=1793899547; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pjucjWpk4bAajy4vzq8fJEqAv+3kNQiif8uyByYYQoA=; b=K+/sdz9ACQQffTuzVp/f5TvXjC7Rqz5ISaokvOHD9whavs1hOR6KT9FzUa5K0dq4M8 fwx4UwP+LPGdu+sSy0xo6HGSRjpozuKxAuS9CcqG20WeJQNdVTWnswlqXsS9lrL559rF 9wNKUc+tqfdfuvkNu9HKOhcjtdwkOMZoV5kzl5EAPMiK4kc+uoIas4EGIKGGQEGe/XgY dYzwbpwgq+Vx4+bKxXZeEK3DW9B99e/BWjF76yidZnXxcmBLVM5wgArqjUQR38SCgrJw 3SD4mrnP/uyNLD8r1vgphvtSUmyyaZmgvsmcSk+2556oTeWkOJPFsJJiwPeL+m8Xlab3 cD9A== X-Gm-Message-State: AFq9FYLmNCgULGk/31wszfG3+0L7zhh8PwfhH1fEEHh2GLSQispxrGng pOcEu4D3Z48Q7esqCBxMgSWZ+fZdMvumYE5bdyXld8IxjbDMrO6ydI2Zh2evjI9bdHzKaga6Ai9 imH9tbT635syE4SSZUcY2kOSTy5Yvc0UnqHc672PrKd1kG0Pg94cmy+L0kuzcj/mrT+gv X-Gm-Gg: AYBFou2/19CsI7ue/2GxHMUCLdtMJV+CgvIHgr03INgZ4R7/R0dBB2j3Y2G3Hi9UbH6 kWRTYejZMo2t9T+wcP0ErCvmeCKkI1g7n0nOp2D+u9EgAFTt+nBnuM5M6DqPfxbuL7BrcQJ18LV ymbkgoOib0N598HTy5gOZ6rmsC7pmJwrRAbpfHYHzMGsFPNzfbImhpYBim/A6ijEIChNH8vjSaw 4/WpA8BLu9b08TVybJuJc0l+0czVsZK3yF9lo3pjR7cUzPFaqBga+jw2ZS84UOpR2GDhbTmqw7s kNqnOO++1Eg/RaUhwYp2tonyAn+PmS6juUDdjisK5TXO5gNjwje4dVUzqb2pAc5YdW1V/ChnZpQ GyKx7uPDyn0IEDs0RgoTytXggQKy/34py45Kx4XYogMapmnSartozVGmcM6s80SDAfqvgkbeNB1 R/I272wtqFEyj2EWrhz5ONpes2yIOOkg== X-Received: by 2002:a05:6102:2b9c:b0:7b5:4700:3a6a with SMTP id ada2fe7eead31-7d03a5bd56emr2778020137.26.1793294747196; Thu, 29 Oct 2026 10:25:47 -0700 (PDT) X-Received: by 2002:a05:6102:2b9c:b0:7b5:4700:3a6a with SMTP id ada2fe7eead31-7d03a5bd56emr2778006137.26.1793294746694; Thu, 29 Oct 2026 10:25:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 20/31] tests/tcg/mips: Group MSA int-average tests Date: Thu, 29 Oct 2026 18:23:04 +0100 Message-ID: <20261029172319.25766-21-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: WrmOc_AE5zk6q8jU_8V8zGBRn0qGrD8A X-Authority-Analysis: v=2.4 cv=H6BOUOYi c=1 sm=1 tr=0 ts=6ae3819b 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=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=znaDYlxXyk8I6BA2ZYkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=tNoRWFLymzeba-QzToBc:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX5eUq+k8uz6E1 717mjqBRnJU8jOer337VFLQ6EKstWnr7/Shqx2kuk4akaubFv2Pl3cB2vItuAtWilIZ6EZxZ62x l7gIbtvBiCV3Vl2eRmzDzeLIYqxkmyc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXxCEKhjBQdx+L NES0I5cs1nZ8iMG8yFJ7G9L/UXrMZevPgiDUuwsnauO7kAnhkvfCx8IQqSpFJmhcy/TKtbZ7peH RK9UZ+MtuinVGIAAR+Pt+lh9J97OywQuoog4E+eZR72Os00rBkfi9FAkETlizKuJIKNzNNYJvdn qKALSJoK985ICy/vwlLp/O34ewn6jO4fuuHSfln6bs7ACWT6R6uqxs4yayJpISbmWCbYvnZTZXZ DXsGOgxZ5gmfLiU1gxwx0Cn3OuPeQudMsmPh9mN0uQ4S3P0BQxr3F5NO6hHiDO9TgphVSn4g9vZ dyYaLJRZ9Gnb3Z1dtOJafN+CLdhrHKvy3udg0dKVqglVZD8C204BgJv+QWXKHW4qZPz3co34HUn OzvKpGZ4a7j4JTknADwf59JQPWhZHg== X-Proofpoint-ORIG-GUID: WrmOc_AE5zk6q8jU_8V8zGBRn0qGrD8A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294879986158500 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 | 127 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 16 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 129 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..1e72986c3c53 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_average.c @@ -0,0 +1,127 @@ +/* + * MIPS MSA tests: Int Average instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Average", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 98bd391ee22b..be09044179c2 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -182,22 +182,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 584b69812a54..c3d025452c4e 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -46,6 +46,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 5140ada24cc0..7483b1aae7aa 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -47,6 +47,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294936; cv=none; d=zohomail.com; s=zohoarc; b=TP2VUYLqZfvSNHLrtXjadAVkl0ryuschQ8MLuef1JzcRxzhN2lgstZws2MmBwoLCDdeC+cj4C8sVdTxnipyHCay1KnTOOPeKm6CRL3CWuDU6Np3RsFPZSVqPSFJnWWNnjatpPHRsAayYuAu9EpGJ3SKXKsoJodXkvdIAQOn4xKE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294936; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+Bj5QLd6SH7CUXdQf54ZmdgY9zLk2NOMfkwvJJbdN60=; b=XDakLFcx3NIV71JnCLYZuxEHgINekn9SbTo2jUHtV+iQ30P1jd4KSQ51d/66Ab5Lgx5+4jA0dKbKIKfzbolectoUDkqpKJqmIszXdlBwp7mabq5xktpZCA057xV0zL70aHWjJOrzjKeuIy61M0Ee6plKc76vvYw1YLgATHVQUaE= 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 1793294936198996.0480601743653; Thu, 29 Oct 2026 10:28:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtm-0000I0-F7; Thu, 29 Oct 2026 13:26: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 1xMTt0-0007gR-Rt for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:59 -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 1xMTsy-0001TQ-RH for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:25:58 -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 69TGCxZA1619586 for ; Thu, 29 Oct 2026 17:25:55 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 4hm44q9tbe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:25:55 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-98c6374b678so2126992241.3 for ; Thu, 29 Oct 2026 10:25:55 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6dfb26f3sm403485f8f.46.2026.10.29.10.25.52 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +Bj5QLd6SH7CUXdQf54ZmdgY9zLk2NOMfkwvJJbdN60=; b=kJwHosSvbZeJixRz N6947kzsuE/Oh2NOhShbecISu0a2l6EbYZyX6hwN1vKS5i6lJltPGrGhxIs+oWrg oZJoPCLtLgZzBLVVhkrTaCKt0shRcBMFc1+nvNBGZZL3waCggd3xgHfuikDpKxbO SX/WGBwf00W95GUaFb65tMABRqGR+6kmeGyr5XJDzxucDNh1UtWdZIrWvyLcB0SO wTIvBZJc20/JESJPJvK4nw0UTvAWvsIgbA75cvqhs4kK/Tca9QEfg/RgSNhiU8ml 2KU3Sdjna92oJLE8lhZHP/LTuYbkK5PjROvwcvJJb+np7we9DGKl1TVmyBlSc+Ya PZuTkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294754; x=1793899554; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=+Bj5QLd6SH7CUXdQf54ZmdgY9zLk2NOMfkwvJJbdN60=; b=HqYJSoaCkX01O8/nn+PFfEl9MIM5DVZqvZ6bk5VEIhiazWTvWR365g2Alv+sO7osbH yzQimk0zc1SFSiobhZCQQXt2ngEMHuQVjgviUfDQmBrgu8R8xETad3+5PI+Tm+ilCpdR IKLRjFb3se4arEbLnnXO06MiEyw5z84SZEXlx2lLEin/k3zrn5T/h398ncfpwFInpGEq 4x9p0ZxdmaFvx7uHQ2Vch8rVYJTNQBD7E320Gx2ZJPrIg+7Ds5rPAxtbS/nQqWlhc9Va wSn2kaULx4uTtf3tMlxC1j7I75OoscXPx70ev/IKq5Y57f1Nji5RcML1lhuSXeSQ8qyO biLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294754; x=1793899554; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+Bj5QLd6SH7CUXdQf54ZmdgY9zLk2NOMfkwvJJbdN60=; b=Sgi362JKPZdX8Qi5m2/7vfUsCW3Lqlmru6bZW3U5UBaMTUGb9twWf7Cb9xRJcwE4oY n1FRS+R7gQCu5oPn1+hUQtMGPnKuP+2+TQ9qZFqw3H57ZsPNvkHVBqvUaGTzmdOIeO03 bOE8KD7+JLo5k/X09iBGs2QitCAyWOChSjemgoFRZm4jT0qtrROo7XGv9NYV0moe9vXn HD906K/YjpTSfJVsvuT4ZGTicyAeesKhO+kmZXfKL/SfRKDwG4/7ZDB/XlGZL3vc+2jH 5wqvbt025pRfk2a0UHm2pwaNBJ8K1GpfkMad2o5hsi+bMHrlGh7whJrDS5dj7+ES52P6 fAuQ== X-Gm-Message-State: AFq9FYIfUw5P4/bM+UTmqPX/HBdGwXriBP40PZs5DyVngbRftYl0A0A+ xPn6LrlkQtb3UWTkoKBjTJk1F8LnWOvNvWLo80zK1f5BFtANVtgxIw1lAh69v5zfI8t4rFP2yRO 2n78/JftHjl805+oILNR4+0kyhyY8m2kLoUwAVpK9XSBz6ISBWdt87Ik6HVZEjyUnvsAl X-Gm-Gg: AYBFou25YyrHWiAzwYSjLgJdOVw3AZUBkiIvGcH05aBoJeRrxCrPMHH61YxIS971KIN bKUE6Xqc2Px706Wnx9nZEpsy/WJ+3XS7/L9TzknMSRswR4oZIL54IjU5RFjAVo2IDtjCsoz961f 9MZ8gjWIcPF5O8ttkiCJGfGgYzEN2olk3UqAGLPDPskpIF39GHXGbU8eOK4QJ8SkVPhTSGkQFWO bghy60IL0quWPzOXBAHC7iH+9lExEsTOI1dtEaKm29261DdncwU0NS15UzEqhJK3l9J1R5iZe7h ON0QjCMA6CHX8Fsi6Em4XB+uz9q8ZJRlP2B+4XCxp+heTv5pifKsVzGLdD8GWYrVBzG/TTRoUG7 C8MJ90gZ18QHnC/yiDKnUGe6XIqg683TWn8iYTPxvT//eEFNAFn1dMtGrZ3i5Lr/d5NtLmx54/S H8B2qXmnEubp8kmG21aW7IiEfoHi+LzQ== X-Received: by 2002:a05:6102:a54:b0:7ce:62a0:6a14 with SMTP id ada2fe7eead31-7d03a504ac8mr3051589137.9.1793294754282; Thu, 29 Oct 2026 10:25:54 -0700 (PDT) X-Received: by 2002:a05:6102:a54:b0:7ce:62a0:6a14 with SMTP id ada2fe7eead31-7d03a504ac8mr3051573137.9.1793294753770; Thu, 29 Oct 2026 10:25:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 21/31] tests/tcg/mips: Group MSA int-compare tests Date: Thu, 29 Oct 2026 18:23:05 +0100 Message-ID: <20261029172319.25766-22-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7Z7EEcEJ54Hw xt+9lhAG1OMXj2tOtyVbyUeReL5lseR8DPrOcjRXh9to5Kaal5rVEycmxtDNz4KzkCjt6qkap2a VjAVAYoU1he71f1M4eGiD9xmWo9wSUM= X-Proofpoint-ORIG-GUID: s46ameyIz1QdS8L-nQn9VoUxcKFkAezx X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX7kGitCUC1ITS V2LUWzJt5dVF03qRKRZSmoJMFTXjeQxPD3+c5Y98gqKoToQhJfp5NUNCwBXoIDkajdjhWTivmym 8xyEZDcubIsTJkhpeX+2p16rOPQeOAGzGzAjIFV4edzPi+W3+X4DKKL1S04KSnLDbJcb7kkUUhR rEQ8GZJfNoIvOsSKo9b0dUNtY0qNAUqnDBbhVhqBLzaRbLbnwVMZWaT3gtMHKiAadgAxu/+iAe4 QqxWzmsN8BMs41EXA/NUrOp/P30yTDrDiYl3ImNEKXbgUpQFRRCN/C9iOJ9pmmPENWJ++Ube9vm oryiO1f3Kf0zAjcwUKuHsxfP6QKzSkgxOqzvQlmTLMQ9UfDctnUPy7muKjruntTOjN1x1BuO2le KjSmd7MrzZ3j+/KbZtf927kTa0KzDI1xZRZUhmRSERpqC3x8l7Z3RC1SfzgYSFWOeMvwABp5lqO ZCyEB2sVxHINlJi0H5w== X-Authority-Analysis: v=2.4 cv=CYmdd7rl c=1 sm=1 tr=0 ts=6ae381a3 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=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=agCbhU3l45mO4j1jyEYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-GUID: s46ameyIz1QdS8L-nQn9VoUxcKFkAezx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 impostorscore=0 adultscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294936838158500 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 | 151 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 20 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 153 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..b3c9693c9278 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_compare.c @@ -0,0 +1,151 @@ +/* + * MIPS MSA tests: Int Compare instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Compare", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index be09044179c2..34ea7d1a7bf7 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -133,26 +133,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index c3d025452c4e..e896658e66fd 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -47,6 +47,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 7483b1aae7aa..c4c9d2e77cb8 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -48,6 +48,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294860; cv=none; d=zohomail.com; s=zohoarc; b=aCQCvFUjsmaAPIv4RDx6DyQWNk8LprOYDmi/IO6D5Lb0hPcA4mSLZ9KtXnLkRtxROiB4mJ2p4jGxPxJBIqOoM2FMY8LIM5TPZ8yE68Ln/XltzUMfnOWzGqkQ0EKQ8aAbOo/Un0I1mzIq1kY/U5in4okzLxKpf6UQvXT2MY6dJws= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294860; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yvfqtoaSNYVjbKIYQ4IuTnEG1c9CtANUkPmP2p3NuLg=; b=WBfrM1zwjtz8fqaZVLyJNPt8J88gjO7MGo1tSzsrgRsYDWYAkB7UhVqdq4p/0YBQdWnd9gd6c15UGzxQuaUnZ32cPfPz9IceVJ4a02N/s+u8THL7+rh/u/DFWpPSxrAC0okw1oysS6nxmvrLHiztJGZJDcydbDsiqynOS9TD+0Y= 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 1793294860257118.62581073208878; Thu, 29 Oct 2026 10:27:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtf-0000Bg-Fn; Thu, 29 Oct 2026 13:26:39 -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 1xMTt7-0007m1-Qr for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:06 -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 1xMTt5-0001Ty-Lz for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:05 -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 69TGDEDp1087036 for ; Thu, 29 Oct 2026 17:26:02 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 4hktmpc8dc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:02 +0000 (GMT) Received: by mail-vs1-f70.google.com with SMTP id ada2fe7eead31-7bf586522d4so1519595137.1 for ; Thu, 29 Oct 2026 10:26:02 -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-48e6df1e458sm554098f8f.5.2026.10.29.10.25.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= yvfqtoaSNYVjbKIYQ4IuTnEG1c9CtANUkPmP2p3NuLg=; b=guDksaQ710x29Xdt i2ek033Lew96ckC5VHNwu5ecTMDCeILicDWKBCSeAST8hxhWEjKKVxe99Sd7+mo3 xZ+HvAx1mCmOTZZdOLIfUGM3xsBm+5RQnm+8G6UIaYSTB9jYP10f3gPB+Yqz0VyI 2M5t4XP1hX/Ix8v7xSCMBIGfvV6HPZwTwbr68utdtIsTXjgt4eSDY+f/k651j5bU 5GyFRpNgJ2aLeBDcuOly8LAabcJHG6T2akXxFqTNCNeZxB9teF/sME2jiZLnrln1 JSCKYnGcX6xu/EVlPnmxzDQUm+pg9piG4oD2QcZYXJ7j7WH0ITeZUmSShjyOl3d9 veG/WA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294762; x=1793899562; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=yvfqtoaSNYVjbKIYQ4IuTnEG1c9CtANUkPmP2p3NuLg=; b=gnbiTYGNvpVzB9tio6cwB/irCSZaqtQCn8CTjS72EROTGBj53OVvsPpIiAIdBWh5WY cDrqs6MlwpVwzn/X3MqMsL4mqP1305oU6oVjsYE7vrScRQoefTNSnJhhmuHT8lx9LJ8U QeWO0VhPbebMXnZ/nsJD9PTEhv9SmTWuGrJJ197KJYj3rJyJVPqvsZbZeor4/UhArZ0u 9zPFIiMP9eEz3Qwu26UvOvlYJNy0dtxyQVAxdaIqNkpnV2p94u9P1nv/y9j0jT1PKPH/ bZ8YBtIm5I8lwflqTfHc6LB8wA1xm074/zQQlPQLmmTm3ijsYfQhWdOBvdjkgoLJiyr7 8QuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294762; x=1793899562; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yvfqtoaSNYVjbKIYQ4IuTnEG1c9CtANUkPmP2p3NuLg=; b=OKHXZVcxMQWweYk6yxJbXsHZ0m6puUqeiNEF8AWl6fFQYEv10wX/lYOUgANNlVY1qO NtMCj2ruZxupCuyFisvh2oWpdQOHfE8rgmm3OQ+klqJZLgQe2N/FhN+1xVJ8gaOgnVzz qSYarqhpTzm9aVQ5Dn20kjyPHS/hQ4RkSKYoAO8xTVJSo5T0AU9ZS0UR1I6ct4LGKwi8 zYzR3TaW/5SQ9BetcznO9yKqNpZGappwERREM+kJAPUIh+clbBRRIEHiaw6SR8WjXhsn 4Rw1eQzeSUqTgFqn0wGsdLppXP9F+ry55RvfEOQaufDesaX88TFKMK+gz3g/PlRKQdYw 1WcQ== X-Gm-Message-State: AFq9FYIhBW8CQT3El9pmc7VhpZvtDzRSg+yF2MO5wArQqMIhTbWfAAyd j6TPbUn5z6ZZeEDLVQbNZRzLkrY4muclKR/kYty6ZZ8hRH3/JBw3XiouQFSgXd411+jmbkit2x5 QFqWHft5U7g0QAYWKympJhCBp5SOePbMCLjWts1izt3ZMuxzS0vdc4n5TYj7Qff28EfqH X-Gm-Gg: AYBFou1N0asVWRmAkUoeDkDw6lJMPYLbgG3WFxHOfEEYulaWhwY8l1ETrFUSchQz3a3 rxWPmxpTbBZ/RKqcSNFO1/vl8U0gPxnIxiBwVyYMbUszxezdPUWqTrRPyWiuwdBUl/BolzR6zu0 ghIwM7qSUKzQU4/mOpo2jRxMW0rhQcgPWu5pZQkqga4k94zLWo/EmRY/4g2mCRokd7E+gRgcJQu +38CDSs7qIA1OKGarSqhWuPP821UYaIX9UX1vaX6sManaIyroMgrod8loQHKs+G0+1lRx1w6jfs Hd0piXg80yvnfkLGoCuh61nJxWzeKkVmwyA1f0KJKu3cq5PuyU7VSL8Y6lIia85AC5v4pLr74FI 6oqKdl9pN1WA8IwKWrxEqrvDZ506F7Et+4yiG/ShQzHukutCNmx4SIwRN1PaDU/qX9J2t6bCHAo uKbaVQi7ukOslq+TVFt3v6D2I4P1V9tA== X-Received: by 2002:a05:6102:3ca6:b0:7c3:2f13:d905 with SMTP id ada2fe7eead31-7d03a1f1997mr2996687137.3.1793294761468; Thu, 29 Oct 2026 10:26:01 -0700 (PDT) X-Received: by 2002:a05:6102:3ca6:b0:7c3:2f13:d905 with SMTP id ada2fe7eead31-7d03a1f1997mr2996676137.3.1793294760917; Thu, 29 Oct 2026 10:26:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 22/31] tests/tcg/mips: Group MSA int-div-mod tests Date: Thu, 29 Oct 2026 18:23:06 +0100 Message-ID: <20261029172319.25766-23-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6iN8jtEsywth 3PgS5dJtRhO2QcnViksej7zD9L3oT0+WUMlNdshKIxblcJWf0e9eoWoXuR895kdt5RQYi6yBNXw LmoH6URqt+QHuqyH//pNzliEqjoEn6+yiQghrqGu58ORkK5eKk++eWg5iiKR0vw7baU2IqmFaZh z4GaK8yYkIphIMM7+k3i/PjBN/VlEeEvXwKSrAHi3j1eyatgdOf378hWrcwq/n1ijxn6iwhKmhf 5s3iCNq6xtdU66ok1lI1z2Bib2c3b+AEbsIictenO9RuXCFN28raLgqJ6fwcbQyBITvxTdXiN19 kLRPPaLNyQi++Y71SdweHCmqaSb9vp+wZnmBwYLskEoF+TpeLVfoGgjMqTe6XrezjtKvMnNQkYh Sw7JnJ20InB1SDHiIzMttHgNP9mw+A== X-Authority-Analysis: v=2.4 cv=crYOAF4i c=1 sm=1 tr=0 ts=6ae381aa cx=c_pps a=N1BjEkVkxJi3uNfLdpvX3g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=ERQezLwtGlTA99Wl8xkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=crWF4MFLhNY0qMRaF8an:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2JesWXBYMdib P9JRPykPpT5qLpeB5CS/xoybpgdX/ZOnf/s03vco6aTulf3Y1HhvdlIt+3Fz82Dn963X8FOqLRV Uw8dL5slndtNiXdwPlrkNn+Ra5k+KM8= X-Proofpoint-GUID: kxY_D7tVUoF-JauHiXBH5gSlUziWUNKN X-Proofpoint-ORIG-GUID: kxY_D7tVUoF-JauHiXBH5gSlUziWUNKN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294861464158500 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 | 127 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 16 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 129 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..31ca37efec56 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_div_mod.c @@ -0,0 +1,127 @@ +/* + * MIPS MSA tests: Int Divide and Modulo instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Divide and Modulo", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 34ea7d1a7bf7..9c4304d49ae2 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -23,14 +23,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', @@ -77,14 +69,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index e896658e66fd..442fdf0981e1 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -48,6 +48,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index c4c9d2e77cb8..5435ba39b602 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -49,6 +49,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294906; cv=none; d=zohomail.com; s=zohoarc; b=eYUKMlWV93BkrIZqlq67R50Z/H+Mkke1C56gg8oidPPKO16bNwUzJhnYLfbbWVUINNrMGM4RK9B/5YjEw2XcrFUsVbEWxssPN7iDHMsBxlSy3mzVkhNzFAt87kndIre4rIOngP5H9Cy/dkIrYWg7EFBZ8MGoCS/a9D4Z4Nnws58= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294906; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=J60ebmhTcHy5ZsQpbuegqqz/N6Bos2KMEVYJQr4TthU=; b=PhlIbVzelwN7UTALWTxaFvKTrpSLAOWz7MQtb0uaMCt6mtqhoGlDEiXII8CCZJHIFT4LAf5eqOxjrzqa0Qua+6ZsQ5f2kh8cQigRXSK8o8wnrUA2W5JcXPV4Ev9OT0hxxy/+CRhxAnF7JxZevUQTUHRc11pilzQ4gKAxWTro9Ng= 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 1793294906003912.6254081993873; Thu, 29 Oct 2026 10:28:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTu1-0000pz-86; Thu, 29 Oct 2026 13:27:01 -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 1xMTtF-0007xk-He for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:13 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTtC-0001Ub-QN for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:12 -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 69TGD0hP535210 for ; Thu, 29 Oct 2026 17:26:09 GMT Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm8k4h1wh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:09 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-91785bd637bso53743556d6.1 for ; Thu, 29 Oct 2026 10:26:09 -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-4abe885d91esm2152595e9.0.2026.10.29.10.26.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= J60ebmhTcHy5ZsQpbuegqqz/N6Bos2KMEVYJQr4TthU=; b=PLaOdRNC51wAvNSU 7M5fz3MaoQks+vNW/DaJwC/X5NlAbFwzBojJf90utBW1QoK87MeymWcryv3SNAEM VBKiGolwPD97i8rr4DLKbj4dPPQShBI1NFLzG9LAR4CilNJ66g/+etUwbDBdoi4E QWdKwBZiSkDBgKE6vkJvlIxCmzZr8x6W7RAH7ObwL0W9ahiia8H7ScloBpPobqP2 dXcrJybvNK+Arn9iMp8Wd75OmoVfp6X5D86rws5RZCQAvIWrZWeYej/940ua8/CK 8A0U6wQiKrYtPN6NgGZl3qWpeyhZn1+FJGmo1KGJLJuEEOAaaSQkFmNOOQN8z9c4 vA6apg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294769; x=1793899569; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=J60ebmhTcHy5ZsQpbuegqqz/N6Bos2KMEVYJQr4TthU=; b=CTfqpyBG62EoiKVBMOXO7tWIk9+MQ3CfmBR+Pm0jKRANQaoihg+VWkOIIZvnudBPSP IjKFoHVbID/DsUuggq60tsIoSkfRtcBbojRfBMlnjnwQuluhE7IqucgtSnYWGTTtCvSA Qi/2NnUu8Yew1oZ4u/RRhqIT1CO0/vzLHUc/CLwHBE2VabuRH9KQdleJJ4PUJ4myjyor uirX5szsDtAKQx1Fo/6KCPkfq1Xu/Gi9UBNYBSl8mNEwSYL1fF8krCpYG3oS5XVFmYJs ypteQBf7Xt9hh1HxBDuR7wXrZnj2MBkNb+oSbUzb+/JrW2JsCeYRzxTvknyLTycx09LZ Zi7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294769; x=1793899569; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=J60ebmhTcHy5ZsQpbuegqqz/N6Bos2KMEVYJQr4TthU=; b=OsoZ4R2lVyZWWCsXptZziRcL/p6b3vjV+koGZvCGqUqq3aMyV3geuAr8Qk/NGQjQ57 xIO7/W7gDuXTFslXRKyCH5wLUSXjutATc75wiBkzLRwdu4F0fcKuQxRPXLEpb6jILrpJ civbx22zcwScqBrmbIyPJZRrXduHlMUofua4FsgRH9hVTvyAahaxvTfMW0/1eqhRCPar 2mit/X8b4dGRIabup6QRETeT0KoHmppl8/h60ObsagbajLbGXCe6Y0E/KK8MwIQyX1iW /3XCb/lPgbx0W9h0KTqak8jsrWBGjYT7WYzg6t/2txH4XhGFKYYb5H8nTgbbAal22oun dTIA== X-Gm-Message-State: AFq9FYLUyteV1AfIwIKXQWOa4CUncuDiBswmHXD5u8FbmKYjDzWFbXFK SIUO19p7KFQ+jQ3hwmcPCqnhk9JZW4fhGKGXclVsoA79M99ATmLU8EGIRvoH2mzdpg5w/TvslZw Ef1yhg02ipziWJ026SnaKJX4iAK83OGchjON3xA4VtAgD2EmYLfusl4FSb3f57jmkTBn+ X-Gm-Gg: AYBFou0/3n9xyTAQEiITFHYGCM8ECI4Wzg0hJK85mibxNexa4P9xOBCcThj5AsjZmUb CqgaMaNCjYO2nxXFojCWQkDcrdt3GyB3k87otwUE3QI5WA6KfXssHBj2zfxo62o6zY83tk6arGx ViDhTaqXa/5n+ExB+AutJXILfPmkstG3+0uf2Buwu1AZU7TJl3HPIt+Oli7NL9JGr3FJXZjVB2i Qf+Eg9+GsqtfmGBM4yGIzkyN5uG8qnziFBldJ5RarsAbjUQYg5mVD/LwDTvn8YYTCcRRQdu9mEV uX8t8wM1s+NMrutwUbFrQXi7V7P50I4N/DZEF+ao3Qqj3OoTXIGrXYhVCglWELV81JsO25AD3HL WPg+zWlL3FdYYhFs3ogk7f7QbvwIdWJRo+ejtHa2PLsUf1WhMbn86qODeuhHYHp/wqJypvmm/FD VoWBnjzLtsstexkrB6vcnr3+J/Y/JQRg== X-Received: by 2002:a05:620a:390b:b0:93e:4d60:d389 with SMTP id af79cd13be357-94408a7f8a3mr994434285a.25.1793294769084; Thu, 29 Oct 2026 10:26:09 -0700 (PDT) X-Received: by 2002:a05:620a:390b:b0:93e:4d60:d389 with SMTP id af79cd13be357-94408a7f8a3mr994430985a.25.1793294768615; Thu, 29 Oct 2026 10:26:08 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 23/31] tests/tcg/mips: Group MSA int-dot-product tests Date: Thu, 29 Oct 2026 18:23:07 +0100 Message-ID: <20261029172319.25766-24-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX9lrZ4drIS4fT P5u4EUFz0qd7aVq5M7UP3st8AzNFm53LMRYlbOXI3tTAYdhyT5GrztthkzKXvVFjWbwBwqZ1c+p zd5fmmR3r6MMu06SkA4oTywU4debF+FlqnM0ATEuiDwKolwc08nJxUOMnxp2DqUuDrxGACpOE3i dZClIC0UsZ+l5cxcQIU4KMCKksSfmFsKHy/i4fuoSeySDdvkVNjXoxG7s+r82lpFsrTJreDu4VK D0mBtEnEvXgT6rTRWE1bYblw7/U6UVVAv6duI9AmxIvpd+m8EmeVbkHuRGsU1t347zSJXIWA19B MW15dweQmZfcSFs2GQx/PENjLAbIn/4fTT2nISopSbUf5GmPwDmy7TkXZK7TTtknQkBL7WuNtWR YAxkerv9Q2q0pVYBEsoSQZHDH2G3jw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXw2reFblAVsI+ 92rUz99AxFJQ9Haq42o4zcg8UznqTu5xHCyRgs6ipf3EuwP7mDhFshjqwdyePNH4/nrLN/0u4vS I/0PGc2GQFTHZdRC7YZPTt6GYXJs44E= X-Authority-Analysis: v=2.4 cv=LuAHWXdc c=1 sm=1 tr=0 ts=6ae381b1 cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==: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=agCbhU3l45mO4j1jyEYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OIgjcC2v60KrkQgK7BGD:22 X-Proofpoint-GUID: Iqg5w40ydPdyIcRohObohuWURMTUyRn- X-Proofpoint-ORIG-GUID: Iqg5w40ydPdyIcRohObohuWURMTUyRn- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=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-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294907612154100 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 | 139 ++++++++++++++++++++++ tests/tcg/mips/meson.build | 18 --- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 141 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..004fa5f8849c --- /dev/null +++ b/tests/tcg/mips/test_msa_int_dot_product.c @@ -0,0 +1,139 @@ +/* + * MIPS MSA tests: Int Dot Product instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Dot Product", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 9c4304d49ae2..fade579a822c 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -146,22 +146,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', ] diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 442fdf0981e1..b7daa9d0f014 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -49,6 +49,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 5435ba39b602..7a0026075567 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -50,6 +50,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294846; cv=none; d=zohomail.com; s=zohoarc; b=Cf6jEMSTpDRNe5hJNWCvQDiWEuIMDO1a5HUeLqLunI5IYkVap9WrrSr9RiBxws7tusKG3B579kJ39f1A7Y9yucIavPZkpgkDQpGBMMWp6ErfAsk0cFevBAF+jvDpdMWYmj5ic1RZU+QnF4kQXCwQQglrqIm0AaKcJHZw2yzdv3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294846; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uQGJcj4fYDSURYCUE/Jx2v7bzNMyhyp4amRFAmz9cJA=; b=jpw1sTSmnY6G6GyLjoui87rcl5UU2g+cCG3E1mWfY7FK6eFo2NcVKlWvq5zLwBZlhSbaq+PtNSt3TB58C2dYMK7gj3nw1iNffhcDFPmaJAdExJbi31oDXvheRWFovbdHtZsubg0q4cMiPcjoursmsIpYcUL0fbYA6Zg3uj01/F8= 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 1793294846308435.9197423135755; Thu, 29 Oct 2026 10:27:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtw-0000VY-U8; Thu, 29 Oct 2026 13:26:57 -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 1xMTtN-0008KZ-EL for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:25 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTtL-0001VA-4m for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:21 -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 69TGDIgL1654937 for ; Thu, 29 Oct 2026 17:26:17 GMT Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm4a21srs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:17 +0000 (GMT) Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-9806756ea40so2078469241.1 for ; Thu, 29 Oct 2026 10:26:17 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6dfa0610sm479598f8f.31.2026.10.29.10.26.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uQGJcj4fYDSURYCUE/Jx2v7bzNMyhyp4amRFAmz9cJA=; b=V99AFfUB7p7nN7sr +gBR3vntbNr15Q/YQj8nfg+lPHQ2gQGYI9r5yrjmkiZjxeNDPmZA4LeQ/a6j3Yjw Ou9pc6g9TxnKds0ifpuObyjMSlHNmW00cLeoREUAO5O2ayeDuhfTpqGcyX3Skv1r xr5PBVWYFuHVYRn82Yzwek4i9Xa4Rs8O0eCZ2Iy8Wb/Smlv6CxiUDDS/Lx+FNTdg nLPAJL5RDHlShPaPpeVBS1oPxbig5oHf88VvsuZWbslyz5vq78zfTY9XTBgjxW/2 izV/NzBTmM5l0xcb6WwfzkMflr0Wbd0G8bz2aEUATfog7BCMSKKL0r8fQ3U+foXN N97+5A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294776; x=1793899576; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=uQGJcj4fYDSURYCUE/Jx2v7bzNMyhyp4amRFAmz9cJA=; b=F1/c0Xo0UlHe7poukSuX84j+XWsuwuiClua5u4TXu+skC5lS1vhpF4F2nsmmlYLz1n XaMab4yjzgXUZUq9XLGPYrdWRdcthQUtW9ZCEcqevj60nmU9IhQwIkGnwU8KjFp2n/QF pPjo2xo9CayaIm03f6BxV9E0VJ6HHTcec+8KYheh1wz36wbCoKl6afR9q9coGWVCEdFK Itbl1saB+kYQuz324WyBrjrT2NuvYm1yJNnlyVLyXkAG6bEESOWqm2IwUa86ou0uuKW9 p1W4yHWDkZMfK92vRLeGpuKJbmVM4jjzLCzXsYg4Ug0ZbjD3d+FA1/uytARQTr22NiF6 JVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294776; x=1793899576; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uQGJcj4fYDSURYCUE/Jx2v7bzNMyhyp4amRFAmz9cJA=; b=eGHu8FOpbhiClyGbuzE/KfLlzgP6KKzu/AYI4dq+MHAuqVLLBf5TyXQvEHxzvGy3Ph i78euKfLDeLZ16Sqt6AuxbylbPToH4igiav87+zdATYl3oWJ5GpYAGZyIMf+blWBeCOu ub222Gk0vePw1kIHcnBJfCsS8jb0LaRVzOI87rkle9Hsc6jfXH2LiA5sABXnmSCSZG0s TUy1DPq4bNXh3rOhV97WVSW06IPC+Ep/yygmy6eDHk3QqV4bNfrF/wM4oJK4B5O0Ochd OZ0Ff4p/OCHQAt+Z5Rm12L4zDKYPOCYTnyEygVohEfp1GvfO3AOSvfo4z0J6RaYzJmHw Rf5w== X-Gm-Message-State: AFq9FYJneVVkWlquOEZiEUgLZaRIkYhIIa4FivkfqMXMkQLzoVaTdbFQ Gut8151XcPfzu8VBuQ3Q4lTd/LSxl+0yMLBP3ntwjkS9JoDqmcPVDdxwOoTe5yr0fYaXJTa/uM2 S+bQH36H77CejCYHzjKflTbRAa6A0XW034qZZtz4s0SvxFpvud802PtGkMtyrdgtVuDq0 X-Gm-Gg: AYBFou33NvxgymU57ku5ODnYUH3LAWyV5kOKJ+ftxSA2zwFD6xKgpWVpZ+UKFqqXT3C 54PGQkMCW6kveQi6wj3ZCJwNbScQ2fmb8AzSP8tsvY605BKpLCRJaHpfCa2jOEv5Gc9XHIBl45P jjfC6vzyUS99NS8MKU/Mpcku7yuBNMcfUOcbH+F/zkgIjn5p+6eFF2B6XOdyq/u8Z5qwJhDTRrH WHj8ke9PwEk47I33vAuBjl71g/n2JRUxUq1tfm8mwrNsLzeDlAa6AHXRviDOIfLkSFnc2b6RGrO 0e8yzZdEehfxNKF0LfZSm63xtQbiH6oQM2g3o6Zjg6BAfi/7P6Ry5K6q/bhrOAlKh1MD8B9XquA 5tA8MDSpZ/rqFpK1q9giZa2DyCUmJZuyBUIDXkjpWxEixzfQaaLK2eHrPkQXxSr9Wnb2d+D+CHA iL5XggupxWGY4sfbkoJOrahomSuVi+Mw== X-Received: by 2002:a05:6102:418c:b0:7cc:56a:58d2 with SMTP id ada2fe7eead31-7d03a541676mr3187209137.31.1793294776110; Thu, 29 Oct 2026 10:26:16 -0700 (PDT) X-Received: by 2002:a05:6102:418c:b0:7cc:56a:58d2 with SMTP id ada2fe7eead31-7d03a541676mr3187193137.31.1793294775645; Thu, 29 Oct 2026 10:26:15 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 24/31] tests/tcg/mips: Group MSA int-max-min tests Date: Thu, 29 Oct 2026 18:23:08 +0100 Message-ID: <20261029172319.25766-25-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2KQ0ejyjNlhQ FJwqqZU2kWP8A4BVCd8H3PH01ZXdBqo+By9bK9CtIzPhXCc0eR8hmfEdhmHMOUoNWTSq39jP1IZ dTcmLD/51/qpdzyPg6Uh5lfb4u+bqD0IX4ytWBj1gtss7ZBvcdGJyp+RKh5jIAQYP7R+cile3Ij AT/wbhkZAMEcsKqPniFJP8PK93dE7An2QwXawueuCqf8qkujoyiMAvm/f8IK1SOwXI3J0WOaRpx t02Wtw/iUuotvRXCb9sVYY6oS38rlBH0Wjs7Z8zjUO9lybSXLj/jRpMFQ09rwIw/iEe3uRgH1RL TDT3/joIt3ZUoQ86xnGmxGzzDsdsj+ky+ilrJ1ew816976IrQKFmnPGJej3K9eac71PG3W/A5g2 Vg1frGVZa1vC+FbVqNDcH9dDECrcrVYDBhgS6RWJHe6a5wJmnpqyk1mFlRS8MxZ590q8bFcxC6d +oungXi3DMR9RSgRY+g== X-Authority-Analysis: v=2.4 cv=E8tYNqdl c=1 sm=1 tr=0 ts=6ae381b9 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=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=xSJLvnGiI23x1uoAYFQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=o1xkdb1NAhiiM49bd1HK:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX35RKbpgUUuSt 1Jn+uBHJVSwOCisCKJS3MsbRk2r0uxNqTnprtuGC+xm8gsiWFkBAvgzSyoePFYeQ3YoI6SVgXFj LobUW2jxVnApYEptPuORPQLCUCP5Lvs= X-Proofpoint-ORIG-GUID: KvaGYSx1A9syo5BDCkAmbvNbgeYTNsaL X-Proofpoint-GUID: KvaGYSx1A9syo5BDCkAmbvNbgeYTNsaL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294847132158500 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 | 175 ++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 24 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 177 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..aca44867e872 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_max_min.c @@ -0,0 +1,175 @@ +/* + * MIPS MSA tests: Int Min / Max instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Max Min", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index fade579a822c..aad18213a460 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -122,28 +122,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', ] diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index b7daa9d0f014..41a8c22234f1 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -50,6 +50,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 7a0026075567..66041e0d191c 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -51,6 +51,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294895; cv=none; d=zohomail.com; s=zohoarc; b=B6klQkpFCFWVzrtUjuJ5miQ5abdpYYWsTnG0qWKI1Lcbu8PvN8WFFQZOM6PmMbLn2aDVsrktKKyZbPgy64uP2yU7CmnJ1WAFVME9o/oiTyUTV57+obIgIDhy1PTJ96cIctBVwZTatFSH5myN9r7OizPv5S0SAKvWsf/gvnf2u2M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294895; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=G7uXDWpbg1T9uAqvfOCelPsclZEwyoGbrt7Fq+hKCZE=; b=D4GU+Az5Nm5eyNHa9rGFhtMynCFhqqoxjBKH+8AscXZGmUEaQRTK4IRj1TwLad+rEqOlhqKgcAuZ7OLRAXe+4OXPh3LdbIThe4s44QlcxVd+WrqYjm8MPo1q+PwjOfsAhNl3BY5fa2zr9tUGEXJ2QBj5YfZBd/YJL++8yvW1qUk= 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 1793294895760452.30121545629606; Thu, 29 Oct 2026 10:28:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTtz-0000fS-9U; Thu, 29 Oct 2026 13:26: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 1xMTtT-0008QZ-Ql for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:29 -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 1xMTtR-0001Vx-Pl for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:27 -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 69THDf6P182067 for ; Thu, 29 Oct 2026 17:26:24 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 4hmac0r249-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:24 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-98c88cefeb3so1858287241.3 for ; Thu, 29 Oct 2026 10:26:24 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e6df87f1asm545257f8f.14.2026.10.29.10.26.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= G7uXDWpbg1T9uAqvfOCelPsclZEwyoGbrt7Fq+hKCZE=; b=OuNWcEKB4AuEN340 ici9r7ae6/AaOaMGdXqAs7gnOyTkoGCbNW18iW7SsHRs5ZMtfG+Oc0s4LdfFf2/b 7qyi+vzoIXGPvXhdGZhCmbNL3hKYmpmhSR+aZG83mtj/Ib1ZXTX9kYBObH86bynl lcuo7OZzjoSoLDFMSdYCKQDIISW+V3d1mrrudPvoT9SISmTV1NeN7zsQInc5dDcj EEssqo4GtweXJN4s7V0mIiTM1diGaKlOKNzMW8z792Zwu3WGMP1CuDMpjuh6Gddl CooPgqI8nt/5VbnMrgxIfbpsG9utCVexr9KkUpZSrsCxTwCfyyucznzEH9O3E3p6 rn5NEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294783; x=1793899583; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=G7uXDWpbg1T9uAqvfOCelPsclZEwyoGbrt7Fq+hKCZE=; b=dioIfoQCQYINPosXkHDFsI+Vbp5AyeIsQphLLWiXbzRydlgXU3RH5ZS8Fg7iyvQP7K Lw86xoqJHIivcdzTRE2w778Kfc0Zx8b5hrOUTmKvON4aLkh3Z56AnFDQAJVVC0k3Szsf j6XuymaNvdRfSlw6vLeEVbs8kNArCTb+xSZBWlB9xlH6JZZmIHTXH9182yzOMVGNY5ZL Jfrgw7AGIxSnkUBeJorA1x87fq4/+S5+PaAoubuKkyoSpUC6mEv+pYXkPb98G8eoYVHD Z3EgzK13lGyJHBAQBP4LFVHHBB03xv4Qy3iTCipxeEiwjAEbjWKzDY53RaxX4ssVFJVG F4GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294783; x=1793899583; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=G7uXDWpbg1T9uAqvfOCelPsclZEwyoGbrt7Fq+hKCZE=; b=T4pjm/ERLAN0WLmltqQTlFD+pz1/Y1dgTMTcpGmgDNh6tl6aHVgygKsAssfT7oXIOT TOI3q+/O8th9s5XqBmkX9wGkvEceKuSIxCbG19AmY22TAiEIL1kIN2uxYvSbsgmbAzZQ rPtK5gUd7ylIIEWNXvKAEW47821KB/+7g5I70Mn8VVNiMpzMt1kklOzMFQizOI6GDgDa jQv7Hu57xDUTah7y4xpVibSuQ213gxbps2CkJAn3LnuB7ctH3FNDRfEBiMBfjsccAfIB vnIprwfuO+BX6WKMZQRppRwpruW/zzJzACpqmCU9daBr2ZX8XdbhrRLBE5R4JqOpEXjv GCpA== X-Gm-Message-State: AFq9FYLiBoCQIgTsWpBDIyv8pKASepCzlLPzDoiiZ2eQmOK6bpHAfMYl 1PP5pNXMrllioB3HNrQAk1fs9dZzCeEWJqR/qLq+zx+MUG97oRlSf8CVWiI6pQOOy+keotNQfkK lVbWYS92/ibXZY48eLk/HLhk/VCnv1aOcF/4ZVv1eiZ1j81ZeZYbxJCw4t2o0KCY1D8gQ X-Gm-Gg: AYBFou2P3RtuD1SUYbE4Jwt0acX3T487OBZ1m2VSwx5PE09oAPI6chApc1hyqdIQN1C 39wmHvwG+q52g0Dz3kdEbPdes1JMYJuw4QRwz9ziEj3RZ7oZ/VR+nRN0FldrlQOQeRWn6oBNL8/ 2rxjoybKifh1p1yVKnYIq84Nsj95nZJ80L91WAVdEnE8ZNUPDS4hICC7UJbtS2WKg6rXDVvSApt q+FYN0UfybDDXbpxdIFarXtRThEIFikxAZ+z+LnF1vPjK+DUIHKum2Mqz9ZTW2cnMVG87i3NUyM TxFUIxWNW5BDt59E1xMLXw5v7UBQUgqgrrw9A37GPQwM3k9Udph11426amtD3Jqve6L7bweSoSq DKgyBiRGQley+YCeob3grxtbskV7RPoCe80iMMSEvxPVS64kCTKQu8TGIfNvzQFQFuqTwsoMr8b QzV6dSZU5wdAIqhJ58jojfe5BuRVxEhw== X-Received: by 2002:a05:6102:c4d:b0:7b2:f3ff:6b34 with SMTP id ada2fe7eead31-7d03a1eda13mr3577139137.1.1793294783259; Thu, 29 Oct 2026 10:26:23 -0700 (PDT) X-Received: by 2002:a05:6102:c4d:b0:7b2:f3ff:6b34 with SMTP id ada2fe7eead31-7d03a1eda13mr3577117137.1.1793294782734; Thu, 29 Oct 2026 10:26:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 25/31] tests/tcg/mips: Group MSA int-multiply tests Date: Thu, 29 Oct 2026 18:23:09 +0100 Message-ID: <20261029172319.25766-26-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: bKGQZOW0qd8564H2JcHZTogEqvBwQMjM X-Proofpoint-GUID: bKGQZOW0qd8564H2JcHZTogEqvBwQMjM X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX1dScn/KVfbyD ds9w4diBYMVWJRqxpzHmUNb3H/Ukn68zkNBh6IgUMpmZT1S4Zm7aCAMGixV+ncW9PuNLcsQav/J M4k2IpczPTEtGb0tPg2k2/d+5ybfOEA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXxpq3E4SFpxIi NkQvO19B/ZfmVMXxlHToQvqzv75qH2roAyrjnQ/L07uXNY8GtHo3k0ZktqBOViTt9m04ClSAGI9 N2o4ujBxrYTTPEVIv6UfcgX6uJ7R0tzKesrUoS7MMSWe0akt4s+UlamxP46ivr+rH6F7y5bFqmv OQSuqDAlYxgIfU4b/Dy2hBBl2N4t6mbNBsqswMIpYTdZPI9p2TSZiVUCBF+kqn73xdD7CUUHRxa VYDZmW5WUMR0mNHj2shJI6INLQBlq3jmhkr3TEWTD3NTXE4mIPGZgGVBwLBPMnsPdU+/L8oYJJP wkHWp/NhbwnooIkhH8k0ROeH49Vis76Uk2FPOMQ8UBvwTT06sV+b7K6f4QAqYQWoeh/XKdC7rNT 7ZZlmoNJ5mQsipMrx32DoAbLSBqhGBRHN1p9Zyug8G8u54cpl9CTr3oQrJLd1qJPB0Dsxf++IDj lo/e3PNfF6djVtV79Sg== X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae381c0 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=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=6XanDqKFyfEqOhQtaz4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294897654154100 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 | 103 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 --- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 105 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..eb082783f51c --- /dev/null +++ b/tests/tcg/mips/test_msa_int_multiply.c @@ -0,0 +1,103 @@ +/* + * MIPS MSA tests: Int Multiply instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Multiply", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index aad18213a460..5d5bcd106ca0 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -57,18 +57,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 41a8c22234f1..ba94fb6a68ec 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -51,6 +51,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 66041e0d191c..ef30568ab5f5 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -52,6 +52,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294952; cv=none; d=zohomail.com; s=zohoarc; b=CYhVHXSjipr2PD2DO5qYQz/uCFhTo+xH+JFGKRsH3ZqSOS6/sf6AAcFHKY3y+ppoaFQ7SZ1JdlgCNHZKPAs6KWqQs9d9+hDOK9A4jNBi491B67yZddZoQmPD8LeK4tijaS+GGmr9fs19NZz6HC1fGNW8b9wV0p1De6sfLjDs9PI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294952; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2/1X2koRdv9BV1bTk7DednRFVPibMyNv4NIY/+LVGJA=; b=ergfR+M1OXml8BnLQM1gL1hG+I3wcnI4L9v0RMZO+F7Y9gQ/7cNSI0uqQD62YtWsyZu1Y0GvQEWpV97keXPeoLrM9Eqh2iJMq2tRTZHh3lP1iICRX8Q+0uoGDOf2rMO0GWCta6u9sm1rkUwAQrzXixBivqwAkKlNxYY077+SQWk= 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 17932949524271019.4874089248573; Thu, 29 Oct 2026 10:29:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTu3-0000zc-1n; Thu, 29 Oct 2026 13:27:03 -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 1xMTta-00009U-Hy for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:35 -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 1xMTtY-0001Wg-6U for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:34 -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 69TGDGGv227429 for ; Thu, 29 Oct 2026 17:26:31 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm42fjae3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:31 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93909014c85so421125085a.0 for ; Thu, 29 Oct 2026 10:26:31 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa81a896fesm88608755e9.10.2026.10.29.10.26.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 2/1X2koRdv9BV1bTk7DednRFVPibMyNv4NIY/+LVGJA=; b=OozNkgKKiXlt0KV1 IYDM22gWlprZOBpRw+/VA3XVSsGJTvvLes0aQU1x7KcbMgWCoZEOoNN3fRlRjlfo inxXplQLUELE24WGods6rB3UrgIz5tP6jE/jacNdGox6mZDwYlS1Wj0Y+Cziqllr aMg8LNjJgA0BDHgsv5TBhlHGfhS8Uv4MIjLE+ugKTtxvoQd7hIey93Ex4p7KMuDl QVEizQSt66ex+mdzU/b+yKAXgqQyCcufoiTenEcfS9tyg1THzsBLm3wB62R3ZuLW iNKlwuWr+0YcqF61xM701I+g9masddjFiEreHn++lCFfDzCu1QmMtO6FeGNqIBdb jyosOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294790; x=1793899590; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=2/1X2koRdv9BV1bTk7DednRFVPibMyNv4NIY/+LVGJA=; b=NyCJ6wLP21Uww8emLD8ctGbVjFHifGHx3hNLMIgJqj8SfK+4AK4DkCuuBEjDDHS/t/ YBXPhqcYN9RqPAS9bfz3egrsdCySi0wv/nlwjtb49ljRa9+EcBTM+7LcJBksOkUbbprn 1vvK/u/wSeF+mJgFU3idLNZCrPQCu5hWXuRGFhcZVYZtHMtjnN1YuMjmCIV8WOb5pr74 4gx9ykJAM8R1gQeZBXBkRLGsWfUe3m/WmEXUmhAT5Oc8EWXdqjDaaQwOtt68+/wrTdA2 NjYQ875XXuVwW009M7vvhNevcK94ySISrdWWRn1xiflMsCt9rRZmgguThuTUD4qEDu1G 2OiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294790; x=1793899590; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=2/1X2koRdv9BV1bTk7DednRFVPibMyNv4NIY/+LVGJA=; b=qHO0f2dj6O9rQRfI9WLtCyXB5DLQvETr5lCIZYg9xLiUluUqmjfuc9l79bVexXd1Yj LxEIGIBZPxOYbu8ge1uBRxDS7p2EDQCvNIK9EPcrvSoRtRONPxsCV5ia0eVtPWV9Gixw 2NKgq049SbKF50FQvyQPtd+KsMqG0+5u/Ppng3xntZEubL036U9fcyvTXt4hinLrK+y/ rJL6JLbAheemSYd06Igg8yYc4z1UDbWzKsM+buZeNCQEXFD2b4KJtu5s7sxfZfBzGqrd HRnlZJG2gkyCdpFYtjrGHD3w1toN0Jh5IYMIKAd3/VF1PUSdHer5OCJcvrramRfxxhck ksVA== X-Gm-Message-State: AFq9FYL+qvMrgu7z6VSF3B2t+sJm8PK2cWXc4yQ3bqjQ//R67VsEfLI1 XekvJcjpABEdHLHgTB0PoAhanMDHdhaqb5y5i283X2eyuiCveOdRpShn6cU1AWZkgDH346+RIOY 1Up6dGX/ZUGerCDBKYw4Ac1MquH7xSABW4d3XET+7gfHs9xi56GWpo6sjVYcvsg6tyWP/ X-Gm-Gg: AYBFou1wx8DiAbQ/Iv+EYHsPT5A6dfpd/bHzK/5OUOb+nfl3VpWM6dUjdXB8aO50EsJ Ip18/EKAEjeA0unV8T2/udcdZcJ4qR7gXk4KT5hEbmLnSMggawffAn8EhTTOOal+/bjZSyu5D3n fJ4FZgZHz5KbtjgTWhU8+55xzdHfEws2U6gtjW5mN8SzvWtVKr1gd3YGOxHE5UucgGTwbVzHeW7 uIce3ZqMXTVE9HjJszOmgI9jMVGaEkg9WHnBgqc2FzhhLg1dEA+GN+tfZeIH/mbqzPMXjRqDIje sSYDojwOueULoJloV+e1Xv5tK3BqTDEFnVtNfBomM++Gzj6jhQ0EFyFtVpCBGNR++FpAdlCf6Wt AK9al6xH6K9EM7NtrD1Abd+EaTb2TnO2/qPgOA+mj5BtmvwXWpB5jLMZdvPuzEqZy6F0zVzLImV h9Bj6rkVWPFhgd8sKFTN5LKzO/R6ZiVg== X-Received: by 2002:a05:620a:2849:b0:93e:5821:2c5c with SMTP id af79cd13be357-94408cf1bf6mr935084185a.60.1793294790276; Thu, 29 Oct 2026 10:26:30 -0700 (PDT) X-Received: by 2002:a05:620a:2849:b0:93e:5821:2c5c with SMTP id af79cd13be357-94408cf1bf6mr935080285a.60.1793294789786; Thu, 29 Oct 2026 10:26:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 26/31] tests/tcg/mips: Group MSA int-subtract tests Date: Thu, 29 Oct 2026 18:23:10 +0100 Message-ID: <20261029172319.25766-27-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX/DEa7qjUvAIA Rtrg46hVoetocQbgud8pC3x0e34lpJg+HBp9v6gbT67+cpAjSuxKw+EsGN7liwXscnx9Loz4PBI kkC4PIy0ZjW7IHxFE0Qr9Dd2nObYDvf5TSW7cOcKMVBTvIgfEHTQWziv62KXTf13+DenCCNoZwN +zPriLybutCveS+h4uDkbhAChk6LYg01bKea2OFMaavfmj15bcMIaziXSoAhgoKVOqxoyFSBEs3 iH2urW2j6gxZapbw3dORES0fWd2Z8UEedhGJ4SjRvVlbTFdBENPh0ozstfNhSTVukM0vgbCKNHQ +7/tWTi3CDe4ks4xiShXajhGFtT58LsJfxNijSjBpiyytR4JMajhtOQVnCogCQSymGanh4iKofJ s/Nnsrgk0SYwoBfBeByIWskBskHvjQ== X-Proofpoint-GUID: eH-DQ5RadZPE6xHELhHyBeoE2kWA313- X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6AS9KcKB5iQx kpuN8f3JobZXCCboqFN8AUE3qEvJ4vDmP2BLVSA0Azm/sz6tgmxd4I8AyL3dDr79hwaSofCBYiU XgmroQTqp9TC2r2gHcir5VqCZAPNnS8= X-Authority-Analysis: v=2.4 cv=UN9Ijyfy c=1 sm=1 tr=0 ts=6ae381c7 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=7vHfOIZg1pyXlvWAgzwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: eH-DQ5RadZPE6xHELhHyBeoE2kWA313- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294954274154100 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 | 235 +++++++++++++++++++++++++ tests/tcg/mips/meson.build | 34 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 237 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..6837731cae85 --- /dev/null +++ b/tests/tcg/mips/test_msa_int_subtract.c @@ -0,0 +1,235 @@ +/* + * MIPS MSA tests: Int Subtract instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Int Subtract", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 5d5bcd106ca0..c033e7a5500f 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -23,40 +23,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index ba94fb6a68ec..40ad347fa2ff 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -52,6 +52,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index ef30568ab5f5..cd3700e5e84b 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -53,6 +53,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294876; cv=none; d=zohomail.com; s=zohoarc; b=oIsXnhN9UZYhPSwjq51BT77SPIAJ+so6HGqYnU9xJDHBX3qU6VPmykh/m1l5JSoXopQPdMW43w3RQ0vZGlNKPPKBzkSLewFC2FnVA+ZYh5B0HWaRkYsMRvd+tbO7TqkqY1e9hidIpHMWERKlLBzlANEE3pXMnZRM9MzrVUIbdXI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294876; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gYXYpACcrE5c26X7x29VOLgKBsg0UjtqFZCUvLQ/xwc=; b=cKntx+l5j1YvPJ8vbnmAYDrnsWijqYBIr2nHqvWTD64OOOGQt+/D5hhjcqX1c9QLmEks4BdR2CSVua4IwsY3FRjG10nvtodqUSlN+ALe7q4VSA+tUmAP+5leUqrlJKEUtY0O4f2nIJRsjX8eMl+zwZQSGyhjnyBVdiCCd5Wu7dM= 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 1793294876680234.70648352910348; Thu, 29 Oct 2026 10:27:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTu0-0000ko-AC; Thu, 29 Oct 2026 13:27:00 -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 1xMTth-0000K9-An for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:45 -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 1xMTtf-0001YU-7o for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:41 -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 69TGDFXB1087083 for ; Thu, 29 Oct 2026 17:26:38 GMT Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hktmpc8k4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:38 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-93cb71b1443so499043185a.2 for ; Thu, 29 Oct 2026 10:26:38 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa80f04785sm79587115e9.4.2026.10.29.10.26.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gYXYpACcrE5c26X7x29VOLgKBsg0UjtqFZCUvLQ/xwc=; b=Alr0TlQHxDdPzeF7 dtlAEUAn7YHUGfidm9df77riAsy4MPpdP0IqbnJ2VOZvUnrVB0PW0K/HLRfve2lg BnFG9xKIssCllvw/ZsfgncZZqPBmujGuW6V5kWhiGdrhEHhVD8sCNa4w3C5B4n1R DbPnLVdvU+4FOep3KBJDsUwRwNx2osn2pOEmG7m7AK8rh6/9QcaZc8pMIedd6NKn jlS3x/8cc2dp9C61Kl77jXtYaQJZA6pmkhPQve6+R8BQc5gjqBrfCYx9HCeEgqXv AQYdIVjwHG9URU0rEI+5EdIFkBn/2ciBZHNRqnor5iQu/N8mCIz448g8/FegbLNA ZbVVqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294798; x=1793899598; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=gYXYpACcrE5c26X7x29VOLgKBsg0UjtqFZCUvLQ/xwc=; b=M2gCGUW6JY5kizHgMYtUPtMeJQWX8ZUbUaeItL4rVai5NVq03CBxp5dMZzD4y32cHe gMVeAXhPdSsdqLR/Ir0KEOUKWQQVWzIC0zp5F4vq5W1hWBn9fCDQN62TPU1Bi9TkOT8i 7mBmYrPddKyciKzH7B/tUnhf0rImf48EHKTTSpuCBgAERWtmZQg3ApgN6B7zy4FV/KN8 QVp8s2XIQWfHEICYUKROCyvhkDvhYrH8gnRoNylponE/GMtG2Lhi/bPCmm2OHRnzzanR FEk1xwzD41urC+PyDE5OmI+EGVO8vGYleMlECIWxQ7q9c0xty8ttOxiiWwA50W8/PC7S CSLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294798; x=1793899598; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gYXYpACcrE5c26X7x29VOLgKBsg0UjtqFZCUvLQ/xwc=; b=lP4M+X3oqM2ZuJc1ANBUcrk9u0oedSqP5vAbIgBW7tN41J7GaBgNS9yTGNbUBy8eQa Nb+dqdJYUYIruxJ1NqtVk7DezatdIjCVUnFcPAFWO9d1nq65q7DP88cKjWEPFb6KBgAF iPUnqe0W9hBmklvs7uBvTfK/eEoQM4C5sfptnZm2YqJ4rf6zZKue49s6vnnw+mnAzVfL xT6gPDzmY3LNthvU5bKUs7ZLKmjl6zHVaD2/xcGjCoG9tR1n1nlJ35sgWQHzVVs1f4PI 8Qo+iT0JpFt8O1Emxxj/Ve3XaCPHVu/haNDJM4CgxGLjQW62ucf7s2ggzF7hnarp/Xuo uPAw== X-Gm-Message-State: AFq9FYLrWGXeTOVqM2aceKV4L73+Lo+4tZyACeFYQOMrPXXeMwvaUd66 dytGmcE+km05RP3Yc3NMEw53RZ6dI/i2djtbZBeL9AQ1UnyEP9Va59uk0WfT1kiUhI9MdsT1OfC 2PHTR+o/aBdSph+9MqDe3KEhFeRulWr3UWbKRcfNdb1Dwc57ea83jxId3WREpH4i/xp8A X-Gm-Gg: AYBFou1qDx4/hFuilq1TdF2P1uxuZNCimprvWQP4fM2LlfI3e75Hlk2yJE8azmcgGyS +Rz4AvpmEUk/ukLyYWXqmEdQ+V+k51DY95533Bw2doc7QY/HET6zqRB7BNNJU6WRfvtawbuG6ZX FIlqDIDOAa1dFMtyFJ9qcqQ4OccNmHAtYGoMe63TIl9mLDaTPVHBnuYuwIrN6sRGOvnl5gNVLY/ eNreOYY3Beh6inzaDEn4ivEpy8vZsDJL0ZzQESjMcIfylbpg7+n1rxRleNvk3UYGRToDTfPfsD/ jjLUB0xcaf/OUbh/AkjZhjQFx/OqArEyjn/j570rK6zyuwKhzQMSIopT/URdyunZHu8sHcZPSlT n53sYtP/mnPNywVHXqJDXGrwIv6gws9OTUE5sSGLFNN6OvUYXP/dhLi79g/y0cxdOCe//TzvG1T j7gooPYMcyThDt36Jz4P6J8YldggW2ew== X-Received: by 2002:a05:620a:2724:b0:93e:c35b:2332 with SMTP id af79cd13be357-94408d39620mr881239385a.73.1793294797581; Thu, 29 Oct 2026 10:26:37 -0700 (PDT) X-Received: by 2002:a05:620a:2724:b0:93e:c35b:2332 with SMTP id af79cd13be357-94408d39620mr881235185a.73.1793294796915; Thu, 29 Oct 2026 10:26:36 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 27/31] tests/tcg/mips: Group MSA interleave tests Date: Thu, 29 Oct 2026 18:23:11 +0100 Message-ID: <20261029172319.25766-28-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX9S0jHWFj77fm GMC7ajzWVOQUS0waigLmLzzmfZDq28NAcBqXLhVEPgWP8jlZG3RrUs1MQYGRQQ86Boik0eon0hE +XD6t3afnIQuICI4Ut19d7fwkCbyxzF4yL1OMVT8ukwUe+tu2vGaF/89aksgvztkQf61eFzGuPV /0f4HrQY9cipYDQQb/x7CbybkHSnQgZPYhx1rqHs9qSBi+Ap70NZrnDLo5eDmfWaipMd0VFNzF5 sIQ2LDDFT5wlRHWYMdcgku7gkgNATyrxnFcU5R5e7yH9FMNMf+6UfP/uXXrtHrVyLDoRqIVm7+n MYZo8GoC83s+zjtflXYK2X4B03nILjblAOlAKH2p0BOVA8OIxDsB8SHDDvm38tr+cbOELPOQBeC VDI2tCMhOiUh0E4SOnovlD21NXW19Q== X-Authority-Analysis: v=2.4 cv=crYOAF4i c=1 sm=1 tr=0 ts=6ae381ce cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=znaDYlxXyk8I6BA2ZYkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX2hDjZU4N4GZi QD14KosGf1l2yynqbux6KclBgjGqTwt5BsMJnfGal18hR2ZfxPy2kgzuI5jzqLdrT/WcDyLbiCH 5yFoHilSt3MJsIClbdSAeTIXaxIkraE= X-Proofpoint-GUID: 0mHHmk45YSV95MhGYGJYhQJhHJ4SFaxM X-Proofpoint-ORIG-GUID: 0mHHmk45YSV95MhGYGJYhQJhHJ4SFaxM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294879090154100 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 | 127 +++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 16 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 129 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..bdc130ccb6ae --- /dev/null +++ b/tests/tcg/mips/test_msa_interleave.c @@ -0,0 +1,127 @@ +/* + * MIPS MSA tests: Interleave instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Interleave", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index c033e7a5500f..135e6297e4de 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -23,22 +23,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 40ad347fa2ff..67858c5a23f2 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -53,6 +53,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index cd3700e5e84b..5c0a89197089 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -54,6 +54,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294883; cv=none; d=zohomail.com; s=zohoarc; b=LjmGsRf3nrDLc/J3llpXuzQIHNrBtDrVnNj3/8QRA/6FD3Aw91pssSJY9Ie2bWvLRFMfJI9JTKInfNZlx9VU3w2007bdf7Y2tRZim3B3rb96pWKwNfKqHQKQpo/vDZX/P99ys4fex/8qABfbDzjWPI//GNl1Q93aR8C24Bjx+fg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294883; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BNti26+gFNqapEV6BAg5OVdrqhn3mTjGBqdfdS2jM1E=; b=jFqfRPb3fyAwpJd5Oe8coOSYhyw+IoToUa0+H5wB1IdgPEw5Mz0qAIGMhcqjJjfUBV3sNuCgHhttQVUA5rsOYhNgmCoU+nd0nXplqVzsaM7B4yH5G/1eZVV1YRSFGaUXLr+XUwxZU17aw0Pn4SdSvgC4YIf0GG84pLVIYKh582U= 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 1793294883003115.010066422166; Thu, 29 Oct 2026 10:28:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTu2-0000wc-Gx; Thu, 29 Oct 2026 13:27:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTtp-0000PP-GH for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:49 -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 1xMTtn-0001ab-GO for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:49 -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 69TGD1Sg535232 for ; Thu, 29 Oct 2026 17:26:46 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm8k4h273-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:46 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93f5844cb60so194974185a.0 for ; Thu, 29 Oct 2026 10:26:46 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a9ead8aa0fsm47118505e9.4.2026.10.29.10.26.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= BNti26+gFNqapEV6BAg5OVdrqhn3mTjGBqdfdS2jM1E=; b=AJZIoee8l3nT/Xa0 jZZwJ8earteg2X7g/I0X60g98L7khrI3Bk1F4diZzJkuuYJskEyiV/yRRtUkMLbf i4306lRQzm+vQ6OudrSW6OBDmxleekTThy9MMhDjXGsWiKEhuwoOllGOnz+2KAQP ooYk0S0iK9ohaBlOspVvgk/3bHGeqjRvFlqu/pmCzq25KuI3KgHDZw0ZU8SEBCVq BQuVP9T2YaMzX435TPL/FnN293kw7RJS7qHymfk3jv9mD1CF+UA4qD8HJUO/75QW xJJEWwzMdWorXMNdwMrY5nzegu0WKAytpAZQeoUJA1bESDllbVuYXoa4D5Vu5FFX 0wZYKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294806; x=1793899606; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=BNti26+gFNqapEV6BAg5OVdrqhn3mTjGBqdfdS2jM1E=; b=OirT+PtOA2fhk8ZMUDtJqsFLuoBira3xOrK/CnfhK5WiaGisp8Es0eG8EoH71v6wtM FREpgrqXXHLth3WZKfVy7G9/91rmGeJNdxkfsyC/v+MOkGCfYVzG7r5iQsXvhp4NtwZf qVKNNeUdDP51V7/fa/BiEQJwv3+LTpRFsQGpE54T2FNwWH9G/TgGeJIw0AsVAVJscsMr Eof6jaMd3dSU5zirLrvzRNa964kGZzdsc5Yu8j7WtjiR1ILtPgxLfNlRd+qlZgO2QhHu Lho8O1xYugngGP+CSXmZ2bnfKOmGcdhlDC4UX1tExTiwt+dno79GKAAFinkcQtG4OINr bXWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294806; x=1793899606; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BNti26+gFNqapEV6BAg5OVdrqhn3mTjGBqdfdS2jM1E=; b=0/XiSy82Ik4sIBZqfdjAkGwRY/SU6BgImWYlbzzBKI0EG+e+xXLSxNXvu619nPdxnk lyY82/per4pgqF9UPdPV6ucXb8qJdFhPvrcaPvQF77Jbz9n/7DPtPZnjnrz4V0XC8OIX ZnlZZmQSJYgQXYAKDbbvG86mFqntdADIDUv8f0TXfsYFLI5L4NrN4xp5/pvP3rbh3tJ/ KMTY0kMBh85tac8sKSzYESOcYpHHm9f1ZFF4/DM8BPUIRfDu0u2rR9rI0xAZVPfK8ixZ 2eiFgXQQQuScDkwtAT2eA++sL7Iumk4XalwDPTODPieYtICETXcR26Q8OYa8V5epohCh DjRQ== X-Gm-Message-State: AFq9FYJEk8x3sf4HrD9LuTZTnXFj1jamANcNmTkMFHzsWmBGY/1vtgJd H0Jg7gGQIsfNhccrNN85Gvz45WW3/yDEJvRa/3YWwSmMHnCcDifdWH9J3LnnJPjvUKnMV0ftbl2 fLeolIukLbFK9WZ007aw3WDCp/kmDpLeTyJIjLLr7xPWsrMqT/ReYwO7Y8aKIsnI0skm5 X-Gm-Gg: AYBFou37u4Fxbeop6LPWZb2QF9VGuePaL2tN2I6JMXOLZnDZjMm+fwpvTX6ebEzd7H1 ovisbRiQFPpHV/EJuUhOwKU+XHDrOISrtpRJgkxzc56aKbyHvN5l7wzK00+HPeAieX22iQUFiD1 Zq3H1V0KGbHlMrSe/O1kEN3k9tEUVLLdX7T4UYV1cmzkLe2kmN8bi3tuHN2B2IembY7DFLULMTr atUtNfl3RccNSxcorGeFeBUVaH7nBz49+mXkjolb79Tk//PbqSchpNFGWQuHXUAVx0gGZCR/GD0 g+OP+oi5sLCXNoArLQMzSDg3JA5CZxofAZhfSzVg93Bp4bkkiNCwu6jaxV+StFIbm3xjj82+Q5T nxiikv27bYcKDpCmvXtIVBY0pwLiBJttOWuGb4LdxuajdxbLaQWJ2rUnQIGHYmwGxCPqocmNURA lsWOmMJj3mE2Qh1GnsHBbZzHpVuK6bIw== X-Received: by 2002:a05:620a:2628:b0:93e:6e6a:b686 with SMTP id af79cd13be357-944133b3558mr470261285a.29.1793294805945; Thu, 29 Oct 2026 10:26:45 -0700 (PDT) X-Received: by 2002:a05:620a:2628:b0:93e:6e6a:b686 with SMTP id af79cd13be357-944133b3558mr470257885a.29.1793294805443; Thu, 29 Oct 2026 10:26:45 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 28/31] tests/tcg/mips: Group MSA logic tests Date: Thu, 29 Oct 2026 18:23:12 +0100 Message-ID: <20261029172319.25766-29-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX5GmKNCyvEhmr q6KSkT6S8nTH1ZiFCfjWS/UlJILBOR3qAT1FoQYfv71e8VH0HPgpoqHBkH4MbUCndjHzMuuy5Wu Z6JnnNU6oTONBL2ptqBc6jvZGAz7BETOQU7rPJwAYz56C+GgG6XftKkot+nW37RbOPYrDW035HJ ro2jnhGCW3TL1XM8NRMyKjjeLXTAYnHkx60s1sanSfLxPB6VPbkUfCLbaC9WTRx32KoEkn3xqyh kuzcTtMTQ3WlwkXZEclsGLgcZaSe/yFRplTe5R4WHsrsna9TOgjGdHtcYlJuElkwu0zM43Y+2x6 vpbYw9LBTd559bvsY+zXASvn/kU7t/xAzXv2Y+CsBrQ1Qnh9dvhR1DVZx6R16+JjyqKqdBrGCyt PunIBPcTrXhqUIu7CeE5xz6DDUW6nw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX1f9TKDQgEJ+K zOWtajfzsnoqXwlzT1tF+y3j1kR+1QKhBdmqhc0NUxZIJgydoxYferYUL0sFQKypv9AnRQjPhD8 p+wvAUIcj/DM1XcUjOY+VMrc0AbNToQ= X-Authority-Analysis: v=2.4 cv=LuAHWXdc c=1 sm=1 tr=0 ts=6ae381d6 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=HQ84rix33TUywbstHpkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-GUID: XGFor4_T4rBpMx9gfueJIO8uZd9_a00s X-Proofpoint-ORIG-GUID: XGFor4_T4rBpMx9gfueJIO8uZd9_a00s X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=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-2610290068 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, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294884006158500 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 | 61 +++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 5 --- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 63 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..a9c45f1e98ad --- /dev/null +++ b/tests/tcg/mips/test_msa_logic.c @@ -0,0 +1,61 @@ +/* + * MIPS MSA tests: Logic and Move instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Logic and Move", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 135e6297e4de..843031f6c0b8 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -55,9 +55,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', ] diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index 67858c5a23f2..fffbda7750ac 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -54,6 +54,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 5c0a89197089..7ba88b2aac29 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -55,6 +55,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294944; cv=none; d=zohomail.com; s=zohoarc; b=V3eHebtYDw+nBUrsS/V3OKEP0krHeokcBeIOkUkR8OA2r+2D2Iw21RO2N3ebr1vcaO8OVFkeqvk9SefrBC6uLX7vbCV2eUP0M7Bd5yyb0MTZyCIdfL1HsKxmMWrTXM9+prLvvN1pzDW8CuWNWwtJ/yFIYxmmreNw5LRIsmqOFJs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294944; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ofIjv73xhTsozr1VkUHDrrW8LDHqdmheJwwPk1ym7G8=; b=lkwqtvK51Uq8LWGfMPYB2qBxAOdk1cltpNswv/BTKF5Nvq1r758X313rdOclBjqDnjgU5RqDCwhn6cCJeGOHG6Jcs6C8vFU1V7jKfAswKmdaotTfbBY+thjYAMArTK8/UWsKioB6NHCBlUkcb8cedO7ePvJH9gQTz48aAePU4js= 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 1793294944097745.7505312575304; Thu, 29 Oct 2026 10:29:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTu4-00014V-Rt; Thu, 29 Oct 2026 13:27:04 -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 1xMTty-0000c9-8x for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:58 -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 1xMTtw-0001bB-5A for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:26:57 -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 69THDjE1182196 for ; Thu, 29 Oct 2026 17:26:54 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hmac0r274-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:26:54 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93cbf2fd504so401602885a.2 for ; Thu, 29 Oct 2026 10:26:54 -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-4aa7f3229dbsm77519005e9.1.2026.10.29.10.26.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ofIjv73xhTsozr1VkUHDrrW8LDHqdmheJwwPk1ym7G8=; b=S82X9wA56DXpmanR ZK0IzkRXS3MuCcCZn8WnEkyDq6NDi9aKp3+eWP1XyGmMM2LlqYp3de0jXlWMsm8x kSLhjKdi9quHUOQ+79Sk1RyosKY3Z77HoKxTNPUpkzBEa3iu3OjtyNBQ3AfxO7NM TMKLmn+gIR0m1Pr6A3WEj1reyIvOCoa/sg1YZQFAdcZJRYQe1Ir8OSzNHRVdXFos eVQ24wCs38f062CyLPZYadR4QRLaS3J1FuqZ32r8A7kPnTS8mq0nZCpBVnm+vtTX Yv4RT7G71+r7ho3tCVs1KQzieW98z/l/jkQ4QdKD9X79QqucbugI1XR5Uic2pVJz 8mZYyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294814; x=1793899614; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ofIjv73xhTsozr1VkUHDrrW8LDHqdmheJwwPk1ym7G8=; b=Q2WKEVcdJ1S+miGA2eAfIwYQXk/tGNLsfJiAXLXCMTfBFDZccrz6/eeborjWXW1OOs EBP/y++/RH621RJDXxRTJ6yU7XyX7++T/ZNilvAbfQ/ZIwDwLld1l4YMleCdcL+QfBfR qjAlYVDYzm/2oJAOuNX7nUcAeP7MrgCk9HakSxQ5mml8wjpQ5Mf6IqoK1JQ8MsuaJK2K MgPvy9G+iEKXpSEHzIAlVnYMdFfRn+n7z7Tpq+A6TbC+K8DPWrQmog+46O9GUBk2HcQU pckoTRESebTIEvFL5w00g/mmbbtpebeUtlvS614slSQCnx9wciEevShrSC6xLuk+ubaA 4etA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294814; x=1793899614; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ofIjv73xhTsozr1VkUHDrrW8LDHqdmheJwwPk1ym7G8=; b=B4CV+fiPKoNElJgVK7cY4sVv0RErmnEmAEA3etTGwoTuFEbb7p7r0foLMy9tVr7q6D 3uydFfZDbCIsKvW0wiE45enWCI1H4SXjiN3ricjyA50ApVF99drkAtVoJhZT8lXUN4tN WW4swJOKiQvLwTGLPP7Jv3/BTe4F9RH/x9/e/On9FOL5mG14WWL9mzeDJIxEw2opDgfL uu93zJwXCwYACkwpN/r28qap6DoA2VjtqSi6LCVyjKcJaqcbNpMJPuF7pSy6FoCcLeJ3 SPcmm+50gW6d5oyos22jir6PVM7Ks1OFdYfTBzz8dAriL4uoEgE5N1Am+quVa4aWl8+r XT7w== X-Gm-Message-State: AFq9FYKVVcrGIa809E/yTi911mSVGSWh7OUncqKWROcqYtVdoQedq2Zu Xpy/M9x2UREhcRM8j8G+seNEcHx6OVoEUNiMoFLa4+qNWmr5Y2ts+IrJGcygsVO+VLOzk7degRa p4GgtUkXWA0UJ7jlc2bDlY8ymrXtnrkpMQ/BYneJ4k9msLZD+sy7ZUTycAYabUgwcGP0K X-Gm-Gg: AYBFou1o7q9oLfpjoTrDBYJJEN2LXVygYtOBOfBhQ3YEOU/VFhEoSyAlK1vy6rXhOrZ RYyqswQVVCTmDMZdH6Q1ggV+sqhpsIHyLVh1y0taD+h27ObIa7d1iX3vbO9LczIWiPzA+RW4SnR WUas1FlVR5U66mGGg4S+2/FYxAAt7WiAu6hMYXI3WYQIbm42xipuskpdcmBfCMVDTybitxxPBD5 Jb663lVvfUcq9sFZcrv/UGzSOgBg54e+Y+e6lwK+ZHfNoNbdbkRRZ/nxY9ZfIPDFKL5c51iwWVw U489jix847dNKRjFN5/LdX0u3VxsVDjadLjkVxfiz/6he+eDGcyLDakL/3SaooevriSd+uxsgnw tqi6uOU/LJFUaG1oGtL1uXlxuHLzq4qEPLkUNMZfn7ZN2Y0d4/c6Vq7xL1ViZutecgWj7WRKljS Uty3zUsdol6YOAVzgVfoZRlVUSpfiUlQ== X-Received: by 2002:a05:620a:2a14:b0:936:e18d:763d with SMTP id af79cd13be357-9440896dcedmr971521585a.8.1793294813510; Thu, 29 Oct 2026 10:26:53 -0700 (PDT) X-Received: by 2002:a05:620a:2a14:b0:936:e18d:763d with SMTP id af79cd13be357-9440896dcedmr971518185a.8.1793294813137; Thu, 29 Oct 2026 10:26:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 29/31] tests/tcg/mips: Group MSA pack tests Date: Thu, 29 Oct 2026 18:23:13 +0100 Message-ID: <20261029172319.25766-30-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: ZlZZD3wwJx2YsHStR_lJKFwLI1hj3n0s X-Proofpoint-GUID: ZlZZD3wwJx2YsHStR_lJKFwLI1hj3n0s X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX3aYuYIEm2umI NX2utfq6waDjij9803wckweO2rVhmGWdrzvehcw1uqhPr8c5Mym7uVITIGlbpknucg2T+Jgpq3t 4w1HWhHJ9lP/vuO7o47bOD0OPLRt/sA= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX6VbS59PVdTP6 ViS38bI39PjMFxjaumAjrtpQp36BW+qDGGHqY3KMoIIVLETomPZtKKAH1tzu8H46lp/YwkM3C0K 0MaVHhwsFqaxGotW6v6UtE50iKVgUazxG3rh+g7wRRVsBY9IlVGtIAIBD7dGy1YZdti1mntJYXz s5CUKHb/RL8MnAkHnuJwaOwRROn99qjT8ckVPhdHC2/PcBbN9sK5aC7GH+orA0BRvt1vB8K4NRM ld9Ojiw5xM4lcR4i89bBfz5GwRa0UMoHQl+QFQJViGIOKVROTpPt669lqLBFwrVY8atFYeuvIPQ j3fZ+CypdbQy26gxfBawWG9Ck/uBRZs85vLRCQIAynt92dzfqkP35BS5z7Cap29+ZpCc5mT4+mM Q6xN5qL19DKliGuDLFDvbN1ltbktdKMhWvuC1fX5dQsl2l8OYdkC33c0lFOwOmiPyXDK9DOa0LZ VK4wyYxzvaRIlVmxUDA== X-Authority-Analysis: v=2.4 cv=I6/w19gg c=1 sm=1 tr=0 ts=6ae381de cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=sidiPtGJcMptBKdm-6cA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 spamscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294944960158500 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 | 103 +++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 12 ---- tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 4 files changed, 105 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..67d286d45788 --- /dev/null +++ b/tests/tcg/mips/test_msa_pack.c @@ -0,0 +1,103 @@ +/* + * MIPS MSA tests: Pack instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Pack", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 843031f6c0b8..791ac5109607 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -23,18 +23,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', diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index fffbda7750ac..f18ff8153f2d 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -55,6 +55,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 foreach src: tests_mips_msa + tests_mips_msa_groups diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index 7ba88b2aac29..277ece3e306a 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -56,6 +56,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 foreach src: tests_mips_msa + tests_mips_msa_groups --=20 2.55.0 From nobody Mon Nov 23 04:26:39 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=1793294943; cv=none; d=zohomail.com; s=zohoarc; b=SIIiG+Q4lyde3aJtJsprhGx20YucBJgMJgD+FmsLNLSfiLV2dfAip9Ll7CeviW1u9FTnJpBUaIsqvtLMqvbvLnGtLkNOjRkUNQ3hgdiUFxQjwL+QJomh7vRagJeWWK+jR1hZ45s5SDXRUfuJN6bs+4CEwXKZw3zrOvacsHRYmvA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294943; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=gOoaG/Ufm3nfvKL/zUgM2uy5Um2xQ3o/2NlAl2edL9g=; b=PlMhGX4Ry7K7FZ0OWlDVKLcEdjSQ6sZh18z3zdFC3GKLOrKlYO+wxjfHksnhcBDYDoafaisWf/d1dHwO7mybxafMRPm1n2vsX8NWWvXZ6eViiMmReQoxXtIvQo7aWkyUyDQwMbb170vERuKZtY5UgL0cZmQajn0ebtwN0Tc2jHQ= 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 1793294943380881.3746953464448; Thu, 29 Oct 2026 10:29:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTuD-0001ZX-Oo; Thu, 29 Oct 2026 13:27:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMTu5-0001Cd-UB for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:27:06 -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 1xMTu3-0001bW-PQ for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:27:05 -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 69TGDIY11654926 for ; Thu, 29 Oct 2026 17:27:02 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm4a21sum-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:27:01 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93f20addba1so430870185a.1 for ; Thu, 29 Oct 2026 10:27:01 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4aa80f047bfsm79699045e9.3.2026.10.29.10.26.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= gOoaG/Ufm3nfvKL/zUgM2uy5Um2xQ3o/2NlAl2edL9g=; b=V4GMrkYty6o6kpe0 9W+ag51heSqUbMTgnXEhbmZo0Lmn1XQa80fu0MPBtB9IeqxGRS+DR7MCztqoIhK/ igdl8w6chxSmPwxvboycOtHtGpuc/QWldzkYgocJ4Lpqu/nh3Qd7f3X5jSfM5KqY Va6/MOGDPp3JzBhBy34A8O3g14016WU7KiDlErXqninonISSS68Tp9yRr4TpaqnY bakb7wal3yRSlDANIV9PGo5OGZmuZ+7OPcK7xCxeKF43vsPcIGT4HmXvBMlU+6Fs dCK9JHDQimPi4Km+tl31IylyTe3TiO8o4ZkMvSUl1aJ/AOtBrxWoQEsWI64tL3pT qutiJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294821; x=1793899621; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=gOoaG/Ufm3nfvKL/zUgM2uy5Um2xQ3o/2NlAl2edL9g=; b=JzndpGNFGnVaWK3bCYZjJaL/ndTIYmfL4CYtVMFcIZwoaWekmhdpLGJ2G3hxbocOmt 23yRnSJzxwr1xGClY3w4JeISJURP7+DFWX3EnKnO+r0XsqlEN7XN7ECT66m++CGkkvSJ NH9L5OW0wMWWTdh1Nqk9hWe/08KrPS02Lxo9FL1HC0f8hbzElxuwr7J418Q4VIffFSIB WaMslDPgzHEIaGz2Rk6RCeV3rGe/SOdyOdPQuzAcoFcrOuKT6DVbqZo1pIiLzA2RNhyU iJK4jcd3zGdiql1/FgE9Tb8YCoyfbnY4HZdLhnYGIHnZjCX25gjQ8iRaj0uX9gDn5DAA EPoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294821; x=1793899621; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gOoaG/Ufm3nfvKL/zUgM2uy5Um2xQ3o/2NlAl2edL9g=; b=s3Jvdx0p4NoC5KJDOzdh208ZDrtu3DvEXfoaMJZ6YcZuVVeUBFtHv5/lJc252YuWAN TTiBy5ILnCO/dJ5pyZHNTE4cxcG8Hag70EmZql4sF6AvWJzrndWE3Ztvsxri9e/M91vx jokU8iXAdrcmyIMUKM8CtpaF2TyfaV0cs1bYHJ99qTQx6q7BddMP9Dak6BPoBQgllsp/ /fCkhzi6OD3uTbyzYcpeC8BIuwJngIzNr9O2YkNyk+UtV8oba0VGwol6BRwgT2+G/9PO E+srPGtHzl+oF8Eqh1QhQ4Q1CAVEBl8NDW3T7VrAXPR3yQ9+izUUyFt3qCrYj7K6737Z DSFQ== X-Gm-Message-State: AFq9FYJNv2oo1WUbkEeFGSV9WC0yKFx9kf0+ggGVetsMS07oAKULTyFD KoXuA98pq44g9sk9YYy6FFHPpq3L7ADAFWghPHGzivetEPYETEvQI4Xa58p/2lDsMgTwkRhkRoL tMHr0FMahoFajZ69IorK9IQxQuO6jFg5eMdSJwi91m0KhRD5xoF4GM5VHZQs+hKtZx+Tw X-Gm-Gg: AYBFou1bBP063EiuiPe+9qo7n6R/cLIVbQ+D2JOdqeBYrfzgsCWUZTshqiAKl/i9K1F XRbTGB93SSdoGgudQQJO/PbPz7Bn7OVIWnzo7yiFuMQXFmN/nqaxEDxgsGgvKhqa4+xG7uzhS/j ztXQM2itJ8xUrUt0oegnW5xBYD9GuzwX2FS4jzDpqZX35fuJ1n056pdpF0Jp3vd2mT63Vh95NM+ YF7d00qyHSq/lIrODDFwn1w5YJYgP576YUgvJmrwuSh1Dxw0uOuQln5hnwF98qYby6DPY2/Gc6d 09f631bmgA1T5d038dRFus6X92Z0jbuChP1ufXpmkRXy1SgaBkFUQBytk45rUd6J1a0znWJL5St 40dTK/RGgzKVhi/9nwRcOA4CPrl9xosZGVEOCU9kb7YHvL6sGa/2sNX091LKdEWXbSrZ35VtiMb bvU+1sfKUQVppz3C8btwcCqRwGoDwhaQ== X-Received: by 2002:a05:620a:1d03:b0:943:faab:aabe with SMTP id af79cd13be357-94408d43a71mr867837985a.62.1793294820677; Thu, 29 Oct 2026 10:27:00 -0700 (PDT) X-Received: by 2002:a05:620a:1d03:b0:943:faab:aabe with SMTP id af79cd13be357-94408d43a71mr867835085a.62.1793294820259; Thu, 29 Oct 2026 10:27:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 30/31] tests/tcg/mips: Group MSA shift tests Date: Thu, 29 Oct 2026 18:23:14 +0100 Message-ID: <20261029172319.25766-31-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXwkjKSy9x+UKz iCSlQetHwYzhrtQvTsoCjVUUKCFixbKycK8lUD2eEeABOmIGCDycdby15P94uWTmMlQXmSbeQfd Sc+Jyu1f+Flu2gs0ibY7d470BilEjckjiOWZQrmexO0mkZ1l0eQOcaiNWIkzTS+FYbogX4oeepI ylq/CGNLKQlQX7W4nIp+oB0XbgWjQ+fTCeyNWHPDagAmjL7XEQ1b4qOJQV4zBcNiABwQbGQ+9YN PWNdGEL19TMqcXdRQDhrQFJHY5fP+dEVtzv9MdxSlTT+JYMIbPfqxzpReG9L0JOoDjO67oSkRfH Uu7kRuXOnpMihXSKNby4zxoh7lv4b64lxuBZdBGnHuWa3cdvHyLOg/SMvg+uCaS/rvDAckIMVzI zJit9JSqMeNAx2G+X+EAcIBVH8uDv5LNNuSHtsYp0Flb2GnTGJhTbVgHyPtaSXAp7ssmG4TZ4ne Ag36rRYPQ9KdGDlRXhw== X-Authority-Analysis: v=2.4 cv=E8tYNqdl c=1 sm=1 tr=0 ts=6ae381e5 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=4pOn1ErT82C8PKv0Oc8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX8hlhC9LV4lYs uE5kXvAf7lAn4NQ2CGw7cGAkC2zO5AlY+58cK3Z0QPhtqIOYDWJR2PZCriz2fr+OD5lkM37ZzBa js7oM1mLWiTFRG4nPhWSZd9TyzS05qM= X-Proofpoint-ORIG-GUID: 4jXKJMtK_DZaj3Azxrs4NjlKcunjZtN6 X-Proofpoint-GUID: 4jXKJMtK_DZaj3Azxrs4NjlKcunjZtN6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294944961158500 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 | 151 ++++++++++++++++++++++++++++++++ tests/tcg/mips/meson.build | 23 ----- tests/tcg/mips64/meson.build | 4 +- tests/tcg/mipsel/meson.build | 4 +- 4 files changed, 157 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..22855472f068 --- /dev/null +++ b/tests/tcg/mips/test_msa_shift.c @@ -0,0 +1,151 @@ +/* + * MIPS MSA tests: Shift instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#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) +{ + int fail =3D 0; + unsigned i; + + printf("TAP version 14\n" + "1..%u\n", + (unsigned)(sizeof(msa_tests) / sizeof(msa_tests[0]))); + for (i =3D 0; i < sizeof(msa_tests) / sizeof(msa_tests[0]); i++) { + int r =3D msa_tests[i].fn(); + + printf("%s %u - MSA %s %s\n", r ? "not ok" : "ok", i + 1, + "Shift", msa_tests[i].name); + fail |=3D r; + } + + return fail ? 1 : 0; +} diff --git a/tests/tcg/mips/meson.build b/tests/tcg/mips/meson.build index 791ac5109607..feebcc30d6a9 100644 --- a/tests/tcg/mips/meson.build +++ b/tests/tcg/mips/meson.build @@ -21,26 +21,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 f18ff8153f2d..d1d4bf6b5a24 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -56,13 +56,15 @@ 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 -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 277ece3e306a..fcf764ea8df6 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -57,14 +57,16 @@ 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 -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:39 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=1793294875; cv=none; d=zohomail.com; s=zohoarc; b=X4HmpVnmGe+ooIQNOwjJ5XQoqwRG1+T7glyIhOX6NZs004z2Q64SiXU6L9sap2bNuTybEOxviyzWBkSkl9q0pkzIY/pyzRXq4bqVP45503L03UAydEjYFaGQdqouyJB6Drqlynh/Z+bqO8jfsFnsgoAeEsx0y87MGge7Yo/PsTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1793294875; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=i5uE0eFki2i6qSrdLfpOixMmCN+bNctm+O5ds23TV1M=; b=Q7tFVg8sW/XtxuFzDhkH3V+jzYNgRn/Vv+KrSZfTr8ocujCOtJToXI33i8WOosm/ooZR72fFzl8uhZWce6Bji4cZLkdNqr5Yc2WmHzDh1TKnjV7FgLbOLWKuRugIfoikoOfxyNFRwA4rUd+4afdaZS4hnaYxAaadoHhPU1C7fM4= 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 1793294875359524.0005152768399; Thu, 29 Oct 2026 10:27:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xMTuG-0001jj-VY; Thu, 29 Oct 2026 13:27:17 -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 1xMTuD-0001aJ-4v for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:27:13 -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 1xMTuA-0001br-GL for qemu-devel@nongnu.org; Thu, 29 Oct 2026 13:27:12 -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 69TGDJp71654959 for ; Thu, 29 Oct 2026 17:27:09 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hm4a21sv6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 29 Oct 2026 17:27:09 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93ecdc701a2so282184385a.3 for ; Thu, 29 Oct 2026 10:27:08 -0700 (PDT) Received: from localhost.localdomain (82-67-153-177.subs.proxad.net. [82.67.153.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4abebe33e79sm1694665e9.2.2026.10.29.10.27.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 29 Oct 2026 10:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= i5uE0eFki2i6qSrdLfpOixMmCN+bNctm+O5ds23TV1M=; b=ph372eMOlI3RIvJm ZFxSGLmRihjEzjBTfBAFyMyEn5Si/Yg08aiO6fhlfZSyxifRQuLqeuLb6XlXCSxW rjownaO2epy2lmXGUMnHaNZWB65xSO4zpKkK92p2q9TpQD382o82OHjP9Y3gnWx/ y7mTQRxpYzttzL0GiyrS6BM3QNg2Hv1xzpvNrfrhG9+mVW4LydoPcGGHduKGJUc2 vNXOYVqPGGL4h5rdiJluyDpwgeTzPpJLb7AMppFt1zWbcbwd8KozUPGPDmhVnBeD ZDkYuWw7jjVimxdGlUwCrJTAhqHrGB++7qnb+ZkOxyHqZRWkbjZjd0I/gt7ovCSN 5HhXMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1793294828; x=1793899628; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=i5uE0eFki2i6qSrdLfpOixMmCN+bNctm+O5ds23TV1M=; b=ZxthFZaHdbeiWymBspxN+yjFonbQULEsk9t5kjME9ArqXslqHw014bV0MR1mMsE+Ww /O8mPLq7KNLlJfPyqjIUz0xw7jVC9tdeEZ+ZFV1s0/GHxIIFh1/qTaKucPmjS+WJM7qE +pS3SAT6VBUhUyoDHjWIem6DfZS1BIgFz3bA4z39wIJZzqr/24xgRDn/r2QpROMXXjTt 8ZTDk/0JMrfD84zLdArOSdUcE7/p53AFkxD4oJ/tPM71ViunFIWXmfZHWxGDcm4calNg WFkSM6ycmUND/YBMPBk+nCwE5jhoABwIJfLzp0/N8MH0GuFwF9llk9/8eNx1cJYopZan ppfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793294828; x=1793899628; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=i5uE0eFki2i6qSrdLfpOixMmCN+bNctm+O5ds23TV1M=; b=fhYRJ5iUZ+vRPhux7EwZoD46Xuw9fW1Nzd45FTGs8Kstmlq1MnZIzbpqgGJZ7Bgw6I XqFB6R74/6ZtKSNO3Th/Tqxdh1A3/H74rmG2/RUQRpQXNI7QoP7k6IJmdi7WpJgn8l/j Xf3U2tDkvzu8NlHTjSa26wzDMW01z1gCj/oGlZopWvsqCtkG0XpqzAO0r3o7ei7jl/UD Wuu71kdh46IjnAu4wSVTZ6mclEdR4Qt6leIQXrsbVrxQ6wSjR91p9RseNAizINOZMGFL mjO7sA35WP62TuSWdwG6OcaRB5P/ROEAPk7/qxcD4K28bcWr/ZbIBvHPevvvjxeBeTvQ shJA== X-Gm-Message-State: AFq9FYLSBQItvJpUogPQdNZco9PLW70R4JKTDXIvrNirdkdbUJoof/Cl wF8wjiJrkJizQxZ6VLigwZKNSp9TJgdqBe9QJ5hwiySz0qss0zWj++567VvQ49d4VPH/h0shR6+ k6e4LBDSo9k6YEQFtaEaCgOK9MowKiZHQP+K4tNiKhTd9Kot2szqVJpGpU24nWaRNYBFu X-Gm-Gg: AYBFou2fBWWDw9PGqsmIR4MOR11HIX3FXmtFPRps2OgvJXGNQHde/jcgY532EXp9Mg7 8ZXUH42+dcBFq5fVBWFCjiDfSWQsvhynT9DaOQPWjsgD9CiwI9B3Puj//CU87JFKqIY2zmpLxZE udOrOb/RdEePWipyLRQvJEJmJwqBA1BfZiSN++vg0NjEPXk1Xq7BCs2QXRGNwBZ5WAzg1CzmsRM 3XGSC66irwzbmugZa8zOOj7hexnmRunoopD3KxrQcvRRfyKzndy6a99Oarqn5nDTpXOqZRiTQ9Y wNUqPXt18orF+0c34ZHM5XMOYrrrH8/gYc+ATKt5PfpCXelmYakE+nEar9Smo60sos52yMr5pAf ZWQ3680rzY3GmU7L2mxI8bSryPncvZ7+7ytrdF8zbF7Brasof8M/qGDKA9BPIK0+BpR8TOuhCK1 vT70uZ6dOnyscYZdM= X-Received: by 2002:a05:620a:4106:b0:93f:211b:a7a with SMTP id af79cd13be357-94408a72577mr963926185a.29.1793294827950; Thu, 29 Oct 2026 10:27:07 -0700 (PDT) X-Received: by 2002:a05:620a:4106:b0:93f:211b:a7a with SMTP id af79cd13be357-94408a72577mr963919685a.29.1793294827339; Thu, 29 Oct 2026 10:27:07 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Aurelien Jarno Subject: [PATCH v2 31/31] tests/tcg/mips: Add MSA load/store tests Date: Thu, 29 Oct 2026 18:23:15 +0100 Message-ID: <20261029172319.25766-32-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261029172319.25766-1-philmd@oss.qualcomm.com> References: <20261029172319.25766-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: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfX9nAvduCFyC09 bRCq1UM1znbaYqOZJ2j1uzPS9HbL+hRQMRwjduOgSCTIoi276siN/IC0OlEjHYdQOcmnLR23uQJ JsucFEiQkSI8b9WsQ/rdfpSc6ZMgWzzmdEdtonZBjfq41xbASm1n6TYRDHhwiBr5VrWI1+ub5gk MdWkEAkxhbMMA0eUtb+4Bef7WRbMpnhiFmUclM11Hf5TMqM40vjiD30hM9Z8uMbFL7q+lzopkyQ SIj+RYIlmczzb7XsxtCN7+baoMMIJeW3iJ/dfyJtpVYAAV3xBL69pBggoLgLLzktGA5JD7HkkTq cZR13XQ3aUevRG7k50PwDaxw3+gdPWcf1Xh7VOdLCUkjM6HbjyvW/IY11g2GjfJa5iwywJ4KgfL SFrCikVNRM3FqUKGiERUUw2qXdDlZbz7hvvm8E7S6sp8FyUr9b8vV7rIGN1P9UVBnPTdfWuxK7p 8zdzJSeXxzcPAPyHQag== X-Authority-Analysis: v=2.4 cv=E8tYNqdl c=1 sm=1 tr=0 ts=6ae381ed cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=nz36NW0qrpeEijYxj/H2Ew==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=sM_VlAZ975ao-oRoPoUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDI5MDA2OCBTYWx0ZWRfXzZMJp3p6J3jW UWawhE21sP8jGp/CwaMhdBbHC7PJJ1dBy5bBWEybG1CL2NxtN5POKrzi3iu45GSrvXgnyHYsTUN XdN8NrHQo4WQVAiIAPOe+tXdTrapgck= X-Proofpoint-ORIG-GUID: 2pt5aAmtivH72_jSvUkrE4jemnZZJG3b X-Proofpoint-GUID: 2pt5aAmtivH72_jSvUkrE4jemnZZJG3b X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-29_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610290068 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.168.131; envelope-from=philmd@oss.qualcomm.com; helo=mx0a-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1793294875891158500 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 | 166 +++++++++++++++++++++++++++ tests/tcg/mips64/meson.build | 1 + tests/tcg/mipsel/meson.build | 1 + 3 files changed, 168 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..50e60bb44ff5 --- /dev/null +++ b/tests/tcg/mips/test_msa_load_store.c @@ -0,0 +1,166 @@ +/* + * MIPS MSA tests: Load / Store instructions + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include +#include +#include +#include +#include +#include + +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; + bool success =3D true; + + 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; + } + + printf("TAP version 14\n" + "1..%zu\n", + sizeof(formats) / sizeof(formats[0])); + 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"); + + printf("%s %zu - MSA ld/st.%s\n", passed ? "ok" : "not ok", + format_index + 1, formats[format_index].name); + success &=3D passed; + } + + if (munmap(source_mapping, mapping_bytes) !=3D 0 || + munmap(destination_mapping, mapping_bytes) !=3D 0) { + perror("munmap"); + return 1; + } + return success ? 0 : 1; +} diff --git a/tests/tcg/mips64/meson.build b/tests/tcg/mips64/meson.build index d1d4bf6b5a24..f2e507a47d88 100644 --- a/tests/tcg/mips64/meson.build +++ b/tests/tcg/mips64/meson.build @@ -54,6 +54,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', diff --git a/tests/tcg/mipsel/meson.build b/tests/tcg/mipsel/meson.build index fcf764ea8df6..f2642e1b20f8 100644 --- a/tests/tcg/mipsel/meson.build +++ b/tests/tcg/mipsel/meson.build @@ -55,6 +55,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