From patchwork Thu Nov 16 12:31:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiahao Xu X-Patchwork-Id: 1864725 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4SWKCf6STSz1yRR for ; Thu, 16 Nov 2023 23:31:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A1803857BA7 for ; Thu, 16 Nov 2023 12:31:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0C543385B51E for ; Thu, 16 Nov 2023 12:31:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0C543385B51E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0C543385B51E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700137888; cv=none; b=Dukm1pbSfcfQGMFrNMRfcChjvRT0USvEs7eDNZXKmNeeDyjUJbPVKNNDh2tINdGTpg5i2zg+w2D1+E/R5R4EYEYCifwIDSJhx2osnGuNGrM6hCcsGZWfaPsdqHugHz5bgYgLgG56owevFuuCq3z8WwAqFLwstWS/0GHxsUkG28k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700137888; c=relaxed/simple; bh=Etwfzoqp8RVzSBL4LwZHskR8lBF36rag7B5lJgHSotk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=QVJyBr22DoDY09ATBSWwUSpuxclVUyPL3NPHCLterZzrEV0ua+1RHBQ17JMCWX6tdEEWPVPEQwkHQTTfkB+qejfPe9/ulpD3Y0RzcoXo1Cy6Cz2R6GBJuWjwl2u4LT7P5JdxAC/VpjIrxNa4WqjwftChTqZTarLJd3vDyAXs+iY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail.loongson.cn ([114.242.206.163]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3bWm-0005yW-Lc for gcc-patches@gcc.gnu.org; Thu, 16 Nov 2023 07:31:26 -0500 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8CxyOiWC1Zlm4o6AA--.14020S3; Thu, 16 Nov 2023 20:31:19 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxG9yVC1ZlBB5EAA--.18266S4; Thu, 16 Nov 2023 20:31:17 +0800 (CST) From: Jiahao Xu To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, chenglulu@loongson.cn, xuchenghua@loongson.cn, Jiahao Xu Subject: [PATCH] LoongArch: Fix scan-assembler-times of lasx/lsx test case. Date: Thu, 16 Nov 2023 20:31:09 +0800 Message-Id: <20231116123109.41084-1-xujiahao@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxG9yVC1ZlBB5EAA--.18266S4 X-CM-SenderInfo: 50xm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vaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x02 67AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8-_-PUUUUU== Received-SPF: pass client-ip=114.242.206.163; envelope-from=xujiahao@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, SPF_FAIL, SPF_HELO_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 These tests fail when they are first added,this patch adjusts the scan-assembler-times to fix them. gcc/testsuite/ChangeLog: * gcc.target/loongarch/vector/lasx/lasx-vcond-1.c: Adjust assembler times. * gcc.target/loongarch/vector/lasx/lasx-vcond-2.c: Ditto. * gcc.target/loongarch/vector/lsx/lsx-vcond-1.c: Ditto. * gcc.target/loongarch/vector/lsx/lsx-vcond-2.c: Ditto. diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-1.c index ee9cb1a1fa7..57064eac9dc 100644 --- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-1.c +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-1.c @@ -52,13 +52,13 @@ TEST_VAR_ALL (DEF_VCOND_VAR) /* { dg-final { scan-assembler-times {\txvslt\.b} 4 } } */ /* { dg-final { scan-assembler-times {\txvslt\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\txvslt\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\txvslt\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\txvslt\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\txvslt\.d} 8 } } */ /* { dg-final { scan-assembler-times {\txvsle\.b} 4 } } */ /* { dg-final { scan-assembler-times {\txvsle\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\txvsle\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\txvsle\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\txvsle\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\txvsle\.d} 8 } } */ /* { dg-final { scan-assembler-times {\txvseq\.b} 4 } } */ /* { dg-final { scan-assembler-times {\txvseq\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\txvseq\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\txvseq\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\txvseq\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\txvseq\.d} 8 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-2.c index 5f40ed44c2d..55d5a084c88 100644 --- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-2.c +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vcond-2.c @@ -67,21 +67,21 @@ TEST_CMP (nule) TEST_CMP (nuge) TEST_CMP (nugt) -/* { dg-final { scan-assembler-times {\txvfcmp\.ceq\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.ceq\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cne\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cne\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.slt\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.slt\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.sle\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.sle\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cor\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cor\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cun\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cun\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cueq\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cueq\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cule\.s} 8 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cule\.d} 8 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cult\.s} 8 } } */ -/* { dg-final { scan-assembler-times {\txvfcmp\.cult\.d} 8 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.ceq\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.ceq\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cne\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cne\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.slt\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.slt\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.sle\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.sle\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cor\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cor\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cun\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cun\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cueq\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cueq\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cule\.s} 12 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cule\.d} 12 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cult\.s} 12 } } */ +/* { dg-final { scan-assembler-times {\txvfcmp\.cult\.d} 12 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-1.c b/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-1.c index 138adccfaf9..8c69f0d9bdb 100644 --- a/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-1.c +++ b/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-1.c @@ -52,13 +52,13 @@ TEST_VAR_ALL (DEF_VCOND_VAR) /* { dg-final { scan-assembler-times {\tvslt\.b} 4 } } */ /* { dg-final { scan-assembler-times {\tvslt\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\tvslt\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\tvslt\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\tvslt\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\tvslt\.d} 8 } } */ /* { dg-final { scan-assembler-times {\tvsle\.b} 4 } } */ /* { dg-final { scan-assembler-times {\tvsle\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\tvsle\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\tvsle\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\tvsle\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\tvsle\.d} 8 } } */ /* { dg-final { scan-assembler-times {\tvseq\.b} 4 } } */ /* { dg-final { scan-assembler-times {\tvseq\.h} 4 } } */ -/* { dg-final { scan-assembler-times {\tvseq\.w} 4 } } */ -/* { dg-final { scan-assembler-times {\tvseq\.d} 4 } } */ +/* { dg-final { scan-assembler-times {\tvseq\.w} 8 } } */ +/* { dg-final { scan-assembler-times {\tvseq\.d} 8 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-2.c b/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-2.c index e8fe31f8ff9..2214afd0a89 100644 --- a/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-2.c +++ b/gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vcond-2.c @@ -67,21 +67,21 @@ TEST_CMP (nule) TEST_CMP (nuge) TEST_CMP (nugt) -/* { dg-final { scan-assembler-times {\tvfcmp\.ceq\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.ceq\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cne\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cne\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.slt\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.slt\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.sle\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.sle\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cor\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cor\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cun\.s} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cun\.d} 2 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cueq\.s} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cueq\.d} 4 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cule\.s} 8 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cule\.d} 8 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cult\.s} 8 } } */ -/* { dg-final { scan-assembler-times {\tvfcmp\.cult\.d} 8 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.ceq\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.ceq\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cne\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cne\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.slt\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.slt\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.sle\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.sle\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cor\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cor\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cun\.s} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cun\.d} 3 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cueq\.s} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cueq\.d} 6 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cule\.s} 12 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cule\.d} 12 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cult\.s} 12 } } */ +/* { dg-final { scan-assembler-times {\tvfcmp\.cult\.d} 12 } } */