From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id B396E385829D for ; Fri, 5 Jan 2024 12:29:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B396E385829D 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 B396E385829D 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=1704457800; cv=none; b=h6FebDKOkPCKqRcFOEQk9M1bW04A/1hFsnOjM64pBi7jjnpazfmFllsFnuhf5wRadLoG7foULGNNc5blKjLiph1icuG3QQ99ExnECOh4cbddNdWXtFfQwmuTtX1+b1e94T6aofHVtEiCG+eiJ+mZ0Uy/YzxrD5gJ3UX5CuBj1pw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704457800; c=relaxed/simple; bh=duES0DgYKjwK67ODWBDsnrs0IVBumqtCFoNEYfRNflY=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=ZXih5aglBUIhi8Nb/xIb3v1NB1tijVRsTjycKhq9t438alhU7XOQqySaA8OChAy2dpLpPtMOCuwniGbfjOj3g3El3MEfvdiAVNXTRd/i5vySBLAbaDR36Xl5BCcj4J1SNIXnQYbVfc9kighkHK0pCN1EA6BdLxi94uk83I5dzd4= 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 1rLjKj-0006aW-Aa for gcc-patches@gcc.gnu.org; Fri, 05 Jan 2024 07:29:58 -0500 Received: from loongson.cn (unknown [117.129.62.51]) by gateway (Coremail) with SMTP id _____8Bx3+sz9pdlZFICAA--.8563S3; Fri, 05 Jan 2024 20:29:40 +0800 (CST) Received: from [192.168.2.109] (unknown [117.129.62.51]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxid0y9pdlunADAA--.8968S3; Fri, 05 Jan 2024 20:29:39 +0800 (CST) Subject: Re: [pushed][PATCH v2 0/7] LoongArch:Enable testing for common To: chenxiaolong , gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn References: <20240105034329.21117-1-chenxiaolong@loongson.cn> From: chenglulu Message-ID: Date: Fri, 5 Jan 2024 20:29:38 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20240105034329.21117-1-chenxiaolong@loongson.cn> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8Cxid0y9pdlunADAA--.8968S3 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoWxZF1DCrWUXrWrArykZw13trc_yoW5Aw15pa nxuF9xKr48uF1Uu3Z7XrZ7Z3Z3Aan7G398uw1akw4xGF98KF1qvas7tr43Xa43JFy3ur1Y yw48ur1Uu3WYyrgCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUvIb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07 AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw 1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UN vtZUUUUU= Received-SPF: pass client-ip=114.242.206.163; envelope-from=chenglulu@loongson.cn; helo=mail.loongson.cn X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9,MIME_CHARSET_FARAWAY=2.45,NICE_REPLY_A=-1.854,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=-3.7 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,MIME_CHARSET_FARAWAY,NICE_REPLY_A,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 List-Id: Pushed 2-7 to r14-6955...r14-6961. ÔÚ 2024/1/5 ÉÏÎç11:43, chenxiaolong дµÀ: > v1->v2: > On the basis of v1, the reason of the analysis problem is described in detail. > > When using binutils, which does not support vectorization, and the gcc compiler > toolchain, which does support vectorization, the following two types of error > problems occur in gcc regression testing. > > 1.Failure of common tests in the gcc.dg/vect directory£® > > Regression testing of GCC has found that vect-bic-bitmask-{12/23}.c has errors > at compile time, and similar problems exist on various architectures (e.g. x86, > aarch64,riscv, etc.). The reason is that the behavior of the program is the > assembly state, and the vector instruction cannot be recognized in the assembly > stage and an error occurs. > > 2.FAIL items of common vectorization tests are supported. > > When LoongArch architecture supports common vector test cases, GCC regression > testing has many failures. Reasons include a lack of detection of targets > Rules, lack of vectorization options, lack of specific compilation options, > check for instruction set differences and test behavior for program Settings, > etc. For details, see the following patches: > > chenxiaolong (7): > LoongArch: testsuite:Added support for vector object detection. > LoongArch: testsuite:Modify the test behavior of the > vect-bic-bitmask-{12,23}.c file. > LoongArch: testsuite:Added detection support for LoongArch > architecture in vect-{82,83}.c. > LoongArch: testsuite:Fix FAIL in file bind_c_array_params_2.f90. > LoongArch: testsuite:Delete the default run behavior in pr60510.f. > LoongArch: testsuite:Added additional vectorization "-mlasx" > compilation option. > LoongArch: testsuite:Give up the detection of the > gcc.dg/fma-{3,4,6,7}.c file. > > gcc/testsuite/gcc.dg/fma-3.c | 2 +- > gcc/testsuite/gcc.dg/fma-4.c | 2 +- > gcc/testsuite/gcc.dg/fma-6.c | 2 +- > gcc/testsuite/gcc.dg/fma-7.c | 2 +- > gcc/testsuite/gcc.dg/vect/bb-slp-pattern-1.c | 1 + > .../gcc.dg/vect/slp-widen-mult-half.c | 1 + > gcc/testsuite/gcc.dg/vect/vect-82.c | 2 +- > gcc/testsuite/gcc.dg/vect/vect-83.c | 2 +- > .../gcc.dg/vect/vect-bic-bitmask-12.c | 2 +- > .../gcc.dg/vect/vect-bic-bitmask-23.c | 2 +- > .../gcc.dg/vect/vect-widen-mult-const-s16.c | 1 + > .../gcc.dg/vect/vect-widen-mult-const-u16.c | 1 + > .../gcc.dg/vect/vect-widen-mult-half-u8.c | 1 + > .../gcc.dg/vect/vect-widen-mult-half.c | 1 + > .../gcc.dg/vect/vect-widen-mult-u16.c | 1 + > .../gcc.dg/vect/vect-widen-mult-u8-s16-s32.c | 1 + > .../gcc.dg/vect/vect-widen-mult-u8-u32.c | 1 + > .../gcc.dg/vect/vect-widen-mult-u8.c | 1 + > .../gfortran.dg/bind_c_array_params_2.f90 | 4 +- > gcc/testsuite/gfortran.dg/vect/pr60510.f | 1 - > gcc/testsuite/lib/target-supports.exp | 217 +++++++++++++----- > 21 files changed, 183 insertions(+), 65 deletions(-) >