From patchwork Wed Aug 9 11:46:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiajie Chen X-Patchwork-Id: 133180 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2745668vqr; Wed, 9 Aug 2023 05:00:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/7eR+SwTIx1/mVY58e+0XpPGT2L9cLaT8B/aLYMPvSv3sAcw0JV06Fm8l+ejK/2B8EObJ X-Received: by 2002:a17:906:53d7:b0:992:9ea0:2317 with SMTP id p23-20020a17090653d700b009929ea02317mr2033300ejo.61.1691582434789; Wed, 09 Aug 2023 05:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691582434; cv=none; d=google.com; s=arc-20160816; b=ZesGH7X1fqox6FMFFRxaRRda3Qtoe0EOABxYrDCgNtpkhUt8dk76m4GVw356p3/PyU GWeHplPLr+MgSqzpiMAVA0gKgE3juk4CZBulo9zUMyfXrZea8UVpmemDmpuKCZj4iYi+ a9BzRDh7xZofejsu26XKpFTRqDEiH8htTidCOrWLC8YAOLZNh5nbmJoz5ROhZ/fCdlmF dHLiqhs7M+/oaNCdg+o/FI7SE6Uz/8vydfj49lgdB+9IQJ66hvPopeLzgKjqh0k8pdKH m8dsdt9TnRk3eP0VDnBpYLN2zcgsUKPWUYJsyDqiglYh1CKRPnLRtwqz3z3QwV9JIOKr qRhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from: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:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=6tQG/BHS9X/W5qx7JTDfubpLV5dJ88FtQgYCSIDe/Ro=; fh=nBdY3vW/mgwv3C0AxagIWVpWoiWSUh4TsWT+uiKUcFM=; b=TlM9cD3vpXS2nvcvznrzPNdsG5ZpYybbsrPKQ5EkB6/O12N5Uc9yxPBFVlm4CHbRLe yEnefU7Fgbk+BCwA2flw1F41VGkJSfyx4c0xYxjsiXKgKIDBLmCCFgJWQ16+1HNpRIkb 5yKFYjU1X92Mqu0FaDGsux2Y4Ofuzz2iCZTBv+i02kxq9e+SWZqzvfXN5hWos5HOMP2x bRNMi9fSZv3teNhWqwWzM/6tyx87XRes0xjXJOncgGt6buPQBKty302W6qHZoqtQKb+f Gk4woS1F2HVo5Ylj8tA29noWS4/CRH2atlZSubidlLkMEzjrmq9daZAGKyu/viPb22Ck 4KbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="OllwMpf/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z22-20020a1709067e5600b0099cc01fb28csi5967120ejr.780.2023.08.09.05.00.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 05:00:34 -0700 (PDT) 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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="OllwMpf/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 022433836E8D for ; Wed, 9 Aug 2023 11:58:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 022433836E8D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691582306; bh=6tQG/BHS9X/W5qx7JTDfubpLV5dJ88FtQgYCSIDe/Ro=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=OllwMpf/z+Qp/cqs742+VKvYtO+0sM6SoKKRtXAXSUATYcbBnVp+I99AHaEUCvZH1 p7MN6hXLvtL5lOreLbcAgTAMnAW0qKgLpcewG0vxs8e/6QBEJywMYpXDGp4Qd5YK5q AxJRnnhzhJFrI13tWH46jBLOsUJ1tVpQ6toRkAcU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hognose1.porkbun.com (hognose1.porkbun.com [35.82.102.206]) by sourceware.org (Postfix) with ESMTPS id 2A3A53857029 for ; Wed, 9 Aug 2023 11:54:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A3A53857029 Received: from cslab-raptor.. (unknown [166.111.226.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: c@jia.je) by hognose1.porkbun.com (Postfix) with ESMTPSA id EE61A4402F; Wed, 9 Aug 2023 11:54:03 +0000 (UTC) To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, xuchenghua@loongson.cn, Jiajie Chen Subject: [PATCH v2 09/14] LoongArch: Add -march=loongarch64 to tests with -mabi=lp64d Date: Wed, 9 Aug 2023 19:46:16 +0800 Message-ID: <20230809115325.3716347-10-c@jia.je> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809115325.3716347-1-c@jia.je> References: <20230809115325.3716347-1-c@jia.je> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jiajie Chen via Gcc-patches From: Jiajie Chen Reply-To: Jiajie Chen Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773752743141130666 X-GMAIL-MSGID: 1773752743141130666 The compiler emits a warning if the current target (-march=loongarch32) mismatches with abi(-march=lp64d). Adding: Add -march=loongarch64 explicitly fixes the tests. gcc/testsuite/ChangeLog: * g++.target/loongarch/bytepick.C: Add -march=loongarch64 * g++.target/loongarch/pr106828.C: Add -march=loongarch64 * gcc.target/loongarch/add-const.c: Add -march=loongarch64 * gcc.target/loongarch/arch-1.c: Add -march=loongarch64 * gcc.target/loongarch/attr-model-1.c: Add -march=loongarch64 * gcc.target/loongarch/attr-model-2.c: Add -march=loongarch64 * gcc.target/loongarch/flt-abi-isa-1.c: Add -march=loongarch64 * gcc.target/loongarch/fscaleb.c: Add -march=loongarch64 * gcc.target/loongarch/ftint-no-inexact.c: Add -march=loongarch64 * gcc.target/loongarch/ftint.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-1.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-2.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-3.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-4.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-5.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-6.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-7.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-8.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-extreme-1.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-extreme-2.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-1.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-2.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-3.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-4.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-5.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-6.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-7.c: Add -march=loongarch64 * gcc.target/loongarch/func-call-medium-8.c: Add -march=loongarch64 * gcc.target/loongarch/imm-load.c: Add -march=loongarch64 * gcc.target/loongarch/imm-load1.c: Add -march=loongarch64 * gcc.target/loongarch/mulw_d_w.c: Add -march=loongarch64 * gcc.target/loongarch/pr109465-1.c: Add -march=loongarch64 * gcc.target/loongarch/pr109465-2.c: Add -march=loongarch64 * gcc.target/loongarch/pr109465-3.c: Add -march=loongarch64 * gcc.target/loongarch/prolog-opt.c: Add -march=loongarch64 * gcc.target/loongarch/relocs-symbol-noaddend.c: Add -march=loongarch64 * gcc.target/loongarch/zero-size-field-pass.c: Add -march=loongarch64 * gcc.target/loongarch/zero-size-field-ret.c: Add -march=loongarch64 --- gcc/testsuite/g++.target/loongarch/bytepick.C | 2 +- gcc/testsuite/g++.target/loongarch/pr106828.C | 2 +- gcc/testsuite/gcc.target/loongarch/add-const.c | 2 +- gcc/testsuite/gcc.target/loongarch/attr-model-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/attr-model-2.c | 2 +- gcc/testsuite/gcc.target/loongarch/flt-abi-isa-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/fscaleb.c | 2 +- gcc/testsuite/gcc.target/loongarch/ftint-no-inexact.c | 2 +- gcc/testsuite/gcc.target/loongarch/ftint.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-2.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-3.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-4.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-5.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-6.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-7.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-8.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-extreme-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-extreme-2.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-2.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-3.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-4.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-5.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-6.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-7.c | 2 +- gcc/testsuite/gcc.target/loongarch/func-call-medium-8.c | 2 +- gcc/testsuite/gcc.target/loongarch/imm-load.c | 2 +- gcc/testsuite/gcc.target/loongarch/imm-load1.c | 2 +- gcc/testsuite/gcc.target/loongarch/mulw_d_w.c | 2 +- gcc/testsuite/gcc.target/loongarch/pr109465-1.c | 2 +- gcc/testsuite/gcc.target/loongarch/pr109465-2.c | 2 +- gcc/testsuite/gcc.target/loongarch/pr109465-3.c | 2 +- gcc/testsuite/gcc.target/loongarch/prolog-opt.c | 2 +- gcc/testsuite/gcc.target/loongarch/relocs-symbol-noaddend.c | 2 +- gcc/testsuite/gcc.target/loongarch/zero-size-field-pass.c | 2 +- gcc/testsuite/gcc.target/loongarch/zero-size-field-ret.c | 2 +- 37 files changed, 37 insertions(+), 37 deletions(-) diff --git a/gcc/testsuite/g++.target/loongarch/bytepick.C b/gcc/testsuite/g++.target/loongarch/bytepick.C index a39e2fa65b7..c2b0dd5e513 100644 --- a/gcc/testsuite/g++.target/loongarch/bytepick.C +++ b/gcc/testsuite/g++.target/loongarch/bytepick.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d" } */ /* { dg-final { scan-assembler-times "bytepick.w\t\\\$r4,\\\$r5,\\\$r4" 3 } } */ /* { dg-final { scan-assembler-times "bytepick.d\t\\\$r4,\\\$r5,\\\$r4" 7 } } */ /* { dg-final { scan-assembler-not "slli.w" } } */ diff --git a/gcc/testsuite/g++.target/loongarch/pr106828.C b/gcc/testsuite/g++.target/loongarch/pr106828.C index 190c1db715f..74590891a67 100644 --- a/gcc/testsuite/g++.target/loongarch/pr106828.C +++ b/gcc/testsuite/g++.target/loongarch/pr106828.C @@ -1,4 +1,4 @@ /* { dg-do-preprocess } */ -/* { dg-options "-mabi=lp64d -fsanitize=address" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -fsanitize=address" } */ /* Tests whether the compiler supports compile option '-fsanitize=address'. */ diff --git a/gcc/testsuite/gcc.target/loongarch/add-const.c b/gcc/testsuite/gcc.target/loongarch/add-const.c index 7b6a7cb92aa..04286afad49 100644 --- a/gcc/testsuite/gcc.target/loongarch/add-const.c +++ b/gcc/testsuite/gcc.target/loongarch/add-const.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -mabi=lp64d" } */ +/* { dg-options "-O -march=loongarch64 -mabi=lp64d" } */ /* None of these functions should load the const operand into a temp register. */ diff --git a/gcc/testsuite/gcc.target/loongarch/attr-model-1.c b/gcc/testsuite/gcc.target/loongarch/attr-model-1.c index 916d715b98b..005c7cd727e 100644 --- a/gcc/testsuite/gcc.target/loongarch/attr-model-1.c +++ b/gcc/testsuite/gcc.target/loongarch/attr-model-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mexplicit-relocs -mcmodel=normal -O2" } */ +/* { dg-options "-mexplicit-relocs -mcmodel=normal -O2 -march=loongarch64" } */ /* { dg-final { scan-assembler-times "%pc64_hi12" 2 } } */ #define ATTR_MODEL_TEST diff --git a/gcc/testsuite/gcc.target/loongarch/attr-model-2.c b/gcc/testsuite/gcc.target/loongarch/attr-model-2.c index a74c795ac3e..242c40161e9 100644 --- a/gcc/testsuite/gcc.target/loongarch/attr-model-2.c +++ b/gcc/testsuite/gcc.target/loongarch/attr-model-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mexplicit-relocs -mcmodel=extreme -O2" } */ +/* { dg-options "-mexplicit-relocs -mcmodel=extreme -O2 -march=loongarch64" } */ /* { dg-final { scan-assembler-times "%pc64_hi12" 3 } } */ #define ATTR_MODEL_TEST diff --git a/gcc/testsuite/gcc.target/loongarch/flt-abi-isa-1.c b/gcc/testsuite/gcc.target/loongarch/flt-abi-isa-1.c index 1c9490f6a87..9cc2d439bf1 100644 --- a/gcc/testsuite/gcc.target/loongarch/flt-abi-isa-1.c +++ b/gcc/testsuite/gcc.target/loongarch/flt-abi-isa-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -mfpu=64 -march=loongarch64 -O2" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -mfpu=64 -march=loongarch64 -O2" } */ /* { dg-final { scan-assembler "frecip\\.d" } } */ /* { dg-final { scan-assembler-not "movgr2fr\\.d" } } */ /* { dg-final { scan-assembler-not "movfr2gr\\.d" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/fscaleb.c b/gcc/testsuite/gcc.target/loongarch/fscaleb.c index f18470fbb8f..d39cdc63ae8 100644 --- a/gcc/testsuite/gcc.target/loongarch/fscaleb.c +++ b/gcc/testsuite/gcc.target/loongarch/fscaleb.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d -mdouble-float -fno-math-errno" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d -mdouble-float -fno-math-errno" } */ /* { dg-final { scan-assembler-times "fscaleb\\.s" 3 } } */ /* { dg-final { scan-assembler-times "fscaleb\\.d" 4 } } */ /* { dg-final { scan-assembler-times "slli\\.w" 1 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/ftint-no-inexact.c b/gcc/testsuite/gcc.target/loongarch/ftint-no-inexact.c index 88b83a9c056..e98d26070bc 100644 --- a/gcc/testsuite/gcc.target/loongarch/ftint-no-inexact.c +++ b/gcc/testsuite/gcc.target/loongarch/ftint-no-inexact.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -mdouble-float -fno-math-errno -fno-fp-int-builtin-inexact" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -mdouble-float -fno-math-errno -fno-fp-int-builtin-inexact" } */ /* { dg-final { scan-assembler "ftint\\.l\\.s" } } */ /* { dg-final { scan-assembler "ftint\\.l\\.d" } } */ /* { dg-final { scan-assembler-not "ftintrm\\.l\\.s" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/ftint.c b/gcc/testsuite/gcc.target/loongarch/ftint.c index 7a326a454d8..1002293aee9 100644 --- a/gcc/testsuite/gcc.target/loongarch/ftint.c +++ b/gcc/testsuite/gcc.target/loongarch/ftint.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -mdouble-float -fno-math-errno -ffp-int-builtin-inexact" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -mdouble-float -fno-math-errno -ffp-int-builtin-inexact" } */ /* { dg-final { scan-assembler "ftint\\.l\\.s" } } */ /* { dg-final { scan-assembler "ftint\\.l\\.d" } } */ /* { dg-final { scan-assembler "ftintrm\\.l\\.s" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-1.c b/gcc/testsuite/gcc.target/loongarch/func-call-1.c index 76bf11b0c03..d25a71e6a4c 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-1.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fplt -mno-explicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fplt -mno-explicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*bl\t%plt\\(g\\)\n" } } */ /* { dg-final { scan-assembler "test1:.*bl\t%plt\\(f\\)\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-2.c b/gcc/testsuite/gcc.target/loongarch/func-call-2.c index 4b468fef8b4..ac1d3b0cec2 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-2.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fplt -mno-explicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fplt -mno-explicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*bl\t%plt\\(g\\)\n" } } */ /* { dg-final { scan-assembler "test1:.*bl\tf\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-3.c b/gcc/testsuite/gcc.target/loongarch/func-call-3.c index dd3a4882d60..e8156cb4eff 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-3.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mno-explicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fno-plt -mno-explicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*la\.global\t.*f\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-4.c b/gcc/testsuite/gcc.target/loongarch/func-call-4.c index f8158ec349f..684475bc3bb 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-4.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fno-plt -mno-explicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fno-plt -mno-explicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*bl\tf\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-5.c b/gcc/testsuite/gcc.target/loongarch/func-call-5.c index 37994af430d..0411d8b6421 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-5.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fplt -mexplicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fplt -mexplicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*bl\t%plt\\(g\\)\n" } } */ /* { dg-final { scan-assembler "test1:.*bl\t%plt\\(f\\)\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-6.c b/gcc/testsuite/gcc.target/loongarch/func-call-6.c index 8e366e376e7..beae892c8fd 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-6.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fplt -mexplicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fplt -mexplicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*bl\t%plt\\(g\\)\n" } } */ /* { dg-final { scan-assembler "test1:.*bl\tf\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-7.c b/gcc/testsuite/gcc.target/loongarch/func-call-7.c index 4177c3d962e..6f6d0456836 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-7.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*pcalau12i\t.*%got_pc_hi20\\(g\\)\n\tld\.d\t.*%got_pc_lo12\\(g\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i\t.*%got_pc_hi20\\(f\\)\n\tld\.d\t.*%got_pc_lo12\\(f\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-8.c b/gcc/testsuite/gcc.target/loongarch/func-call-8.c index 4254eaa16d4..ebb68b368ed 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-8.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=normal" } */ /* { dg-final { scan-assembler "test:.*pcalau12i\t.*%got_pc_hi20\\(g\\)\n\tld\.d\t.*%got_pc_lo12\\(g\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*bl\tf\n" } } */ /* { dg-final { scan-assembler "test2:.*bl\tl\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-extreme-1.c b/gcc/testsuite/gcc.target/loongarch/func-call-extreme-1.c index db1e0f85396..5e83d3107ed 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-extreme-1.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-extreme-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=extreme" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=extreme" } */ /* { dg-final { scan-assembler "test:.*pcalau12i.*%got_pc_hi20.*\n\taddi\.d.*%got_pc_lo12.*\n\tlu32i\.d.*%got64_pc_lo20.*\n\tlu52i\.d.*%got64_pc_hi12.*\n\tldx\.d" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i.*%pc_hi20.*\n\taddi\.d.*%pc_lo12.*\n\tlu32i\.d.*%pc64_lo20.*\n\tlu52i\.d.*pc64_hi12.*\n\tadd\.d" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i.*%pc_hi20.*\n\taddi\.d.*%pc_lo12.*\n\tlu32i\.d.*%pc64_lo20.*\n\tlu52i\.d.*pc64_hi12.*\n\tadd\.d" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-extreme-2.c b/gcc/testsuite/gcc.target/loongarch/func-call-extreme-2.c index 21bf81ae837..e09defff24b 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-extreme-2.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-extreme-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=extreme" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=extreme" } */ /* { dg-final { scan-assembler "test:.*pcalau12i.*%got_pc_hi20.*\n\taddi\.d.*%got_pc_lo12.*\n\tlu32i\.d.*%got64_pc_lo20.*\n\tlu52i\.d.*%got64_pc_hi12.*\n\tldx\.d" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i.*%got_pc_hi20.*\n\taddi\.d.*%got_pc_lo12.*\n\tlu32i\.d.*%got64_pc_lo20.*\n\tlu52i\.d.*%got64_pc_hi12.*\n\tldx\.d" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i.*%pc_hi20.*\n\taddi\.d.*%pc_lo12.*\n\tlu32i\.d.*%pc64_lo20.*\n\tlu52i\.d.*pc64_hi12.*\n\tadd\.d" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-1.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-1.c index 6339e832fe5..e43b4b0fe40 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-1.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fplt -mno-explicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fplt -mno-explicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*la\.global\t.*f\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*la\.local\t.*l\n\tjirl" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-2.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-2.c index a53e75e0bf9..17bfedd4d0d 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-2.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fplt -mno-explicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fplt -mno-explicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*la\.local\t.*f\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*la\.local\t.*l\n\tjirl" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-3.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-3.c index 0da7bf98e3c..00439c6ab9e 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-3.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mno-explicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fno-plt -mno-explicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*la\.global\t.*f\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*la\.local\t.*l\n\tjirl" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-4.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-4.c index 0219688ae80..ed23a4ebecc 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-4.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fno-plt -mno-explicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fno-plt -mno-explicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*la\.global\t.*g\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*la\.local\t.*f\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*la\.local\t.*l\n\tjirl" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-5.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-5.c index 8a47b5afcba..4693517843e 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-5.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fplt -mexplicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fplt -mexplicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*pcalau12i.*%pc_hi20\\(g\\)\n\tjirl.*pc_lo12\\(g\\)" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i.*%pc_hi20\\(f\\)\n\tjirl.*%pc_lo12\\(f\\)" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i.*%pc_hi20\\(l\\)\n\tjirl.*%pc_lo12\\(l\\)" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-6.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-6.c index 1e75e60e01a..ef8228ec361 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-6.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fplt -mexplicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fplt -mexplicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*pcalau12i.*%pc_hi20\\(g\\)\n\tjirl.*pc_lo12\\(g\\)" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i.*%pc_hi20\\(f\\)\n\tjirl.*%pc_lo12\\(f\\)" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i.*%pc_hi20\\(l\\)\n\tjirl.*%pc_lo12\\(l\\)" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-7.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-7.c index 9e89085ca19..12f2ef37b0e 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-7.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fpic -fno-plt -mexplicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*pcalau12i\t.*%got_pc_hi20\\(g\\)\n\tld\.d\t.*%got_pc_lo12\\(g\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i\t.*%got_pc_hi20\\(f\\)\n\tld\.d\t.*%got_pc_lo12\\(f\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i\t.*%pc_hi20\\(l\\)\n\tjirl.*%pc_lo12\\(l\\)" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/func-call-medium-8.c b/gcc/testsuite/gcc.target/loongarch/func-call-medium-8.c index fde9c6e0ef4..251f207dfe0 100644 --- a/gcc/testsuite/gcc.target/loongarch/func-call-medium-8.c +++ b/gcc/testsuite/gcc.target/loongarch/func-call-medium-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=medium" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O0 -fno-pic -fno-plt -mexplicit-relocs -mcmodel=medium" } */ /* { dg-final { scan-assembler "test:.*pcalau12i\t.*%got_pc_hi20\\(g\\)\n\tld\.d\t.*%got_pc_lo12\\(g\\)\n\tjirl" } } */ /* { dg-final { scan-assembler "test1:.*pcalau12i\t.*%pc_hi20\\(f\\)\n\tjirl.*%pc_lo12\\(f\\)" } } */ /* { dg-final { scan-assembler "test2:.*pcalau12i\t.*%pc_hi20\\(l\\)\n\tjirl.*%pc_lo12\\(l\\)" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/imm-load.c b/gcc/testsuite/gcc.target/loongarch/imm-load.c index c04ca33996f..18102efacde 100644 --- a/gcc/testsuite/gcc.target/loongarch/imm-load.c +++ b/gcc/testsuite/gcc.target/loongarch/imm-load.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O2 -fdump-rtl-split1" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O2 -fdump-rtl-split1" } */ long int test (void) diff --git a/gcc/testsuite/gcc.target/loongarch/imm-load1.c b/gcc/testsuite/gcc.target/loongarch/imm-load1.c index 2ff02971239..4a0fe4fd30c 100644 --- a/gcc/testsuite/gcc.target/loongarch/imm-load1.c +++ b/gcc/testsuite/gcc.target/loongarch/imm-load1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -O2" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -O2" } */ /* { dg-final { scan-assembler "test:.*lu52i\.d.*\n\taddi\.w.*\n\.L2:" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/mulw_d_w.c b/gcc/testsuite/gcc.target/loongarch/mulw_d_w.c index 4ab7df8836b..0abe7b014b9 100644 --- a/gcc/testsuite/gcc.target/loongarch/mulw_d_w.c +++ b/gcc/testsuite/gcc.target/loongarch/mulw_d_w.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d" } */ /* { dg-final { scan-assembler "mulw.d.w" } } */ /* This should be optimized to mulw.d.w for LA64. */ diff --git a/gcc/testsuite/gcc.target/loongarch/pr109465-1.c b/gcc/testsuite/gcc.target/loongarch/pr109465-1.c index 4cd35d13904..1f36f4e0ab6 100644 --- a/gcc/testsuite/gcc.target/loongarch/pr109465-1.c +++ b/gcc/testsuite/gcc.target/loongarch/pr109465-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d -mno-strict-align" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d -mno-strict-align" } */ /* { dg-final { scan-assembler-times "st\\.d|stptr\\.d" 1 } } */ /* { dg-final { scan-assembler-times "st\\.w|stptr\\.w" 1 } } */ /* { dg-final { scan-assembler-times "st\\.h" 1 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/pr109465-2.c b/gcc/testsuite/gcc.target/loongarch/pr109465-2.c index 703eb951c6d..3e934567d0e 100644 --- a/gcc/testsuite/gcc.target/loongarch/pr109465-2.c +++ b/gcc/testsuite/gcc.target/loongarch/pr109465-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d -mstrict-align" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d -mstrict-align" } */ /* { dg-final { scan-assembler-times "st\\.d|stptr\\.d" 1 } } */ /* { dg-final { scan-assembler-times "st\\.w|stptr\\.w" 1 } } */ /* { dg-final { scan-assembler-times "st\\.h" 1 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/pr109465-3.c b/gcc/testsuite/gcc.target/loongarch/pr109465-3.c index d6a80659b31..7c684b2a5bf 100644 --- a/gcc/testsuite/gcc.target/loongarch/pr109465-3.c +++ b/gcc/testsuite/gcc.target/loongarch/pr109465-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d -mstrict-align" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d -mstrict-align" } */ /* Three loop iterations each contains 4 st.b, and 3 st.b after the loop */ /* { dg-final { scan-assembler-times "st\\.b" 7 } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/prolog-opt.c b/gcc/testsuite/gcc.target/loongarch/prolog-opt.c index e6a64263384..682d34ae750 100644 --- a/gcc/testsuite/gcc.target/loongarch/prolog-opt.c +++ b/gcc/testsuite/gcc.target/loongarch/prolog-opt.c @@ -1,7 +1,7 @@ /* Test that LoongArch backend stack drop operation optimized. */ /* { dg-do compile } */ -/* { dg-options "-O2 -mabi=lp64d -fno-stack-protector" } */ +/* { dg-options "-O2 -march=loongarch64 -mabi=lp64d -fno-stack-protector" } */ /* { dg-final { scan-assembler "addi.d\t\\\$r3,\\\$r3,-16" } } */ extern int printf (char *, ...); diff --git a/gcc/testsuite/gcc.target/loongarch/relocs-symbol-noaddend.c b/gcc/testsuite/gcc.target/loongarch/relocs-symbol-noaddend.c index 3ec8bd229fd..7d018ba0e4b 100644 --- a/gcc/testsuite/gcc.target/loongarch/relocs-symbol-noaddend.c +++ b/gcc/testsuite/gcc.target/loongarch/relocs-symbol-noaddend.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mabi=lp64d -mexplicit-relocs -fno-pic -O2 -mcmodel=normal" } */ +/* { dg-options "-march=loongarch64 -mabi=lp64d -mexplicit-relocs -fno-pic -O2 -mcmodel=normal" } */ /* { dg-final { scan-assembler "pcalau12i.*%pc_hi20\\(\.LANCHOR0\\)\n" } } */ /* { dg-final { scan-assembler "addi\.d.*%pc_lo12\\(\.LANCHOR0\\)\n" } } */ /* { dg-final { scan-assembler "ldptr.d\t\\\$r4,.*,0\n" } } */ diff --git a/gcc/testsuite/gcc.target/loongarch/zero-size-field-pass.c b/gcc/testsuite/gcc.target/loongarch/zero-size-field-pass.c index 999dc913a71..7931cc2623c 100644 --- a/gcc/testsuite/gcc.target/loongarch/zero-size-field-pass.c +++ b/gcc/testsuite/gcc.target/loongarch/zero-size-field-pass.c @@ -2,7 +2,7 @@ argument passing. */ /* { dg-do compile } */ -/* { dg-options "-O2 -mdouble-float -mabi=lp64d" } */ +/* { dg-options "-O2 -mdouble-float -march=loongarch64 -mabi=lp64d" } */ /* { dg-final { scan-assembler "\\\$f1" } } */ struct test diff --git a/gcc/testsuite/gcc.target/loongarch/zero-size-field-ret.c b/gcc/testsuite/gcc.target/loongarch/zero-size-field-ret.c index 40137d97555..ef1cb6b35c7 100644 --- a/gcc/testsuite/gcc.target/loongarch/zero-size-field-ret.c +++ b/gcc/testsuite/gcc.target/loongarch/zero-size-field-ret.c @@ -2,7 +2,7 @@ returning. */ /* { dg-do compile } */ -/* { dg-options "-O2 -mdouble-float -mabi=lp64d" } */ +/* { dg-options "-O2 -mdouble-float -march=loongarch64 -mabi=lp64d" } */ /* { dg-final { scan-assembler-not "\\\$r4" } } */ struct test