Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2331531rdb; Mon, 5 Feb 2024 03:21:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFY47Q88fK3eB4Egkcys1BN6Lx4aPfFu2pDE03qSH9I4DeEL606kpYlKT1NLL47iY6jSYXO X-Received: by 2002:a05:6870:f14a:b0:219:5dc9:691a with SMTP id l10-20020a056870f14a00b002195dc9691amr6037498oac.47.1707132100830; Mon, 05 Feb 2024 03:21:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707132100; cv=pass; d=google.com; s=arc-20160816; b=XBSkEe1Cv81t/sXd9KfOKSWf9hs84CxNmXOnCYD9mIeU9O8DYRkEaXhI33aZSIM7ra FFgLIMQxUt9ueoMTpciHFk7dnaVZCddUaTGST+ytCgFvwJz5GvCGv/UA/uNqXfJHZKIb DPeVbUo4yiup1EEyuX6Fd1a04RFDt+h+dYyI+Lp/HqeISs7r502FFfPrHbuZGEGbrQvQ PncCHvy+ev8lmvQdq4NbLD/uplzd7ZKOvLAREWe7l58UFchTCObEtNnRhSt0VKsvBtvJ /KTscuHSHYD1PW0BUaX4wJfGMrFNn500AJrRcoDFXSpvjeqsSxBe/oC3nGt3FfmgXQo4 ABEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence; bh=wae8WXBpMrupkMu8qpekTMb7NwMJ3LJZiULn/omIxyc=; fh=9AfhV55mRtdgDqTnJQemghvg7RBqEG7BYF5rZfrbp90=; b=EhEmzORQ5jBekUIN2Gy8wniY3A7ApPhKoMCH6GFRWHvNjBfe4/PcUIKqOVv/Jvymtx IEvmglfO4fX5iYXnRRMmm2DabOQovv9FXowCxJUZjYklqCLj4kLZ63b2ylgAk9az3jLK aB4uIX7p2lqcftNdt1L3d6N/QQYgJGISg+xum7KpQMws2q4y137lsXC+I2UBqPfy40WF LVWx9W/eCbFM5E2DpIXtPj0yrGc/3H6p2Smg22WGcoOyo9ZyJ8YxoDL/IU8tOqan0Yhd gcLwgf/3C39ZYhcZSohGazuUUaP+ev7odKLlTTw9EyQCdIJHNsJrLY+sjACNhZVRUB5b Opdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr X-Forwarded-Encrypted: i=1; AJvYcCVjjwxvZoE/jxpzKLY8FmolaFWA0kWZfM+IMMtg7bqp1Av/x7vAWkUolLLR4BV7ecNLboTc8TFkcOIKj25YTmPgLlDF9SMD6fKTz1J5lw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b23-20020a63d317000000b005dbf22da2c6si6067593pgg.61.2024.02.05.03.21.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:21:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 27D1CB26992 for ; Mon, 5 Feb 2024 10:43:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A45E81758C; Mon, 5 Feb 2024 10:43:31 +0000 (UTC) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0BB917575 for ; Mon, 5 Feb 2024 10:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707129811; cv=none; b=iB/5BmUawFaZN8LcLPzG8AgVX78mq3AxDdnZIRzziiIL0KDvi2lX6nb2o2d+fTGp0K/X5K0NLmLRgU8F5qcoIKBYznWOCeVI0KEjtbCu74eXkOLz/o30P1Mt1To0OSmDKf1OrlspcZuJCrE/KxYIg5D+kulWBYgG3sQT7W7XriA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707129811; c=relaxed/simple; bh=wae8WXBpMrupkMu8qpekTMb7NwMJ3LJZiULn/omIxyc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ldzd1WWixzo2iHUaCOtW3SB2HyAGEUm+uYJXU4x0mfKUv7R9ifDJAbZlRJysWKnLptaGbmulCSbS4garj/gPM7mn1s84kJk42JxipuvQXjtbckI6wuKkpZcLdHu6yMlLaD2Io8OBHRwhJmZ7W5U1lnHg//osvTdoX3Jb1MInRF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-290da27f597so2785500a91.2 for ; Mon, 05 Feb 2024 02:43:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707129809; x=1707734609; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wae8WXBpMrupkMu8qpekTMb7NwMJ3LJZiULn/omIxyc=; b=H3+8UtRyZ6rIAhw/XGIeU6Ipm1qxqhqvJJYTdJfVlmiRgrvPcJdgrA2lhDLY6RBtJ9 PzuLDT5FCE8PhNFWtrpq2ZHslJzrdyJO85ryppT/EDA1rBR3zyRLp4AFnK2x2U/cjngG 58kh5YNpdxZahqTPgfKthFa04+tS1RU8XNjq7J3HKMPSPKc3bM0nm88j9GvEOHHE7bGx RvDH/5kaQchiI0dTynnFrCTsChtdiVAqgXko1D4CO2TiCpHZzXVzT3U2kh9hZNNGeG8i Xr91Tt2c2kG23tTyijklMcEZQmw7ZxveNanyZO9BJjLJeZBmxsMB+0G6DUzzR4sow+SO QWug== X-Gm-Message-State: AOJu0YzpCqtltb2r0VV/23G6BxTDM7WXBnb9KJfBZyBmu4uVQIsPIbpB iCUs9q0+jPxD8+sWLpIkYpqUuxxIKvlcknXBHactXu16FA7RXzAdYLn3odvnH7B2n5BG8LRlpSL QDrECOp1vtWzKUDSHGU52sMDQwDg= X-Received: by 2002:a17:90a:ac0c:b0:296:b8e2:b836 with SMTP id o12-20020a17090aac0c00b00296b8e2b836mr4468pjq.4.1707129808884; Mon, 05 Feb 2024 02:43:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20221111081316.30373-1-mailhol.vincent@wanadoo.fr> <20240128050449.1332798-1-mailhol.vincent@wanadoo.fr> <20240128050449.1332798-3-mailhol.vincent@wanadoo.fr> <9d9be9dbe92f43d2a95d11d6b2f434c1@AcuMS.aculab.com> <77831c6f-7fc9-c42d-b29b-c3b2f3f5e687@linux-m68k.org> <002675b0-6976-9efa-6bc5-b8bad287a1d2@linux-m68k.org> <00a7e866-23ff-fc63-b6df-364580f69c78@linux-m68k.org> In-Reply-To: <00a7e866-23ff-fc63-b6df-364580f69c78@linux-m68k.org> From: Vincent MAILHOL Date: Mon, 5 Feb 2024 19:43:17 +0900 Message-ID: Subject: Re: [PATCH v4 2/5] m68k/bitops: use __builtin_{clz,ctzl,ffs} to evaluate constant expressions To: Finn Thain Cc: David Laight , Andrew Morton , "linux-kernel@vger.kernel.org" , Yury Norov , Nick Desaulniers , Douglas Anderson , Kees Cook , Petr Mladek , Randy Dunlap , Zhaoyang Huang , Geert Uytterhoeven , Marco Elver , Brian Cain , Geert Uytterhoeven , Matthew Wilcox , "Paul E . McKenney" , "linux-m68k@lists.linux-m68k.org" Content-Type: text/plain; charset="UTF-8" On Mon. 5 Feb. 2024 at 18:48, Finn Thain wrote: > On Mon, 5 Feb 2024, Vincent MAILHOL wrote: > > > > > This is why I am asking whether or not clang support is important or not > > for m68k. If you tell me it is not, then fine, I will remove all the asm > > (by the way, the patch is already ready). But if there are even a few > > users who care about clang for m68k, then I do not think we should > > penalize them and I would not sign-off a change which negatively impacts > > some users. > > > > If clang support is important then clang's builtins are important. So why > not improve those instead? That would resolve the issue in a win-win. I am deeply sorry, but with all your respect, this request is unfair. I will not fix the compiler. Let me repeat my question for the third time: are you (or any other m68k maintainer) ready to acknowledge that we can degrade the performance for clang m68k users? With that acknowledgement, I will remove the asm and replace it with the builtins. Yours sincerely, Vincent Mailhol