From patchwork Fri Dec 29 07:44:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 183861 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2433171dyb; Thu, 28 Dec 2023 23:46:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQeZlWvIMrcfcbEQQcNU4hlResienMewS5MPmHwXdidjOXH85Mq+Cs3/QILanr4IPUtfZB X-Received: by 2002:a05:6214:da1:b0:67f:54d1:1359 with SMTP id h1-20020a0562140da100b0067f54d11359mr18992863qvh.131.1703835967590; Thu, 28 Dec 2023 23:46:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703835967; cv=pass; d=google.com; s=arc-20160816; b=z/Z51rTLyOzX5rvQbYtzn1deWo8bf0SgYjwtI0fDR9eq2qJobqYXW2eBHmE0haEBrT 4qHxUBNCynjM9XsZZbaUeQi6jDevtcu7bob7MIxnCnTX2OQhFM3zBIB0cgqEqBLWR3NF kC5tEZJ3DLMjsYhfs7LILt15cw2cnvgkXtHxFAxWN0LjRvO2jDAu6xtPg/65KlfeK7yE jSSfstf4eUq8V38SgLI6iIHoor+BT0X1dKUESaLghhQYeOR7GivcPgu+fe1oUgR05ZWJ Vu3+XL+IHfQqNebobyAfoA0rX8t2Su/Xc6GiPbRAR8ewHlJcXHCOFCxl30b7Xr6EYUUE c/3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=YFMfFBrKpuCImn8sfIfSKSKuGMeCZ913Mwen1mc/tLc=; fh=OGflRxTk1tNpKbKHHWP+DGaQ7zlJOranPX18gXbu0hA=; b=WXjkHPwYoQdraSb5+rMybU+tjE+eeKuv5BU77oxdXw1UJh+x/ORzcVDQNw99DAgFt8 xXbd7HnFIFQHlVktt2sF3H4cDA9kybFG58iDqm2Wyo42mYhrSLilHEsJE0OnS7VZJXt7 R9EHddMuh3Wr/fG9ngj27tuEi+dN3B0zWfldIbHw7QMoqxiNzpFl1bHASRxdFo/FLfwL la4U95YQfef1tTvQEogmA94zRGe7fhDEyq+CQmYcck/MpKwwIBLWSzKdvh5mk+oHOlvV y9YuOc7LWm1FxNzARluBNX/YzI5j+NJZAqJY5BY6O+zed58AiTfaBePv/PMukZncTjt8 2LJQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y10-20020a0cf14a000000b0067f9703900csi15681535qvl.375.2023.12.28.23.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 23:46:07 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4A0DF3858D33 for ; Fri, 29 Dec 2023 07:46:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 147B63858D33 for ; Fri, 29 Dec 2023 07:44:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 147B63858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 147B63858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703835875; cv=none; b=R7LzefkHkHOAUsTBP7ZuEE69A4mIKmdS9zvosWnScQIH6BWTCt0ICghGYebinjpezB2PBO/SCNCoq/N25gdCvWYMFq+nVLmYlviAEaJ8sf8S67zurrJgwZqoP+DqnKiXcEkETdwBeYTIXcalUc6CMuXklRL2D8oCj0OnXqJhYg0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703835875; c=relaxed/simple; bh=8H64gyTocCGRz4Md61HCXFB4fe0WBky+qorUaLXTXp4=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=aBRBMdPJM43adHdwr8szhR/VTlYX1x1WXltGwFaMMuqDl7d6uazVTBoEbv1H4N63hs1MR4Rg/Zq+OsSBFJu1s0ixmPgIHKfqfQW1UC/+V9RbNWA2HLg2Naj0rj7oDl3D+HngCAaiSPlQlNlsGFjAKsZxmzT4Umsv4/xEe77pGPw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxmurZeI5llmEAAA--.1000S3; Fri, 29 Dec 2023 15:44:25 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxG77YeI5lN4sPAA--.23543S4; Fri, 29 Dec 2023 15:44:24 +0800 (CST) From: chenxiaolong To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, richard.sandiford@linaro.org, chenxiaolong Subject: [PATCH v1] LoongArch: testsuite:Add loongarch to gcc.dg/vect/slp-21.c. Date: Fri, 29 Dec 2023 15:44:17 +0800 Message-Id: <20231229074417.19547-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8CxG77YeI5lN4sPAA--.23543S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQAABWWOLK8E8gAAsa X-Coremail-Antispam: 1Uk129KBj93XoW7KFW8ZrWUGr43Gr1xKr4xKrX_yoW8XFykpw sF9ryak34rAF18Wr1DZFn3Jr4Ygw4fAFy09F1aq34xC34fKF92qrWvyFW7XF13Jan8Zr93 XaykCr1UuanxtFbCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkab4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv 67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28Icx kI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2Iq xVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42 IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY 6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Cr0_Gr1UMIIF0xvEx4A2js IEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UZzVUUUUUU= X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786601503718296649 X-GMAIL-MSGID: 1786601503718296649 In the GCC code of LoongArch architecture, IFN_STORE_LANES optimization operation is not supported, and four SLP statements are used for vectorization in slp-21.c. So add loongarch*-*-* to the corresponding dg-finals. gcc/testsuite/ChangeLog: * gcc.dg/vect/slp-21.c: Add loongarch. --- gcc/testsuite/gcc.dg/vect/slp-21.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/slp-21.c b/gcc/testsuite/gcc.dg/vect/slp-21.c index 712a73b69d7..58751688414 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-21.c +++ b/gcc/testsuite/gcc.dg/vect/slp-21.c @@ -213,7 +213,7 @@ int main (void) Not all vect_perm targets support that, and it's a bit too specific to have its own effective-target selector, so we just test targets directly. */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" { target { powerpc64*-*-* s390*-*-* } } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { vect_strided4 && { ! { powerpc64*-*-* s390*-*-* } } } } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" { target { powerpc64*-*-* s390*-*-* loongarch*-*-* } } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { vect_strided4 && { ! { powerpc64*-*-* s390*-*-* loongarch*-*-* } } } } } } */ /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { ! { vect_strided4 } } } } } */