From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2692D3858C50; Fri, 28 Apr 2023 15:09:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2692D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682694583; bh=dqKJHQlgimMPmB6mMwOFxgc8oloY6hFiavS+3T0g5ZA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M2BNTXKvHiqQztWfF1iR/uKUtdPee7nfinAf6v75jU+98fTj4oF89Uu2YON8Kd3Ok 7+cK8l8pI5qRwQNJXMI5RPXqt6k6U/iV07z4tq+1FLcN5nsKNvIL57C+St+0iya2X7 ZedqVb7ITohGuybAbSutduT0Iulm40mNqP7J7TMI= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109650] avr-gcc incorrect code with -Os Date: Fri, 28 Apr 2023 15:09:42 +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: 12.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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: cc attachments.created 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=3D109650 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gjl at gcc dot gnu.org --- Comment #2 from Georg-Johann Lay --- Created attachment 54953 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54953&action=3Dedit Full C test case that doesn't require hardware like UART. This testcase tests against the code as generated by avr-gcc-8.5 -Os. It sh= ould work for all AVR devices including reduced tiny like ATtiny40, thus eligible for testsuite/gcc.target/avr/torture Pairs that produce different results with avr-gcc v14 (current master). are: p1,p2 =3D 3,6; 4,6; 5,4; 6,4 and 7,2.=