From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DC48F3858C20; Sat, 9 Dec 2023 03:34:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC48F3858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702092847; bh=xwf278Kw42zXO0/UvLeYwjB6Hug87QuU7simb9ZaXlQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fGdCb0oKLfh8xksKd0/8NL4iC/CgC+/jvbD0Cta2Pc7H9AGDf0rftZp614bipu8TN dAl5r8c2sl1cNfAjv4Lc3Ey6XiXP51t4rYHOfuVIP6tx3YCPkVAvQUUgw+h05puQq1 8T324ttTpSY0BnPxwmZLYjyiPGiSKZkPTBNanKc0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112929] [14] RISC-V vector: Variable clobbered at runtime Date: Sat, 09 Dec 2023 03:34:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112929 --- Comment #4 from Andrew Pinski --- (In reply to Patrick O'Neill from comment #3) > A slightly more reduced testcase without the extra printf: > https://godbolt.org/z/1xjPzs9v5 Note add_em_up should techincally have: __builtin_va_end(ap); At the end of the function (though, the code generation for riscv is not different there with or without it).=