From patchwork Fri Jan 12 01:52:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 187543 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1846600dyi; Thu, 11 Jan 2024 17:53:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvHKnqNwPUHYao/+H+jtleYE8F3gXiB10jbGQZu7lDIIvtjLnPHwpU62xO6/IWzgqGCo42 X-Received: by 2002:a05:620a:4891:b0:783:2c4c:923f with SMTP id ea17-20020a05620a489100b007832c4c923fmr969967qkb.79.1705024438148; Thu, 11 Jan 2024 17:53:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705024438; cv=pass; d=google.com; s=arc-20160816; b=TfeSQ0AW1PWM5x3pv3972q7Ap0SjCQ832AMLgis2jMFFq6wVSfXroAtlzxaNvQ7ckJ 13y/oO+XDAwuPOIBrT6Ev/SZSXkedusQMD6gEN9jmtWUi2HxvdVmrppz9tGAQ1it4D4M lzNRMaVpg4Xsz4XXQU53SUY7VR2sdG1I4yFwOI83fiqrJBF/vBkA4VkWKpDcXhwBR9YL bqj24OV0Ev//rRxt6xX3RcHnEVQCBjp0S/smGERmH6lO7P6WneEK2NzTXl0uLhsO9e/k 3tnoqleWcjecLWTZ31hvCCWxfnS2/AtzDKBtmmJuJipIYXh+prEYaG7XDaqOzfB9gkgC /IJg== 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=2stsTeK39xl9bPuWK1iP94UFb6iI/3Z/UmMWQ4K/0nU=; fh=sDQpqXmoyAD4aJEKS8atWABejFDeQW4qI6gmNZNBTYc=; b=QP8JEyzQBzuHcqfQX+Y8safGChWw9F5GLDaqyfh7hN8F21eZ3o3HAznjgvoERu53Yq 73fuKL0DyNbAMET/aMW9Jb0BGT2nqOrwEnKbwatn25Do0K31hzkYMJSXarVBqGY+dwnJ p28NcVMFoPaP98lq/BtND1n03QfW3FM7dnnKVngQyPPep4MdbY0iUznkJqc3B+tZlRlj cZaXFQi/aNlSodwFpqCTnbefr6Wm05aF4HzgBiLp0CT4rxGYtaOK6bEh5NJlmM2D6+hE NF+0fOgBBa9/QlIzuvkWsNWeQmdhz1ugfMjZFtvit6BF7qXY+YCugqnEw+8irt3jpNsr 9osg== 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 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bq9-20020a05620a468900b007833c5d6b73si2220144qkb.347.2024.01.11.17.53.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 17:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; 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 2620:52:3:1:0:246e:9693:128c 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 736473858CD1 for ; Fri, 12 Jan 2024 01:53:57 +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 BB57B3858429 for ; Fri, 12 Jan 2024 01:52:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB57B3858429 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 BB57B3858429 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=1705024376; cv=none; b=FKjFa67Kyoxhy+IxdHsZm4qywFYu4fA0h4lvY8Z989vIZZNc2G8aIHZRoC5LZocccoxdDwd5qdL41lmBYNmv+WYMbqSnuoPxLs/UNpbBx9Nu1bx8X2ng3W/FfPQjoPiMV8Zh9OD3hbUmUqK0ANR6DTqVVqk2MmHhqnFt1fCAvnY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705024376; c=relaxed/simple; bh=oFTgjgGsB0l34nhvbRYwHkxE8khfgyiUF3E9O+Tuef8=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=tOXF7cJ0uwZn9PRe44iNtbJbAU4X32AYQRl3rV0d2dbDvMdrl66aYugTMyezZv+hC8Wiu9Yg3PhAfN/M1nlZvLuIKVsgo6TlcY+/wBRahV0vPoYRFYcmEWOjte52b5fOyjY/preT+TQ7kfhd/x+stHpDfw0stFJrHPK19aQhJv8= 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 1rO6j5-0001Lh-KO for gcc-patches@gcc.gnu.org; Thu, 11 Jan 2024 20:52:53 -0500 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8Dxvutum6BlAGwEAA--.13060S3; Fri, 12 Jan 2024 09:52:46 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxXN5tm6BlrXUSAA--.48103S4; Fri, 12 Jan 2024 09:52:45 +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 v1] LoongArch: testsuite:Fix fail in gen-vect-{2,25}.c file. Date: Fri, 12 Jan 2024 09:52:24 +0800 Message-Id: <20240112015224.4476-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxXN5tm6BlrXUSAA--.48103S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQAOBWWgj6kBhQAAst X-Coremail-Antispam: 1Uk129KBj93XoW7Kw13CF1DJF1Uuw13ZF4UZFc_yoW8ur45pa nruryxCr1rKFyfWF12qFZ3Wr4rK3Z7GFZ8uFy7K34I9FW7tr92qr18tF4xJF13Xan3Zr13 Xw48uw15uanakrbCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j1LvtUUUUU= 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: 1787847705166318432 X-GMAIL-MSGID: 1787847705166318432 1.Delete "dg-do run". When binutils do not support vectorization, an error occurs during the assembly phase that does not recognize vector instructions. 2.Added "-mlsx" option for vectorization on LoongArch. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/gen-vect-2.c: Remove the program's default setting run state and add the "-mlsx" compilation option for the additional LoongArch architecture. * gcc.dg/tree-ssa/gen-vect-25.c: Dito. --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c | 3 ++- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c index b84f3184427..b83e355e93c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c @@ -1,6 +1,7 @@ -/* { dg-do run { target vect_cmdline_needed } } */ +/* { target vect_cmdline_needed } */ /* { dg-options "-O2 -fno-tree-loop-distribute-patterns -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic" } */ /* { dg-additional-options "-mno-sse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-mlsx" { target { loongarch*-*-* } } } */ #include diff --git a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c index 18fe1aa1502..edbc1dce28f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/gen-vect-25.c @@ -1,6 +1,7 @@ -/* { dg-do run { target vect_cmdline_needed } } */ +/* { target vect_cmdline_needed } */ /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic" } */ /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-mlsx" { target { loongarch*-*-* } } } */ #include