From patchwork Wed Jan 10 07:25:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 186703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp630798dyi; Tue, 9 Jan 2024 23:26:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGp8nLBQH+hsyiF9ZxuNcNH+RV6LUg2yduVl6Sbl0HcPF/aLD1IECJ0kQci96zL+9tHWM6b X-Received: by 2002:a05:622a:180a:b0:429:978f:db1a with SMTP id t10-20020a05622a180a00b00429978fdb1amr700434qtc.115.1704871583656; Tue, 09 Jan 2024 23:26:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704871583; cv=pass; d=google.com; s=arc-20160816; b=DzABXW9POfYRtL9IZuUu8VJ7iqE7XGjWCDz+9ds1weyMlGcdzF979dwmdmoOGyA4YS FKCxvIQDTAO4lVoWfRRgu2PRSvA993lyufWzRtCWPadjNsIa+IKtQ8HWq5iPTrVAP4tR ZqsrX7fIkPRPVY2QrGwc9v0XhDVJAZ/h7V7pImALOelV+HSQdPUcj/eCIEjfan5xQVNU BKlsldEhb5ktdkqlkP2UOLpsTTH0M1jnxZ4CgjcFLK6SeA50fwtHjm1PmucssxKUywVp x6bcvwsqIHtrUK5daaKoOQ3efxgdLhklbb01/eyldOsLk/5g3NnAl7lx7iRm3HCGtJcu qxYQ== 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=U0Tlri8agV6GZA8qhdVsA5ImmGc3qH+aCF8o9sQEO54=; fh=sDQpqXmoyAD4aJEKS8atWABejFDeQW4qI6gmNZNBTYc=; b=H6kbqumf+C0zP63G2Led01slWIXkC8YYUKiMMTnxxEiwiFR6HKwT6/q23qmZ7yvxa3 ZjNRkK4W8yhVBWPalUjUqOzYV1wMkqJWe7oGDFp2HSvWugIcZwShyf9KTBoY/wRc8Dkb CkQQYXmkhc9a269TLXDidR7tjqnQ4dtjUxd0eroVVjPJORDxBPIs7/40bSXwaHBCtpbA dCwkmB2HQALfYkzfx3BYLb+apfVN6l4vSUe9QEpMcBVcys6R+LicyXcDbu95IOJSF4s6 5BpWLxdrbvnMzxp/GnEGraQ7mphUmgsiygjjIj41SHRDOKm+7BYGTmPQv0p1pR3vXt2y 2VeA== 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 t17-20020a05622a01d100b00403c2e9e72bsi3679545qtw.106.2024.01.09.23.26.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 23:26:23 -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 0411C3857C5E for ; Wed, 10 Jan 2024 07:26:22 +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 63B233858C74 for ; Wed, 10 Jan 2024 07:25:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63B233858C74 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 63B233858C74 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=1704871530; cv=none; b=jdJfWWA+Xa9WzUUxtsE4xGBoJcvZsyhhfTgNphiQrHS7hcZOzaRF5U6cfo4ZQlUAQZZ/2UJB+TCo2+McRUClIIIXBBqDOhWeRjGtIcckN0IdCss49sFa+zEJ+Ti8AbEBH88mQMqWr+B2EI7TX8Uvbq9enjoGMETcX60JCZNxtzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704871530; c=relaxed/simple; bh=DV6Kutbdvs6oXZXUx5HenGsNQqTWpoFvwGWsRMbbKHM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=IoHla91/W5i8/pqI1T5BI0O9fPcU6Wnz3lIDacErIODk5J4dEXcD0xjFgH/IWayVqoKR6mJNAtoLjOI/ge3Tfl9XmeS8T2xt7NulXX6cyboeZJzWyP20T3gfb90h1GqHiEI2pfOQbIHFh5vdk4Fw6sbUT8bM9KJDZWelqtDxyJg= 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 1rNSxq-0003cA-9n for gcc-patches@gcc.gnu.org; Wed, 10 Jan 2024 02:25:27 -0500 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxrvBjRp5lxsQDAA--.11604S3; Wed, 10 Jan 2024 15:25:23 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bx+91jRp5lTGwKAA--.27883S4; Wed, 10 Jan 2024 15:25:23 +0800 (CST) From: chenxiaolong To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, schwab@linux-m68k.org, chenxiaolong Subject: [PATCH v2] LoongArch: testsuite:Added support for loongarch. Date: Wed, 10 Jan 2024 15:25:21 +0800 Message-Id: <20240110072521.8916-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bx+91jRp5lTGwKAA--.27883S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQAMBWWd7KkKOwAAsE X-Coremail-Antispam: 1Uk129KBj93XoW7Ar4rJr4ktw1rZFy7WFy7CFX_yoW8Xw4rpw sF9ryakryrAF18ur1qvFn7Jr45Xa1fAFy0gFyaq34xA34fKF92qrZFyFW7XF13JanxZrn5 XaykAr15uanxtFbCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07UMpBfUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenxiaolong@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=-13.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787687425525961037 X-GMAIL-MSGID: 1787687425525961037 The function of this test is to check that the compiler supports vectorization using SLP and vec_{load/store/*}_lanes. However, vec_{load/store/*}_lanes are not supported on LoongArch, such as the corresponding "st4/ld4" directives on aarch64. 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 } } } } } */