From patchwork Mon Jan 8 13:47:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 186012 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1029064dyq; Mon, 8 Jan 2024 05:50:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEj9/UJ5eIXlFKoRennIS9QHGV3OxJLRxyv68lQdl7OUjSN5nP1watJHAv8iyGAvapl5osi X-Received: by 2002:a05:6358:904c:b0:175:89b8:b5ad with SMTP id f12-20020a056358904c00b0017589b8b5admr3275036rwf.15.1704721846374; Mon, 08 Jan 2024 05:50:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704721846; cv=pass; d=google.com; s=arc-20160816; b=g3zUW/bP0tOtWD9izagKp+OpGqX1NA3XR8M2BpoSFswXvYYGnsFYaQ/ZpaTVWXBas0 8QmrvYxXKR8687naiw8k59tFi/RjvsKYsbzuLo4wkCqTqP6yUTPVOBmeg73qfdc9VSUo EuT6QBxIX8FcRoj8ocp6IWihR9Jwnt9L740g85eSd6R8RngtkfAyRpvpomF9w7Z8rx9X 7ikmqzvEW4XmoU5AFy+x6R8UKwmFoXC0FNekD29QIcsbbxXM+hcrZ4oz9KIs9Z7PhOhP t++Uwycvq/KIYTrxe4xL39fcfa/BE5pGr4KVM/Pg3ptI0SgGSdz+u6LXjkQlQdITnfRG ezFw== 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:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=haTrwFBvIcBEmhUjTut561vOIc/lrVHHHJAUZxIu7fU=; fh=3Ck16crQUxNabL1wC/NAUZY2nAVZpSKeVH/lwIj1XIE=; b=BGyu8xP3TZkFZFYVf87BY69Bp4xths76UwBP1IEcIpNLIelHn9dqJ2b1bd+u5RanpI ZLzNDaBVIALRa195uuMxzNaF8HkYDfzy7iymLp3oOEF4nU/WXw4AF/u5pV6VdOudFclR oanqvE3zxbr0x+UKG4vSNephjUL2BOeAb/jKR9JQrsv/RIdaoCDTYawrhL2blpVGGsnG suJxDQznXc9dBorhtrU/zwsrSaNzzjKSH4xwkEa081zcRN0vW9YOMtUhJEHiO529aUvm 18dEyzKXEdBFro/+p6Kf3/e/jPKj+SEQGbt5B/whEdVdCKqPuCOQzvZenyDJTddWz93h b07A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bw8hX0nM; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v7-20020ac85787000000b004277d662d67si7985746qta.512.2024.01.08.05.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:50:46 -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; dkim=pass header.i=@sifive.com header.s=google header.b=bw8hX0nM; 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"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 180AF385E007 for ; Mon, 8 Jan 2024 13:50:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by sourceware.org (Postfix) with ESMTPS id 41C2C385841B for ; Mon, 8 Jan 2024 13:48:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 41C2C385841B Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 41C2C385841B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::632 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704721688; cv=none; b=DE+3CpYNwPNj1LsvlYcUU7M5BeWRRhktvKZtDEH3nIM73V+INKo05Ysh/R6ls5YPkOppSDBEyzX3eACLEMLEncI/mlReRNjWEtVNMsVsCLD0uK3/wOkFs3QcUsgcXAdMJgbJSgijp2KrcU/Md4XDbgYNu/nSeOwokpUvQk2zz00= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704721688; c=relaxed/simple; bh=6YtYFsxVkhY5+e15p3MN5Np8EaYDQ5dDUNwO009tVz8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=hhPrenUbqf56UDV6XsIairYfgXv/bqwmC5kbk7dCOXKwHRFbIRl6S74o6OSDTOrgklRwl4No3RGauHvmexMzBXG6doLweftgwnlcjSQ2hcaxoogzVMAp1VjoHhKc5AKIXPkKh0k9dbw8Aq9y8tcIZsc/Re77363PwvgpGB8MPLM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d3e8a51e6bso14360515ad.3 for ; Mon, 08 Jan 2024 05:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1704721682; x=1705326482; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=haTrwFBvIcBEmhUjTut561vOIc/lrVHHHJAUZxIu7fU=; b=bw8hX0nM7Q/DMzPtERXpXJMtS3IRfbfj7j3JifD3V6r1CNmYlLmRqvmGBJqGnFhbfC hCBNLgTB+frLypO+HhyJyxUWK9vTrNQU4jEOQOCGv8GhdCDZKOBh+vZQabuA7bqGHMl8 HZoQQZqSZb6hpyeCOG4bh1xtpjfqr+u18efv2KTAuId6WuLtr8+HDSydnx6DdJtpOUTY 5UOUgZgY6h9TifSmYVL4HlimbQVZWrVEtHd7EgN98zuii496fAzcSIewAzWnYD+yf4Gk 3u3T2eGxC/e2/dc4DISLCIkNl/BUfwtB53pJMOI/gV1vdLt07xTLl1X2jdN42H7+7zAM p6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704721682; x=1705326482; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=haTrwFBvIcBEmhUjTut561vOIc/lrVHHHJAUZxIu7fU=; b=e1wIsoPk6Tf712VSwcK16cPYew2Dt7jHbsBIJKJ3H2vlmlHEbwuolduzZr6Iu7nCBt tdaKnJgCfIrf3fS/BK+aoB3q4nNLKeZOZCzAotZc+qd+NDz3f30PBE/1MuY3PcqJwrmB 5cOEq232QGNtCPSA4frnJ/3onOJEmRaWM12LKSB/mN+raz4an1nlGZEDzMunnuAZTj/r pVU5wxCh4OmNz4V6C39Sv0dgUj2z358Pg232/l5Yltm/Jn/D1dnzo+anZYHTMktap4DK 3goIOxolkJej+W0sScqHSEDX9yvs6KwAhEukb+CbvICZ+JrKxPczMw3hEBfMy+OePo8K 3OWA== X-Gm-Message-State: AOJu0YwJQ7AqOAzxY8KSUb9hyYt/fnlUsOnpQHhdtNC6BRvF/j7LP12W XfDZmEusyAXL1oYQk03vqGN1+Q1QLq3Ep6Y9Dw/Sj7X4kTAMZcr0cEfobQEnp3mAg+PGxTuz7QP cVGqMtg1zwLgfYI139jNcMQjkt6sY+Onnm07unrDckX7LY9pDA51Y8gDZ3up8rCX8PpkM0Q05ZA 7ox4y4vHDY5pQ= X-Received: by 2002:a17:903:32c4:b0:1d4:ef61:2407 with SMTP id i4-20020a17090332c400b001d4ef612407mr4735771plr.74.1704721681669; Mon, 08 Jan 2024 05:48:01 -0800 (PST) Received: from hsinchu18.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id jc20-20020a17090325d400b001d403969b65sm4588056plb.187.2024.01.08.05.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 05:48:01 -0800 (PST) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jim.wilson.gcc@gmail.com, palmer@dabbelt.com, andrew@sifive.com, jeffreyalaw@gmail.com, christoph.muellner@vrull.eu Cc: Kito Cheng Subject: [PATCH 4/5] RISC-V: Update testsuite due to -march string relaxation Date: Mon, 8 Jan 2024 21:47:37 +0800 Message-Id: <20240108134738.998804-5-kito.cheng@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240108134738.998804-1-kito.cheng@sifive.com> References: <20240108134738.998804-1-kito.cheng@sifive.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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: 1787530415204865585 X-GMAIL-MSGID: 1787530415204865585 We has relaxed -march string, it no longer require canonical order, so we need update some of those testcase. gcc/testsuite/ChangeLog: * gcc.target/riscv/arch-23.c: Update test. * gcc.target/riscv/arch-27.c: Ditto. * gcc.target/riscv/arch-28.c: Ditto. * gcc.target/riscv/attribute-10.c: Ditto. --- gcc/testsuite/gcc.target/riscv/arch-23.c | 1 - gcc/testsuite/gcc.target/riscv/arch-27.c | 2 +- gcc/testsuite/gcc.target/riscv/arch-28.c | 2 +- gcc/testsuite/gcc.target/riscv/attribute-10.c | 4 +++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/arch-23.c b/gcc/testsuite/gcc.target/riscv/arch-23.c index fca5425790c..aacfc451043 100644 --- a/gcc/testsuite/gcc.target/riscv/arch-23.c +++ b/gcc/testsuite/gcc.target/riscv/arch-23.c @@ -4,7 +4,6 @@ int foo() { } -/* { dg-error "ISA string is not in canonical order. 'c'" "" { target *-*-* } 0 } */ /* { dg-error "extension 'w' is unsupported standard single letter extension" "" { target *-*-* } 0 } */ /* { dg-error "extension 'zvl' starts with 'z' but is unsupported standard extension" "" { target *-*-* } 0 } */ /* { dg-error "extension 's123' starts with 's' but is unsupported standard supervisor extension" "" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.target/riscv/arch-27.c b/gcc/testsuite/gcc.target/riscv/arch-27.c index 70143b2156f..03f07deedd1 100644 --- a/gcc/testsuite/gcc.target/riscv/arch-27.c +++ b/gcc/testsuite/gcc.target/riscv/arch-27.c @@ -4,4 +4,4 @@ int foo() { } -/* { dg-error "ISA string is not in canonical order. 'e'" "" { target *-*-* } 0 } */ +/* { dg-error "'i', 'e' or 'g' must be the first extension" "" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.target/riscv/arch-28.c b/gcc/testsuite/gcc.target/riscv/arch-28.c index 934399a7b3a..0f83c03ad3d 100644 --- a/gcc/testsuite/gcc.target/riscv/arch-28.c +++ b/gcc/testsuite/gcc.target/riscv/arch-28.c @@ -4,4 +4,4 @@ int foo() { } -/* { dg-error "ISA string is not in canonical order. 'e'" "" { target *-*-* } 0 } */ +/* { dg-error "'i', 'e' or 'g' must be the first extension" "" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.target/riscv/attribute-10.c b/gcc/testsuite/gcc.target/riscv/attribute-10.c index 868adef6ab7..8a7f0a8ac49 100644 --- a/gcc/testsuite/gcc.target/riscv/attribute-10.c +++ b/gcc/testsuite/gcc.target/riscv/attribute-10.c @@ -3,4 +3,6 @@ int foo() { } -/* { dg-error "unexpected ISA string at end:" "" { target { "riscv*-*-*" } } 0 } */ +/* { dg-error "extension 'u' is unsupported standard single letter extension" "" { target { "riscv*-*-*" } } 0 } */ +/* { dg-error "extension 'n' is unsupported standard single letter extension" "" { target { "riscv*-*-*" } } 0 } */ +/* { dg-error "'i', 'e' or 'g' must be the first extension" "" { target { "riscv*-*-*" } } 0 } */