From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44D4B3858C52; Sun, 19 May 2024 02:46:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44D4B3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716086809; bh=mefV53nprI679jI0OX6qIkSACcuUW0Elq5OKwfgDRBI=; h=From:To:Subject:Date:From; b=RZpDDzb9HPm/ydpXiodB90WiHO1zrdS0CyvVb1y51Rsq4a4zKe+dWIoSYd1UjZ0xg klGwn3MLxmuJtxk0kjCMaKhYgnJVmF+FlrmEeWi1JNm/IYMQLFIBrGF/0HVbfEOqL3 WgZXamx3UiJmZc7dWTuPs0/HujRHk50kDYcwAX38= From: "bic60176 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115154] New: [13/14 Regression] wrong code at optimization levels -O2, -O3, -Os Date: Sun, 19 May 2024 02:46:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bic60176 at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D115154 Bug ID: 115154 Summary: [13/14 Regression] wrong code at optimization levels -O2, -O3, -Os Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bic60176 at gmail dot com Target Milestone: --- Created attachment 58242 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58242&action=3Dedit testcase OS: Ubuntu 22.04.3 LTS We found that there are discrepancies when compiling with gcc-13.2.0, gcc-14.1.0 at optimization levels -O2, -O3, and -Os. $ ../compiler-builds/gcc-13.2.0_build/bin/gcc -fsanitize=3Dundefined -g -lg= cc_s -I/home/csmith/include/csmith-2.3.0 -O2 testcase.c -o exec $ timeout 1s ./exec 2>exec.err f.b=3D0 $ ../compiler-builds/gcc-12.3.0_build/bin/gcc -fsanitize=3Dundefined -g -lg= cc_s -I/home/csmith/include/csmith-2.3.0 -O2 testcase.c -o exec $ timeout 1s ./exec 2>exec.err f.b=3D-1=