From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7921) id 2529A3858D33; Tue, 17 Oct 2023 20:13:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2529A3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697573595; bh=tsYFhv0ovhOQs+BeGb8DXiCGMzyUy/TpcSgYhdRmRno=; h=From:To:Subject:Date:From; b=IOhdql8kFziixvtzu3Zavpds+4bxEIrCvCA49N1isV04Eea69KTOXWW+f0SqlHFhy fi6aHhFJn6Xc4FDasEldX2Rqtr0e5QIpVA7u+jXqAguLHBEILBVlW+E046cXpq8vq+ K3giTGHn7uZzlBRNoWo7KeVrljBNyibwR4PJUn68= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Vineet Gupta To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-4690] RISC-V/testsuite/pr111466.c: update test and expected output X-Act-Checkin: gcc X-Git-Author: Vineet Gupta X-Git-Refname: refs/heads/master X-Git-Oldrev: 1f186f64b8602d74769af4a6250255e51227f744 X-Git-Newrev: 9cad42786ca28461633d524bbb6480f388bfdc55 Message-Id: <20231017201315.2529A3858D33@sourceware.org> Date: Tue, 17 Oct 2023 20:13:15 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9cad42786ca28461633d524bbb6480f388bfdc55 commit r14-4690-g9cad42786ca28461633d524bbb6480f388bfdc55 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 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