From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F5023858D34; Wed, 1 May 2024 05:29:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F5023858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714541382; bh=fnqHV09MvKaRKZo2fP8I6oLEeS1/B6Jtt0obcEuJZFc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nqpUK9I5xj6+51uJv0cJFDNYdZ77U7PHiKWNR5ah7Nmmq5QYnhHkJtVyArhlyAv6C jyuYX4ZS2E1rbt5n3A8BLXnYHXjninkEt1Or6S2LSsoTsSEq07fraia1eZR3yMO7la xk4lUluY2t96OXjq+hRmt8FppBkY0RIqVMxVpnN0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/114902] [14/15 Regression] wrong code at -O3 with "-fno-tree-vrp -fno-expensive-optimizations -fno-tree-dominator-opts" on x86_64-linux-gnu Date: Wed, 01 May 2024 05:29:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114902 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > here is a reduced testcase: > Note ` -O1 -fno-tree-fre -fno-tree-forwprop -fno-tree-ccp=20 > -fno-tree-dominator-opts` This testcase is broken in GCC 13 for mips64-linux-gnu with the added option -march=3Docteon. And it has been broken since at least 4.9.4. andi $4,$4,0x1 xori $4,$4,0x1 teq $4,0 j $31 move $2,$0 That is: $4 =3D $4 & 0x1 $4 =3D $4 ^ 1 trapif $4 =3D=3D 0 That is the earliest compiler version I could test where I Know that sign_extract shows up in RTL.=