From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 480E83858D39; Mon, 23 Oct 2023 02:11:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 480E83858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698027106; bh=egX6w/ULGF5PHsfUNqFeCJcnnN26vvdsE6F3wFKMefo=; h=From:To:Subject:Date:From; b=AlW5Hukz81yq7KRzFjk/QpGOK7qhatGNU7C3K7Pc6Ox/76C4K5fj8FJuIsbHHoEGu u3EGmiE/GYPDqqaV3uOAgq4NG2uKq73yTpCdnrpp6Fxm+iqHn//6YDxe/3vyURliOX A8PmQVKawHo7AenQgCfdptO4wE5emcKCE9CrHaHU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V/testsuite/pr111466.c: update test and expected output X-Act-Checkin: gcc X-Git-Author: Vineet Gupta X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: 471f46045dd448aba7f402a707fd6debc7352386 X-Git-Newrev: 2332d766f1fa0ca75eabb93b9b7cbf01df87b184 Message-Id: <20231023021146.480E83858D39@sourceware.org> Date: Mon, 23 Oct 2023 02:11:46 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2332d766f1fa0ca75eabb93b9b7cbf01df87b184 commit 2332d766f1fa0ca75eabb93b9b7cbf01df87b184 Author: Vineet Gupta Date: Tue Oct 17 10:05:41 2023 -0700 RISC-V/testsuite/pr111466.c: update test and expected output 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 (cherry picked from commit 9cad42786ca28461633d524bbb6480f388bfdc55) Diff: --- 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