From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id CAE603858D35 for ; Mon, 13 Nov 2023 23:45:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAE603858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CAE603858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.129.153 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699919114; cv=none; b=hpUNdBwBhaRw5tXcwrPCPYinHjcsQHO5qBZ/Q6Tan1AuLBCJEf4kZCvtRyEeO9oYDADEn6fo9vR0BQoMJR0GmFpbwm968eFbntA8k79y165Qay84ajSZTT6pXYfTsr/aU8/mz7ryb8+HXWuFZoqqEDeYWJA7Ff2DatmZb7S2FEk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699919114; c=relaxed/simple; bh=hDXwXhvnIzQwqdAxUjoGA5ZYO5AiXylfOlQyUYa2LMU=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=CvqmRNdnXAbf51YhyxYljHCoLNmISVqBa3FRf9IE612k56rjokoro/lRwEH/1SjJdG0XwqxrAiFlcQHtXxsjYEhtFfz2xTHrrr1bUwgz9wn3fAplGUmSRaQ+v2LUQACN4OaJyv6v0UV+5RakRUK4UtO3yMQ63xU8zF3y5cPMGaY= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: 2nHkBLFjSXmtANoq0KyBRg== X-CSE-MsgGUID: NI3SHv1AQMe+lmOAhCoNgQ== X-IronPort-AV: E=Sophos;i="6.03,299,1694764800"; d="scan'208";a="25636111" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 13 Nov 2023 15:45:08 -0800 IronPort-SDR: Hoxb1c6gLxa9Mgpm3vy/0AQpx+d65ogC79pJyUjOi2U14umWUWd8sMf1D7oKKgbn58Ndn5eDGx +p6yDtSNJI6Ng8Zb4Rpoa7ZXYP2z5UhBUS1HqOJjafdRgfp5WbRkak1p/kSNaNvrBF9y6Eo9/g 85qc2PYqHSH4QaE/mfhEeUsQVa28TLHlwX+L6NvSO9sxZHK2Yv0PfvIDWRQXmgSK4IdcGR5qDK xV7a+grUDiwpMDJkkiR4fHv++5UOSF5ra+ZQHYO/an0phOi25pDpLBcuGSlHgvvG1i0iRsGuAf Jqk= Date: Mon, 13 Nov 2023 23:45:04 +0000 From: Joseph Myers To: Jakub Jelinek CC: Richard Biener , Jason Merrill , Subject: Re: [PATCH] Add type-generic clz/ctz/clrsb/ffs/parity/popcount builtins [PR111309] In-Reply-To: Message-ID: <8e80ec1d-ef19-86d5-9253-e490fc6cedab@codesourcery.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3580.5 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,TXREP,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 10 Nov 2023, Jakub Jelinek wrote: > > Besides the above question I'd say OK (I assume Josephs reply is a > > general ack from his side). > > Joseph, what are your thoughts on the above? It's correct not to promote, since that matches the semantics of the standard type-generic macros. (I did suggest in WG14 that the type-generic macros might make more sense in the cases of functions that are genuinely just functions of their integer argument and not of its type, such as population count, than for functions where the result for a given integer argument depends on the width of its type and not just the integer value, or that passing an explicit width argument might be appropriate for type-generic macros in cases where the width matters, but WG14 wanted all the type-generic macros as-is.) -- Joseph S. Myers joseph@codesourcery.com