From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA1B33858D39; Thu, 29 Jun 2023 21:48:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA1B33858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688075319; bh=mxDdfvTOV9AbMardtuh8w4TpqiPPYMvEXwg7+XLzf3M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Hk9glv60e6E+N7dJ+6FS82lgSNmxUXlQrFRhL7wVOM4r1G/tyaJPWD2/LFR0LF16w F5upUvH76T3eGZFq9kFaiMAXabnBpY+SlGtNCn1uzneHstEklUYvQhuiTseP2KBwXo 15AzUOgzeKc/1QRIuQZJmg1ZEaSFe6OeQSROZwTA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110490] tree-ssa/clz-* and tree-ssa/ctz-* fail on s390x with arch14 Date: Thu, 29 Jun 2023 21:48:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization, testsuite-fail 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: --- 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=3D110490 --- Comment #3 from Andrew Pinski --- I was wrong about where the problem was but not wrong about the missed optimization. Anyways the issue is in expression_expensive_p where the issue of clzdi2 and not having clzsi2 ... expression_expensive_p should check if you can do a widening of the mode ..= .=