From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E2C5D3858C5E; Tue, 14 Feb 2023 12:12:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2C5D3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676376775; bh=4el5LFr74naYX+848yBw+J/LRv6V40b36oBQF9BfjHs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ybVxubP3k/X8Aiq3n8GiqoGaWPvb8MJ4Cmafy+uqpHt09/379m7m0xwf5gq9fzskT Abd+lVQHXzU7GQ5a8EdsYNeodW484o3vTKH1wZ8RhrxLrPoquiZB+pfXLjX7waXexD JD6rqlG+jCtSnw6xqZ/k6cBMuX1wqx2dLZ97JuS4= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108699] gcc.c-torture/execute/builtin-bitops-1.c fails on power 9 BE Date: Tue, 14 Feb 2023 12:12:54 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc assigned_to everconfirmed bug_status 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=3D108699 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-02-14 CC| |linkw at gcc dot gnu.org, | |meissner at gcc dot gnu.or= g, | |segher at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gn= u.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Kewen Lin --- Confirmed. This is due to one latent bug. When specifying -Os, it doesn't try to use SImode parity any more, but tries to use wider mode TImode parity instead, = it resulted in the wrong result. The current vector parity (including TImode) support is wrong: ;; Vector parity (define_insn "*p9v_parity2" [(set (match_operand:VParity 0 "register_operand" "=3Dv") (parity:VParity (match_operand:VParity 1 "register_operand" "v")))] "TARGET_P9_VECTOR" "vprtyb %0,%1" [(set_attr "type" "vecsimple")]) The vprtyb[dwq] is for byte parity, it doesn't match the RTL parity semantic directly.=