Message ID | 20231017201425.98668-1-vineetg@rivosinc.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4376160vqb; Tue, 17 Oct 2023 13:14:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaLlS2Ojmup6z4pj9NpgNL1PcBeo9Mtr3TKdO54QxRx+wFTpL42S8Jb/FfATFBSAoqfO6z X-Received: by 2002:ac8:5d90:0:b0:40f:cf7c:5e7c with SMTP id d16-20020ac85d90000000b0040fcf7c5e7cmr3858673qtx.24.1697573696254; Tue, 17 Oct 2023 13:14:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697573696; cv=pass; d=google.com; s=arc-20160816; b=LIZHvMWDJua8InmtZiSuG3RAMKXAUy72GffxTyddhviaNi04Z+HEfhCRiudQr70vL+ DU2PwGDOZ+Wutbff8/2kborJeHYVC8opIcAZUi7fTPPXpAZ3QXWYUiwsGW0r4j0GfI9S dlYuMyKonIywanCXXd22vdWWMr2Gc2mkwaN8dByxekrByPxmmEWrZ8lbOTnsLLKaJWh3 46JZRHjN7ER5mTjrLAcXTIjXmYq6Joov0E/dZHAv/A5x80ZyzzL1iBonLBICYLhJCrHU u/NifCkabcJL1k6zhp7y3BxS+E+A8VVHYN+wsL6DE1nOfcTslVE0nxUoRIqumEIk7yZy M3Xg== 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=Hl5MvaqKUB9TSyG61/3fb1ekFusC0zkoBNhddYqcTMQ=; fh=ydQ/5StBXPwBoCR+dlqqegDRP0vDb5Guks04U4f4PRo=; b=Lo96Xq8heTOal5d7M96niVnhZ7DpGvcIKrEdZ+WLIQb+ch2hezrpD2AyxEE5v/8FoN tFOy0C40puEzKpoXm+fBwnIyeDMgCCQEaxljgww4Jr08Kw1ob11QIesFWPp76sEYpomr cg7JkWCR0MwArPWuz6dFAVRZSrLfZavRhlo9ie0vi+O5ZRoVutYWIH9Uaa5I4ZxyibWg 5eHhAFa7ru24BaO8WIzW9YgH3xsdYTxgUKxFEtGkvUBR8KkzulE+YjrI64AaUQXDjcGA UBGhuuuR/Ae3Omhrg6x0oMNHiYwhqFAKon2bACWQPUnnVQr6oMAbFcB18oXZR+Fl2O6S 0qxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=kUdlWwsk; 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" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id n6-20020a05622a11c600b0041986eba0c3si1673895qtk.350.2023.10.17.13.14.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:14:56 -0700 (PDT) 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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=kUdlWwsk; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0E37C385782B for <ouuuleilei@gmail.com>; Tue, 17 Oct 2023 20:14:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id 7E0CD3858D33 for <gcc-patches@gcc.gnu.org>; Tue, 17 Oct 2023 20:14:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E0CD3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7E0CD3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::234 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697573673; cv=none; b=joq/B86jbYruy2DHHRFpddiC7OUcEuLKvmioniTj6VWIpd40sg6qxbrLJwyupBMLEtNsWzRM/UXeHOxsHeaXTzTK4jcN98eBPJwGOW8dP4TB6lUb8l4vk0VVSOsN5/lrzccyRLVt3LPT0aRektN0YNJfpF7JzUREkp0IfNsKYQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697573673; c=relaxed/simple; bh=Cp8kKP6sMtD5CVOK+VBAAowy89o85MtlvKmlrSLp0sc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=t+3+MmF+hKNKcOZr3zssx5EY7C85+jkrmVuN6J7bHAUkN5vfDVXdIMdn1r2iyPhpXMhyKyNqIqx4ZyNfXP5bjdkn3LjSMybjTt3Pg2W+KFvPGTloNwsNJ99+59yjxdtks1IeamR/OuLf1pyOnK2xdaDNF4GYrkKuscI5gR7alRk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3af64a4c97eso3294549b6e.2 for <gcc-patches@gcc.gnu.org>; Tue, 17 Oct 2023 13:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697573670; x=1698178470; 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=Hl5MvaqKUB9TSyG61/3fb1ekFusC0zkoBNhddYqcTMQ=; b=kUdlWwskstC9p4K+KegaZx97xhlqWSPkTQVqiDhEXqInNiHOlDcXRw96lyv2FOyno0 xa912eYWgL96xtwq1Tvjc/uEgo7ihMNos0vKI8NjpOShD8wcH1TWKSqivorIFqIYi34V 69trZgSMfDVKaF9uMJveRCfhFGaEtRed/VoFxGEoSAoNfkrv5IDUTe91g9Rp+2xZZHFC FOfrwsdb3Jf6nEXP322ouU9etH0DMzB5zZZSoVg9rFCWcCUBIET0h5lH8edzd4eK0WId ciWApD+Wmt0neJ/lIO1WulVnAG3CCMc8EvpIqkLr65Up4TLvhAd6u8dC8xgnddfWcI/+ C/7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697573670; x=1698178470; 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=Hl5MvaqKUB9TSyG61/3fb1ekFusC0zkoBNhddYqcTMQ=; b=tNhXSA9fKthjcWW2+3ixfSLVgSo1KeRUVduXnWAwr4MGBznTnYMQ+8x0tDlk6pzfcx eiX9XqsUnVdlCYqFFVk94K0RqpwYNeB92/AtkxoBsZRAm1JoAbTvp87QhdvIiqcn0RfI tX6jmYWHA/JnY4PQ8z2LgtDO7BPQnX5uelP/GY+y4F3QyjhK7XFzUixadZEdkvRNzWjo sDgli6Hyw4N910ww7Z8MU3yKhZjbWRXkpvOHdaZai7NBbjrM37lypG2FFAc3OlrMe9HX trhrVRySneH2TQem0ajLaRZMCCH6iNwX8ZpNAjTqI9OPdzTIo2163mL93SGmdFqUZQyw YKGQ== X-Gm-Message-State: AOJu0YywwOIcoa/c+QYO9ftsLj2plqAHgHl9k79r9VtCGxpKyjrGnBls kE485GrCQAOmXG+/oUfU9tnn56By4KGec4L/aas= X-Received: by 2002:aca:130a:0:b0:3a4:6b13:b721 with SMTP id e10-20020aca130a000000b003a46b13b721mr3376490oii.46.1697573670630; Tue, 17 Oct 2023 13:14:30 -0700 (PDT) Received: from vineet-framework.hq.rivosinc.com ([208.116.208.98]) by smtp.gmail.com with ESMTPSA id g10-20020ad457aa000000b0065d0d0c752csm808132qvx.116.2023.10.17.13.14.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:14:30 -0700 (PDT) From: Vineet Gupta <vineetg@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: Vineet Gupta <vineetg@rivosinc.com> Subject: [COMMITTED] RISC-V/testsuite/pr111466.c: update test and expected output Date: Tue, 17 Oct 2023 13:14:25 -0700 Message-Id: <20231017201425.98668-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <594b3649-5d1f-49f5-ac1f-6a9c5d2f7b7d@gmail.com> References: <594b3649-5d1f-49f5-ac1f-6a9c5d2f7b7d@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780029841456722952 X-GMAIL-MSGID: 1780035036112577078 |
Series |
[COMMITTED] RISC-V/testsuite/pr111466.c: update test and expected output
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Vineet Gupta
Oct. 17, 2023, 8:14 p.m. UTC
Update the test to potentially generate two SEXT.W instructions: one for
incoming function arg, other for function return.
But after commit 8eb9cdd14218
("expr: don't clear SUBREG_PROMOTED_VAR_P flag for a promoted subreg")
the test is not supposed to generate either of them so fix the expected
assembler output which was errorneously introduced by commit above.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr111466.c (foo2): Change return to unsigned
int as that will potentially generate two SEXT.W instructions.
dg-final: Change to scan-assembler-not SEXT.W.
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
---
gcc/testsuite/gcc.target/riscv/pr111466.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.target/riscv/pr111466.c b/gcc/testsuite/gcc.target/riscv/pr111466.c index 007792466a51..3348d593813d 100644 --- a/gcc/testsuite/gcc.target/riscv/pr111466.c +++ b/gcc/testsuite/gcc.target/riscv/pr111466.c @@ -4,7 +4,7 @@ /* { dg-options "-march=rv64gc_zba_zbs -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } } */ -int foo2(int unused, int n, unsigned y, unsigned delta){ +unsigned int foo2(int unused, int n, unsigned y, unsigned delta){ int s = 0; unsigned int x = 0; for (;x<n;x +=delta) @@ -12,4 +12,4 @@ int foo2(int unused, int n, unsigned y, unsigned delta){ return s; } -/* { dg-final { scan-assembler "\msext\M" } } */ +/* { dg-final { scan-assembler-not "\msext\M" } } */