From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82C67C77B7F for ; Tue, 24 Jun 2025 13:25:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 220CC6B00B5; Tue, 24 Jun 2025 09:25:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F87F6B00BA; Tue, 24 Jun 2025 09:25:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 135B66B00BD; Tue, 24 Jun 2025 09:25:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 016336B00BA for ; Tue, 24 Jun 2025 09:25:02 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A66FF1A083F for ; Tue, 24 Jun 2025 13:25:02 +0000 (UTC) X-FDA: 83590364844.08.6FF2534 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by imf18.hostedemail.com (Postfix) with ESMTP id D84441C0003 for ; Tue, 24 Jun 2025 13:25:00 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; spf=pass (imf18.hostedemail.com: domain of segher@kernel.crashing.org designates 63.228.1.57 as permitted sender) smtp.mailfrom=segher@kernel.crashing.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1750771501; a=rsa-sha256; cv=none; b=InxpI+E5VqSGF1nm+xJO0pKxLiqHr77dxQeT07ib3tF4YjTP7IPn3vqAZHLzW2RXLFfjFf 0OyIkLO/Kgz8VsMpBhILxRz+2y3UbzOeawi1RITNV3EZZFEGrpdF8u49LhyTBCACoalaPd kmAsqHigU0fLxaE698NNW4wCKkIDkJk= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; spf=pass (imf18.hostedemail.com: domain of segher@kernel.crashing.org designates 63.228.1.57 as permitted sender) smtp.mailfrom=segher@kernel.crashing.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1750771501; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=691ttiBDJIdkODJscPLuyaSKn7jnRfewEk9Xj2GdrD4=; b=EDta0MvIboIwDP3LumjZKBzqNvDvfz46Cj7O0GwPt6QtZOoICZd2n3bC6mKce/1hllq6ix NMyCluG/yZ7IqEkhHczli/Oe5nAY3vegfKhsGalpolGnNeJ59N4g8xz8SjM+2paOBwV+q/ jyEaau6Y2yRsVQ1w2m1/GO6a5txP6W8= Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 55ODHH69017475; Tue, 24 Jun 2025 08:17:17 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 55ODHFe6017474; Tue, 24 Jun 2025 08:17:15 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 24 Jun 2025 08:17:14 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: David Laight , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Madhavan Srinivasan , Alexander Viro , Christian Brauner , Jan Kara , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Andre Almeida , Andrew Morton , Dave Hansen , Linus Torvalds , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/5] powerpc: Implement masked user access Message-ID: <20250624131714.GG17294@gate.crashing.org> References: <20250622172043.3fb0e54c@pumpkin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Rspam-User: X-Stat-Signature: o1o13n6m54p68c5st1f84m36576n13x8 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: D84441C0003 X-HE-Tag: 1750771500-705869 X-HE-Meta: U2FsdGVkX19jJgAeD1dkD1D/1QWzRNGakLAj8E5RBl4VRBwIxJHrYb11JUxMvErtv2cxVMFcKJcBAQQW1bQI+MAtKMVY4jMdNIaoPIBK8qY4PnBOvd+vCYnFviR4tvuZWH1F8ZgixBOOgbPA3fNcMNXlHDXP+v0J5jaOE8poFwXZVvZe4KNFPrFOykbsDcQWuxdwVUywzyjsnzW4xlzRWkqUDMdz0MXvXNCZheOJoeBrRI8mRpAl3gGUMavk8FH2igic+b/8CiYTLySRgJhYqv/p76g7LW0/WlUpiwW7fnMoi21RjZQL6SEJpO22o/jy1jibjROGBm0t4vJDrWKmUkptpg4Ym2kt5/PcDWHnN1lFt8vxb6f/lga2QquCX5JdkusOCj5z4kPvKFnO5IsDqrJmfP8Uv0p+4jxLT0BZ3R2Tj90m/ksRy/JQdJzZIHCveZF1dptcLReDC1zJEj1Q0Z1QVvff9nu/ZUPJWx0t2M8j2GYwKMcFK2smB1C8wQqp5j2obn8PZwt8Ltp+fKfYmyYq4cB4bV7gJjaSqaAgzqBxpsdV3R6qy5PSIKpeKPPbCY6QOymDt+fEj9nDXkgJfMzh6JFD7PaB64FHAH1/6ncqTLl5ZDC+A1m6UtPGEER3aYDLjt2LPC4Z2bGNxEly6c9/becGVRxpZDdL8xnl6v7hZBBqEK1T6gpJeEw+wMgsPSXKO+vPuDlP/weFQRFQoHOKraELuB9bax0ExpYs96TkVdMp8N0c7FvLDYX3xVm9E4PKyfqlrklOM+2qN435c4/UhG6LkvyI7y2og68bpsxKO26AEphkp4bmMUlIzXjY+AVGojPvkohezL5c4YNsPA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Tue, Jun 24, 2025 at 07:27:47AM +0200, Christophe Leroy wrote: > Ah ok, I overlooked that, I didn't know the cmove instruction, seem > similar to the isel instruction on powerpc e500. cmove does a move (register or memory) when some condition is true. isel (which is base PowerPC, not something "e500" only) is a computational instruction, it copies one of two registers to a third, which of the two is decided by any bit in the condition register. But sure, seen from very far off both isel and cmove can be used to implemente the ternary operator ("?:"), are similar in that way :-) Segher