From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0DEE23858D28; Sat, 4 Mar 2023 06:42:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DEE23858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677912145; bh=R5lV2otAzQ0EsdjRsm3U3XP+4Cenq206JRZN8uzS0DU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Grzj4f3wmRcCxdHj8U6QXHjdHo9rrDx9uSU+ScXwXq4mAmgGOWKmHEKhTF3ESHdkg 0mq4eX3XYiajoD5rnV3N3tFEQYVLuGhmRvJdAm3mXAUgJ9JYFdxTrc6lNIlYpV3eSZ JOsj8wO4bOM5K5wi6p1RYgtZmcCQqGHtdgP2/uyE= From: "bugreporter66 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109004] [10/11/12/13 Regression] wrong code for -O2 (any above -O0) with g++ 11.3 for POWER9 (cross-compiler on x86_64 host) Date: Sat, 04 Mar 2023 06:42:24 +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: 11.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bugreporter66 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: 10.5 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=3D109004 --- Comment #1 from bugreporter66 at gmail dot com --- Checked g++ 10.4 today, it works as it should. 11.3 and 12.1 were tested to show the issue so far. The command line for building: powerpc64le-linux-gnu-g++ -O2 -static test.cpp -o test_p64=