From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2E3683858409; Thu, 20 Jul 2023 17:38:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E3683858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689874691; bh=LfMLPPzJjunz5uUceARGOVDI+T8GtAu8SfgLF5yEf1s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b/hpeRPr1RyeV6O05hAi9I5khHUfuZ4E5VgMvCArHfeNBVoyi8bUkgr/WByEKDduT zy+oIMlXBIQZTmEu0URX0pfywXk1Nbzixu0t+9AB4SGkv0mDvc0czo8+NYOH5Lsxsi Ml2xQXfwpEE6aLtzCC4ikefVhnXIzKt+T591IisE= From: "vineetg at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110748] RISC-V: optimize store of DF 0.0 Date: Thu, 20 Jul 2023 17:38:10 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: vineetg at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: vineetg 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=3D110748 --- Comment #9 from Vineet Gupta --- (In reply to Vineet Gupta from comment #8) > (In reply to Jeffrey A. Law from comment #5) > > I'd bet it's const_0_operand not allowing CONST_DOUBLE. >=20 > Correct. >=20 > > The question is what unintended side effects we'd have if we allowed > > CONST_DOUBLE 0.0 in const_0_operand. >=20 > Exactly. I had the same concern.=20 [...] > However to Kito's point, this indeed works in gcc 12 so I first need to > bisect what regressed it in 13. The mystery is solved. Guess what it was my change ef85d150b5963 ("RISC-V: Enable TARGET_SUPPORTS_WIDE_INT") in gcc-13 cycle which made the booboo. + * config/riscv/predicates.md (const_0_operand): Remove + const_double. And I don't recall why I did that part. But I guess reinstating it back won= 't be that radical, since it wa sin tree for a while. I'll throw it at full testsuite to see if there are any fallouts.=