From patchwork Thu Jun 27 23:43:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 1953626 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=LYKpeoxm; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W9FXW0g0Jz20Xf for ; Fri, 28 Jun 2024 09:44:27 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A69A38323E2 for ; Thu, 27 Jun 2024 23:44:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A69A38323E2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719531865; bh=8A8rAczTp8NAwkzj2pILBdigak+PxlLWUmpMFYLUnEo=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=LYKpeoxmyAZc077RQYWF1GLWOzo8MvcKHybyaeO10BLC7rP/zgP/tt7K7djkcLSE9 Znfogj0kMyvbjj/n3uYqqaohxMRR5/AkKbz/Jm3OvMUoIE7QXsBFyfo6sIvMW0vQrq AVdoin505sSonji85PKKtFi58q58MZ7ckDYin1xk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by sourceware.org (Postfix) with ESMTPS id CE2C838432E1; Thu, 27 Jun 2024 23:43:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE2C838432E1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CE2C838432E1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719531835; cv=none; b=fbiPsTLYsIH/Clr4g+7JPZ2nsUH66EBTzTOoBuCOxGouPN1UEMEQ/raAZMxGdjoOabDe78z67USyqUNE1W/nX4fpcVdscxXTUn6HNxulCV3YOqdHrNFWE5BkZgG9CIaUxCEp1xIjJFp5P8I8yeKPyS7pbKEbpT27V2RBKGS8mew= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719531835; c=relaxed/simple; bh=QthqvgP1cM52St19gOPpFz5mRfT/r6t/x6SIe/2pbOk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Cclxqk3XBUm+JwPQqWGZsarWWy8u9o7V1wv++AMKhaDselK2iaR4SbKEfRJm0hZwXyh9u9ssQq6NwxMHqDIfl8ed4drsg54j6VlijWvPCpm1XSU1V8k+RzgGXYr6ZYApMgVr95ESMFV9b0bDdzwauGo91GKCgvwAXT98QsEqNV0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-70683d96d0eso54008b3a.0; Thu, 27 Jun 2024 16:43:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719531832; x=1720136632; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8A8rAczTp8NAwkzj2pILBdigak+PxlLWUmpMFYLUnEo=; b=ScjY1sx9eDVOgmd+0W6+dGHGvWD/TTvZxgKLVFymgBmiit9Ud1qDHzKjLYbTg1biEu 8sFsGOafAW5NKAW3yug3OCyu4O+4wcxwkRoDT8BmzMJ59/922CQ5gNLKKf7GCdM7Wtor sU/8XATvx9R2C1PC1DsTQ0IPlOQ3DNpI2tXPC0/FrJTrCK1+pbtoKSLH5WwGrHuEnOh1 JwEyGLsJCnCytMcWK9sxRVKq+kHw6s3zuQgSwRuu/lFOIkGDry2XY8VO6uVYaobjiNyN 6U1//gcNGd7qx/u1JpWNGnj98/YCjKYVjSkpDj6u0A/KcLpuO90IiH7kdvr6VmE20Pkl Jv+A== X-Gm-Message-State: AOJu0YwwC9/KlLacCM3d1jzxeqFAl4l/VDajohUzt116TAaVDdieSLDw FVzEKetG2xEukpR81XFICzr7gEKgQ1ZATNbUr5Woh0MxVXdMAqbdxfZbTnXv X-Google-Smtp-Source: AGHT+IFOxtnECy91LAGHLv7BRGzkMEzssXw8AQ81BVLyP1QZWqhGp55SVBFqrhiLwnhK9vrP+VVm6Q== X-Received: by 2002:a05:6a20:be14:b0:1be:ca69:e4ba with SMTP id adf61e73a8af0-1beca69e5edmr3922260637.28.1719531832366; Thu, 27 Jun 2024 16:43:52 -0700 (PDT) Received: from localhost.localdomain ([194.169.55.179]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac1549f2esm3347185ad.164.2024.06.27.16.43.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 27 Jun 2024 16:43:52 -0700 (PDT) From: YunQiang Su To: gcc-patches@gcc.gnu.org Cc: YunQiang Su Subject: [PATCH] Testsuite/MIPS: Fix msa.c: test7_v2f64, test7_v4f32, test43_v2i64 Date: Fri, 28 Jun 2024 07:43:40 +0800 Message-Id: <20240627234340.74458-1-syq@gcc.gnu.org> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org BNEGI.W/D are used for test7_v2f64 and test7_v4f32 now. It is an improvment since that we can save a instruction. ILVR.D is used for test43_v2i64 now, instead of INSVE.D. gcc/testsuite gcc.target/mips/msa.c: Fix test7_v2f64, test7_v4f32 and test43_v2i64. --- gcc/testsuite/gcc.target/mips/msa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/mips/msa.c b/gcc/testsuite/gcc.target/mips/msa.c index b741f35556f..62d0606dfef 100644 --- a/gcc/testsuite/gcc.target/mips/msa.c +++ b/gcc/testsuite/gcc.target/mips/msa.c @@ -90,8 +90,8 @@ /* { dg-final { scan-assembler-times "test7_v8u16:.*subv.h.*test7_v8u16" 1 } } */ /* { dg-final { scan-assembler-times "test7_v4u32:.*subv.w.*test7_v4u32" 1 } } */ /* { dg-final { scan-assembler-times "test7_v2u64:.*subv.d.*test7_v2u64" 1 } } */ -/* { dg-final { scan-assembler-times "test7_v4f32:.*fsub.w.*test7_v4f32" 1 } } */ -/* { dg-final { scan-assembler-times "test7_v2f64:.*fsub.d.*test7_v2f64" 1 } } */ +/* { dg-final { scan-assembler-times "test7_v4f32:.*bnegi.w.*test7_v4f32" 1 } } */ +/* { dg-final { scan-assembler-times "test7_v2f64:.*bnegi.d.*test7_v2f64" 1 } } */ /* { dg-final { scan-assembler-times "test8_v16i8:.*xor.v.*test8_v16i8" 1 } } */ /* { dg-final { scan-assembler-times "test8_v8i16:.*xor.v.*test8_v8i16" 1 } } */ /* { dg-final { scan-assembler-times "test8_v4i32:.*xor.v.*test8_v4i32" 1 } } */ @@ -401,7 +401,7 @@ /* { dg-final { scan-assembler-times "test43_v16i8:.*insve.b.*test43_v16i8" 1 } } */ /* { dg-final { scan-assembler-times "test43_v8i16:.*insve.h.*test43_v8i16" 1 } } */ /* { dg-final { scan-assembler-times "test43_v4i32:.*insve.w.*test43_v4i32" 1 } } */ -/* { dg-final { scan-assembler-times "test43_v2i64:.*insve.d.*test43_v2i64" 1 } } */ +/* { dg-final { scan-assembler-times "test43_v2i64:.*ilvr.d.*test43_v2i64" 1 } } */ /* { dg-final { scan-assembler-times "test44_v16i8:.*copy_s.b.*test44_v16i8" 1 } } */ /* { dg-final { scan-assembler-times "test44_v8i16:.*copy_s.h.*test44_v8i16" 1 } } */ /* { dg-final { scan-assembler-times "test44_v4i32:.*copy_s.w.*test44_v4i32" 1 } } */