Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp590772rwo; Wed, 2 Aug 2023 00:29:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4itCa9U4qPIMfFhrLHGK/ZQsL6qfiXPfxYQhnv/oyTQVlv+ZwLvMB8XXh4F4upLlAEQXI X-Received: by 2002:a17:902:7486:b0:1bc:5d0:e8db with SMTP id h6-20020a170902748600b001bc05d0e8dbmr10349694pll.62.1690961351592; Wed, 02 Aug 2023 00:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690961351; cv=none; d=google.com; s=arc-20160816; b=v43/7dHo8Un9XkgTiJeDAVNZtjEwkdKYesT+ES1qh+HxMjWhLe3jN1dg7fDyCwMb77 TEH7hY1ktiAHz0iwunglQjrzESqUV0BpKNl2NayozGw086OM06I59c4NcDtU/eyzRAbb qRatX2GmCV7J2tT5O5A3gUzRvamyB4OakbyvnnplYNxr8dxztldIVyKy9SHcOEhRcCbj Ubx6XR+kTtZ3xSF2Pol/9YeYUbI645t6tS/EEsW8HHfpqigh+ws4Gc8xg9FkYGIMFciR rhBvnWe3dGqqlC0lwp+Q2UYP/qqQLnW8caHV0o70tg0CTMWw6V691QtNzOSAcborz/Yk 3iyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=Ytvb0mJTCqFvSWUzjrpJ3J+FljcDta2FuHCw3g9+xyM=; fh=hV3KLHfUmOINukIEi38KBnZAIQ+E3R+m9rKuh7JPArc=; b=YMuUyG10h7qDfq8F3f2oAaWJb1Vf7Tb28T3LwDqAo/5ctb0hVi659N/wBRAoPZWXfF SxH6+qAZbyoh0bUlGyWHkYYfl+krt4H3zskS/xre00f+8eeId/VDtobDvEpK4drs179Z 4gb/MIzUFEeWIxY8zDPtB6F9IYpHHurDNHrK34hM6kQXsbzHSJ6iGjTH9x/l+b9KwklL 96Kus1BXR0WNfemq1d3tECWn/qRhfg7LQvEW3LI8YsVb7eYQ4V3PcGuQ1gLlEdPXncmc +UnUCnn4H5TobsbkDXPDkDK3xIBQms4uDI0X0mL+0M2CsJSTkGyso3WNP2WO1kgd/zdy 8iQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=X8GskQHK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rVZI7NEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik12-20020a170902ab0c00b001ab1ba2572csi2911841plb.240.2023.08.02.00.28.58; Wed, 02 Aug 2023 00:29:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=X8GskQHK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=rVZI7NEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjHBGAY (ORCPT + 99 others); Wed, 2 Aug 2023 02:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232118AbjHBGAU (ORCPT ); Wed, 2 Aug 2023 02:00:20 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD24C213D; Tue, 1 Aug 2023 23:00:13 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id E63BD320094E; Wed, 2 Aug 2023 02:00:10 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 02 Aug 2023 02:00:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1690956010; x=1691042410; bh=Yt vb0mJTCqFvSWUzjrpJ3J+FljcDta2FuHCw3g9+xyM=; b=X8GskQHKcF/CLu6sH9 eHdMyaeNGKePN3uazuZn7+yG1MgasXQeSW+4D5a9qh01PZJ7ruxAhWLUmqLv/5A1 W6H07qlbCkDckdcSq23RL5reCF4qGn2CJ7AFFzvrvuiIyF6avFGWDuPiIDTDDza7 sITrpD0bLEVEOugi610GvCf2CpcRN/uAN7rFDfopQ9Kls2M+mvohHTIgclscWePT IzeLsuUrotGQT+H+7RNajuQNxx1XCoa1DvJJ5Hga0P3V/DrFgmlN48jWyzxywzvR EIsEeQt1j8VMOaYXXdnLEFTpd/PIDbv3gVRDO2Rf4qW2CutL5wCa7f3aFyUesjBm qnXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690956010; x=1691042410; bh=Ytvb0mJTCqFvS WUzjrpJ3J+FljcDta2FuHCw3g9+xyM=; b=rVZI7NEq96ProyK7mRRMmZ9uNP1XY U60ejYdcwBAhAR8FRm0b43P47NNM4476RHXJVqz/nect8HFS32ww2FrZLZfDJNFj nTnKfBQ8SOHjto76Bp9hInu8Z2aQgIa95Tj0/F+hnsevQld0WJob9UOapGSFOrr5 N+cc0kc4CXtrZ9sb+emUOVvGisqm5TaiFNe0yyVC4BFqIe069x7BSdzhm3i9GTlL AxvGwPLPUCK3283/Shk2fhcVU6K8QFI2TOkxy+6PQD4C/MzdLPr25hYGQV6ncCu9 K1tQdzUC8qIQLrxnIQQcYoqNk6IjHludpZUC7nMTg3HpQ+ejVpLz7Nv/A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrjeejgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D5750B60089; Wed, 2 Aug 2023 02:00:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: <847747a8-b773-4b7b-8c14-b8ef4ba7c022@app.fastmail.com> In-Reply-To: References: <20230801-bitwise-v1-1-799bec468dc4@google.com> Date: Wed, 02 Aug 2023 07:59:48 +0200 From: "Arnd Bergmann" To: "Linus Torvalds" , "Nick Desaulniers" Cc: "Nathan Chancellor" , "Tom Rix" , Linux-Arch , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" , "Sven Schnelle" , linux-s390@vger.kernel.org, "Thomas Bogendoerfer" Subject: Re: [PATCH] word-at-a-time: use the same return type for has_zero regardless of endianness Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 2, 2023, at 03:07, Linus Torvalds wrote: > On Tue, 1 Aug 2023 at 15:22, wrote: > Who ends up being affected by this? Powerpc does its own > word-at-a-time thing because the big-endian case is nasty and you can > do better with special instructions that they have. powerpc needs the same patch though. > Who else is even BE any more? Some old 32-bit arm setup? > > I think the patch is fine, but I guess I'd like to know that people > who are affected actually don't see any code generation changes (or > possibly see improvements from not turning it into a bool until later) s390 is the main one here, maintainers added to Cc. Atheros and Realtek MIPS are older but still shipping in low-end network equipment, and there are still users on old embedded big-endian mips (broadcom, cavium, intel/lantiq and arm (intel ixp4xx) hardware. All modern Arm hardware (v6/v7/v8/v9) can do both big-endian and little-endian, but actual user numbers for big-endian are close to zero -- I have not heard from anyone actually using it in years. And then there was a lot of the old-school workstation/server hardware (m68k, mips, parisc and sparc, not alpha/ia64) that is mostly big-endian and still maintained to some degree. Arnd