From patchwork Tue Aug 22 16:28:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 715760 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp358383wrp; Tue, 22 Aug 2023 09:29:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5OoAUGMausAe8XA2vlpW7J76njSTk0/lVZrELK4hB0XKAkYpTZLhWLE5Z3/wxF02ba8dl X-Received: by 2002:a05:622a:44f:b0:3ff:23e4:40b4 with SMTP id o15-20020a05622a044f00b003ff23e440b4mr13056094qtx.42.1692721760537; Tue, 22 Aug 2023 09:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692721760; cv=none; d=google.com; s=arc-20160816; b=MjDiRy6KSY6Rws/TBdYigcIOGs24fQHwsxaz2HJ6IgHsbe7qmAz14Axuw9Z0w06dHK 3ml2utoEHyOkSo6T5NtH3Bn7g5prOgMYvQIwNJLGIvyNEDCGMOpa0yqE/WJi7mOk4bSk 5PVet6Otm8s5S99hcvt2vRPR4g+B3/O8T36vnGzCWeVMScKug18KBxXDFtwS+rxsvkyz rddkSaw4wa5v/4ikgR38fQZPFJaolWiYg/npJKZKes+qaMnpD32b/a0WBzPH3fhhvUIt r19JFsPwLLgfTW4hwMuYltQHrbLBa87n0wIYQN7C8i4z4DgotzxKbDtd+tPOhZHSIrEp cboA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Q3ZKJeK3dj+pXizGZ2gnFoNv1vZYmRKM7P5et2CZMMw=; fh=vMsKD2upuHnsFAH2isawk1JZlJWNp077tg+6BAU/94U=; b=MXB+BZ1ZRMdULGlgB68RM0mkAU0dvgh34vhdbMfogLqOGCStUIwu9AbcrnIKdXDERq L1liYn8wPsrxksigaDYsRlzTUeG9PAMyfYK2801B2OL+XaijPtqzr4H4+hnpeGAUGR4H PXMaOyhD83F33z8UsMperYywCjfcOfKyEW8/iNtTckBY0gByBDKkZUDv/EwJrBBLI8VD W/eI2KPWTwLwGyYLI0uZ+c8FnOVfQEVceW5+rMtJIEoZ7QQ8NDIujfZeJIfOsOCnNnKI 92Ny8DAtDKcQZEz3bJktYIFCpNdZ+lcnAYe5sZosAW9XCMQmeBiZsLumm60IMjzI98iU K4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sLGpvQKj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m21-20020a05622a119500b0040548523406si6641786qtk.510.2023.08.22.09.29.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Aug 2023 09:29:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sLGpvQKj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYUFV-0000lq-Ir; Tue, 22 Aug 2023 12:28:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYUFS-0000lZ-SM for qemu-devel@nongnu.org; Tue, 22 Aug 2023 12:28:54 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYUFP-0002wT-WF for qemu-devel@nongnu.org; Tue, 22 Aug 2023 12:28:54 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-317716a4622so4222206f8f.1 for ; Tue, 22 Aug 2023 09:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692721730; x=1693326530; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q3ZKJeK3dj+pXizGZ2gnFoNv1vZYmRKM7P5et2CZMMw=; b=sLGpvQKj0zQdVU6u5txBnGXJkGwVEa8wBYIuVM93RkRANx/vCn0xAT7wj+3oRm4f+0 tVLlBVZDzTcdNbLOwGEdIYLMx0q0TLM0ndnnHwU1jsYnFkM8XFNDEOumEQkDGkLUUqzG SzSdajrYJlpaE9jw40/qDO02WTVhJeEiZfQiL2/RPIF4U7N0ZQORnP2QhRjjoj1rhePw UJmBgO8f5SqnNL278m4/xIvkCYCKQZ+KxooH2HnW6Aaiz8Egnb7r8Rk6rbBgbFRe6p+R M7zWdAg+ROgqu5jdUCyypqd2YBP5cp6DJN+3KG2CUltUHb30PmhIPxiSBa5ArIbKz529 wXlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692721730; x=1693326530; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q3ZKJeK3dj+pXizGZ2gnFoNv1vZYmRKM7P5et2CZMMw=; b=Zi/GV6k55M6z4O72hP8YC22wlqhlTL0WCPKg1YzbPjOgEt+L/4ye6agAmOM5po9dwX MwTijiYvT8KIzBYt5vYpUs16oiwaYAtgHxxbRtm5TQIUu2hIzKtUyvP+ZO8umBBxs5TA AdMHVYBsygeKBxHHXZDqzwCpJKu3womhWEp1kKEIIuLlDXTImjjRn00pGqibJ8gzvDYs 5VMkqqIEi1eXGDt5+jVyWTqsSYeYWLC0m9UCL36NblL6mWVsCgVzarpZCgZIOaLokUFH Y8JxGapSQBFhJcX9YIfIE0g2klktpU1Ms/Xqc3YknRJQ3Ezee2F7Z3t2VQ84dvGQ1hiV iiiQ== X-Gm-Message-State: AOJu0YwP957lsEOxCM31d2oG6CAD64AkApDt3erJarAAVI/t35Rfyl7x pWmKE8ZNe4x/KRhNLGy1FkY8IhXvrTbkMdJOtxyJ3g== X-Received: by 2002:adf:f6c9:0:b0:319:6956:725f with SMTP id y9-20020adff6c9000000b003196956725fmr8000156wrp.41.1692721730122; Tue, 22 Aug 2023 09:28:50 -0700 (PDT) Received: from localhost.localdomain ([37.19.214.4]) by smtp.gmail.com with ESMTPSA id b14-20020a5d4b8e000000b0031434c08bb7sm16281378wrt.105.2023.08.22.09.28.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Aug 2023 09:28:49 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH] docs/devel/tcg-ops: Bury mentions of trunc_shr_i64_i32() Date: Tue, 22 Aug 2023 18:28:47 +0200 Message-ID: <20230822162847.71206-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Commit 609ad70562 ("tcg: Split trunc_shr_i32 opcode into extr[lh]_i64_i32") remove trunc_shr_i64_i32(). Update the backend documentation. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- docs/devel/tcg-ops.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/devel/tcg-ops.rst b/docs/devel/tcg-ops.rst index 6a166c5665..53695e1623 100644 --- a/docs/devel/tcg-ops.rst +++ b/docs/devel/tcg-ops.rst @@ -882,14 +882,15 @@ sub2_i32, brcond2_i32). On a 64 bit target, the values are transferred between 32 and 64-bit registers using the following ops: -- trunc_shr_i64_i32 +- extrl_i64_i32 +- extrh_i64_i32 - ext_i32_i64 - extu_i32_i64 They ensure that the values are correctly truncated or extended when moved from a 32-bit to a 64-bit register or vice-versa. Note that the -trunc_shr_i64_i32 is an optional op. It is not necessary to implement -it if all the following conditions are met: +extrl_i64_i32 and extrh_i64_i32 are optional ops. It is not necessary +to implement them if all the following conditions are met: - 64-bit registers can hold 32-bit values - 32-bit values in a 64-bit register do not need to stay zero or