From patchwork Fri Jan 26 06:22:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 192413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp474854dyb; Thu, 25 Jan 2024 22:23:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9yCsXue5gqQlyZqfGaWtjlQgVwNZLjpsC3bF20R9TPjTdKcJgbL0TDKaG7Deh5sE5N1h2 X-Received: by 2002:ac8:594b:0:b0:42a:32c3:345e with SMTP id 11-20020ac8594b000000b0042a32c3345emr851624qtz.47.1706250216364; Thu, 25 Jan 2024 22:23:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706250216; cv=pass; d=google.com; s=arc-20160816; b=Y5elosJDGN+WFDDsBRkgObnK7vOfA+U4wqIYJw3S7YnaxcCxnuJeky2SnVkigb1x6U a6YuKpkskn5VdT2dsLkM6JP5Uhwz+nvcYeHYcF255wuhkAjVR40wW7v5PLbrsG2Cyw/H KraSR/x7RtUwDchLJXtMApVZ7UCbJULyf5M3BhVPnbmlS5sxjSWpQ1weh4ZyGscIl19N gvHhUIebXNdtvg5jE9G4H3OGlADr0utZQ66Onu+KO1yfk8jEvpOE2/0acfE1/YM0Yj/h gJby9cWS3I0Cc5ZYZs48XptfeIn6MUqcJYfC/Xjex7A69+PlM+DRyDwrk8b0rMWz6yZ/ vClw== 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=NlURVAB4Q/Hvpl/DujFujg1V/ES861QVNOPO6ttJ5rw=; fh=6LgICDG6zE7j/CxCHu23CB0rJd/K2ImLz1UJ2l2oyZE=; b=LR36js/JcLB5x/9jAc5r6wWXQmmyG3Su1bli/A2/+jPhYeqNyJ22ostNlFWdDN1eSV yTQBYy5GEGnjZw5X4vkv2FO9nSFOaoRJ4S3/FGhACMZuK66CbHAVMK//HPDXYMCiV0du gKwMOq0/lPuTB5dXI++cnsC1rlgCtbOwU/utzEzQ+3zrgdtPbdj9lUVHq9WMaMhfLSp8 48X11M5A3d2yAL2PypjOe/E4hkNC/O0ROlgeMjhPznO1M5+ZQg/u9nJHX4A4SGTPNXk/ 8KUkXoi6FAwMz8LT32b/8eQHbkjyP9HdSukC0/POweob2lRouT49LkUlBQWS4HB3T1Ee dK7A== 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 i7-20020ac85c07000000b0042a5f965469si567913qti.143.2024.01.25.22.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 22:23:36 -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 137CF3858D38 for ; Fri, 26 Jan 2024 06:23:36 +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 4D4B93858D38 for ; Fri, 26 Jan 2024 06:22:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4D4B93858D38 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 4D4B93858D38 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=1706250178; cv=none; b=LCxb1HI+FHwhwv5dXtyTKmMTZJw5WZ5V8qg2Ao2wcXm527nrHQ5Se7hV9elC42fnvGGVGWBumywN15IWz1Q9DTn2sVI6Crqin0/U381tXkkiTa7qAQpX5nzqvjsWVWnAVLBdEzssVt4ISDetbHnFdUfCFwPTlt8+FVkFEoCyWaY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706250178; c=relaxed/simple; bh=fYD7Bh0L5yWaKV3W+QpCgWKVhV0M00+juqxA82zJFSI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=WcJp7QPjai7A08f3P5/7YBwOyIYcBjomly3XTcbkfCy77Er5jzOYKr7qCRfYF85IksA9pE8lCugqlurekddG+S7V0gvWAd6VyJ7GODRqGew6gAf53TnFFEyKD+Arf1meJK4R/MCwJPLzm4qb0oNUcSAtnvnAQ5+eysVjXY5tePA= 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 1rTFc5-0008WJ-4B for gcc-patches@gcc.gnu.org; Fri, 26 Jan 2024 01:22:55 -0500 Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8BxnuuvT7NlQhwGAA--.21492S3; Fri, 26 Jan 2024 14:22:40 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxbs2uT7NlFW0bAA--.50578S4; Fri, 26 Jan 2024 14:22:38 +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, ci_notify@linaro.org, chenxiaolong Subject: [PATCH v3] LoongArch: testsuite:Added additional vectorization "-mlsx" option. Date: Fri, 26 Jan 2024 14:22:31 +0800 Message-Id: <20240126062231.45060-1-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Cxbs2uT7NlFW0bAA--.50578S4 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQAGBWWwymABeAAJsN X-Coremail-Antispam: 1Uk129KBj93XoW7Cr1fGFyrCF1fKw1DXr15Jrc_yoW5JFyDpw nxAryxKw48JF1vgr1UXrWIyF4rW392gFZ8urW8Jws7A3W3J342q3WrKr43J3W3XF47Zr1f Xw4Dua45Zw4avwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07UNvtZUUUUU= 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: 1789133026566152003 X-GMAIL-MSGID: 1789133026566152003 gcc/testsuite/ChangeLog: * gcc.dg/signbit-2.c: Added additional "-mlsx" compilation options. * gfortran.dg/graphite/vect-pr40979.f90: Dito. * gfortran.dg/vect/fast-math-mgrid-resid.f: Dito. --- gcc/testsuite/gcc.dg/signbit-2.c | 1 + gcc/testsuite/gfortran.dg/graphite/vect-pr40979.f90 | 1 + gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f | 1 + 3 files changed, 3 insertions(+) diff --git a/gcc/testsuite/gcc.dg/signbit-2.c b/gcc/testsuite/gcc.dg/signbit-2.c index 62bb4047d74..5511bb78149 100644 --- a/gcc/testsuite/gcc.dg/signbit-2.c +++ b/gcc/testsuite/gcc.dg/signbit-2.c @@ -5,6 +5,7 @@ /* { dg-additional-options "-msse2 -mno-avx512f" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-additional-options "-march=armv8-a" { target aarch64_sve } } */ /* { dg-additional-options "-maltivec" { target powerpc_altivec_ok } } */ +/* { dg-additional-options "-mlsx" { target loongarch_sx } } */ /* { dg-skip-if "no fallback for MVE" { arm_mve } } */ #include diff --git a/gcc/testsuite/gfortran.dg/graphite/vect-pr40979.f90 b/gcc/testsuite/gfortran.dg/graphite/vect-pr40979.f90 index a42290948c4..6f2ad1166a4 100644 --- a/gcc/testsuite/gfortran.dg/graphite/vect-pr40979.f90 +++ b/gcc/testsuite/gfortran.dg/graphite/vect-pr40979.f90 @@ -1,6 +1,7 @@ ! { dg-do compile } ! { dg-require-effective-target vect_double } ! { dg-additional-options "-msse2" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } +! { dg-additional-options "-mlsx" { target { loongarch*-*-* } } } module mqc_m integer, parameter, private :: longreal = selected_real_kind(15,90) diff --git a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f index 08965cc5e20..97b88821731 100644 --- a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f +++ b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f @@ -2,6 +2,7 @@ ! { dg-require-effective-target vect_double } ! { dg-options "-O3 --param vect-max-peeling-for-alignment=0 -fpredictive-commoning -fdump-tree-pcom-details -std=legacy" } ! { dg-additional-options "-mprefer-avx128" { target { i?86-*-* x86_64-*-* } } } +! { dg-additional-options "-mlsx" { target { loongarch*-*-* } } } ! { dg-additional-options "-mzarch" { target { s390*-*-* } } } ******* RESID COMPUTES THE RESIDUAL: R = V - AU