From patchwork Fri Jan 5 03:43:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: chenxiaolong X-Patchwork-Id: 185212 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp6008098dyb; Thu, 4 Jan 2024 19:47:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/ritV8r+TEdkuPzTVJjmErOTbXNnDEzqi4JLVBAuETNKD0MJV0Sd9XZprSIQm20UnoF2/ X-Received: by 2002:a05:622a:550:b0:427:a420:b1f with SMTP id m16-20020a05622a055000b00427a4200b1fmr1992393qtx.13.1704426449497; Thu, 04 Jan 2024 19:47:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704426449; cv=pass; d=google.com; s=arc-20160816; b=1CeOrwYQpMGafpOp0TTCT+5OPMbF1xDOvO29umji8ayIwMD7+jLrvNGfSvj0LTiTze 6OxrjxYU+0ZRLLAxRGG1/NWSS92vL3l8Ujd0A4IU/UEr2k8y1jghikLP0xXihFIswRW6 xYL8lN2jTOxB3eOeBUsNShxoyMsmpTv6aa2qZWErKweyTvPHhrmTwgHTuHUhKVeldJuQ +9nFKw2SP03yVuWzlHQ7qhNiBM33YACZC7UyivLU0kd5NZoBer+hEclrurljt84aLN3f 3qQnpk7FtDpxpFW1Mz/dg8T9n4DMg8VW1G5ctCEKBOeLEa0okj8CXD+YEXch3wxiCfmK O0PA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to; bh=45oXKLoF0N4RVWUpdhAJfVgFnIBCqwnCFskkhzXwa+A=; fh=FZUwle8+72fCZy+/zioADwckSVaPYtJTkTncWlIM74g=; b=xVDzEu7RKFcONBPi/V5lWHQdY4gLOtiTmusbrBPWGRmVKwRpSiZs6KkOxHUfLpBivD BhCTvWU3Ckw58LbnPI40ZJEwC8yHhvMHEAQ0WLKE9s5WjAlkUQvmu740f3Bfp1uwTPza knNXxw533ouaPVxG1MAL+ND8F/cWvViTRr7cbb/gU0dNgXAQ+43X4l3N2H8V9KpKbc3+ DXbFTLYTppf6Fl/aN+jb5VA1UB89SCBPHD3zr2I9ZNo3SFU8ipt7/4gvBavwpPX0PW3H UcTHO4VcXZiniBWQ08umVHFzXCXYxejEzgUja9ZjVJtMNS23BWpU+iCgB+TigMBw4Pps DeRQ== 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 x19-20020ac85f13000000b0042809a4ac2fsi997124qta.790.2024.01.04.19.47.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 19:47:29 -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 260CC3857BA0 for ; Fri, 5 Jan 2024 03:47:27 +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 0D18D3857C6B for ; Fri, 5 Jan 2024 03:44:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0D18D3857C6B 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 0D18D3857C6B 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=1704426267; cv=none; b=S5YsGNc72yJtivWK5ENvULElYspnnyBrT/93fKhXEM9ugtoE+hM9GFHV8yN5RDlJikPY8NJm8077WrJrBfkIuOkztEb0rf7Sul9n2X99zXknlZ3jV4dJArdwwGtHPNC7BfMQPnZNzrM7vIXvrl/epwCwRADpBISswg+o35mW7A0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704426267; c=relaxed/simple; bh=w7jarlGDpAJeRHSjgbgPrxBFSHGtJDJBy9hgalLCqJQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=PQ0xXX0GLUDI0QbIIpoKNANQ626W52zVsRi5zt5Hr4gQ5oYlGZi27/g26v4+Y/6BsXc5aUU2M40LpvPgDGpZSMr65ZFP1Ai8Bo/hx1PZzW1PPfYzQ3VR23ZQuW3TX/hEkBFMHVgCUt8K6JDLItf2kZ8ZMmSzxk3aXxyxzXRJTnA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.10.130.252]) by gateway (Coremail) with SMTP id _____8DxeeoVe5dlWi0CAA--.4034S3; Fri, 05 Jan 2024 11:44:21 +0800 (CST) Received: from slurm-master.loongson.cn (unknown [10.10.130.252]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxut3vepdlO8oCAA--.7318S8; Fri, 05 Jan 2024 11:44:21 +0800 (CST) From: chenxiaolong To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn, chenxiaolong Subject: [PATCH v2 4/7] LoongArch: testsuite:Fix FAIL in file bind_c_array_params_2.f90. Date: Fri, 5 Jan 2024 11:43:26 +0800 Message-Id: <20240105034329.21117-5-chenxiaolong@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20240105034329.21117-1-chenxiaolong@loongson.cn> References: <20240105034329.21117-1-chenxiaolong@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bxut3vepdlO8oCAA--.7318S8 X-CM-SenderInfo: hfkh05xldrz0tqj6z05rqj20fqof0/1tbiAQAHBWWXVSgE0wAAsb X-Coremail-Antispam: 1Uk129KBj93XoW7Zr1xZF48XFW8WrW8WF13KFX_yoW8ZF4xp3 sxZa45KFn8JF1Iyw1kJFs5Ww48WrZFgFyruFWfGw4UCanxta4fXr4xKFW7Jryjka1fXr4a qF4UZFyxZFyqy3gCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE 14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07josjUUUUUU= X-Spam-Status: No, score=-13.0 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: 1787220669054905106 X-GMAIL-MSGID: 1787220669054905106 On the LoongArch architecture, an error was found in the bind_c_array_params_2.f90 file because there was no proper assembly code for the regular expression detection function call, such as bl %plt(myBindC). gcc/testsuite/ChangeLog: * gfortran.dg/bind_c_array_params_2.f90: Add code test rules to support testing of the loongArch architecture. --- gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 index 0825efc7a2f..aa6a37b4850 100644 --- a/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 +++ b/gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 @@ -2,6 +2,7 @@ ! { dg-options "-std=f2008ts -fdump-tree-original" } ! { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } } ! { dg-additional-options "-mno-relax-pic-calls" { target mips*-*-* } } +! { dg-additional-options "-fplt -mcmodel=normal" { target loongarch*-*-* } } ! ! Check that assumed-shape variables are correctly passed to BIND(C) ! as defined in TS 29913 @@ -16,7 +17,8 @@ integer :: aa(4,4) call test(aa) end -! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix* *-*-ming* } } } } } +! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* amdgcn*-*-* powerpc-ibm-aix* *-*-ming* loongarch*-*-* } } } } } +! { dg-final { scan-assembler-times "bl\t%plt\\(myBindC\\)" 1 { target loongarch*-*-* } } } ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-* } } } } ! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* *-*-ming* } } } } ! { dg-final { scan-assembler-times "brasl\t%r\[0-9\]*,myBindC" 1 { target { s390*-*-* } } } }