From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 23E133858CDA; Wed, 1 Feb 2023 08:21:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23E133858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675239702; bh=Jt5e03V7f7uqRX+YF6536NIumUeO6FnaNfdfe8heOr8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oY2hl7u/DtxSoJtC1cX+sUE/7leqOFxXKzt7dIbJfG/DFX5/SZ8yrZ3yMAafWKMTc c/yVs+pMluB6Dj9kWzK7OaF8a4Flh0tDLXGsLXghUq8gxqdf0Dt2cdPv/Popq5MPFU wWP33oOteAwSHLy3jvn+3ryHs4SstSbHJ0iyKbi4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108623] We need to grow the precision field in tree_type_common for PowerPC Date: Wed, 01 Feb 2023 08:21:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D108623 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org --- Comment #2 from Richard Biener --- Note there's code that might need adjustments. We for example have /* Return the number of elements in the VECTOR_TYPE given by NODE. */ inline poly_uint64 TYPE_VECTOR_SUBPARTS (const_tree node) { STATIC_ASSERT (NUM_POLY_INT_COEFFS <=3D 2);=20 unsigned int precision =3D VECTOR_TYPE_CHECK (node)->type_common.precisio= n; if (NUM_POLY_INT_COEFFS =3D=3D 2) { /* See the corresponding code in SET_TYPE_VECTOR_SUBPARTS for a description of the encoding. */ poly_uint64 res =3D 0; res.coeffs[0] =3D HOST_WIDE_INT_1U << (precision & 0xff); if (precision & 0x100) res.coeffs[1] =3D HOST_WIDE_INT_1U << (precision & 0xff); return res; } which looks odd anyways. Richard might know where the 10 bits have been baked in to (ISTR something about the INTEGER_CST encoding stuff here with the three kinds of "precisions")=