From patchwork Tue Dec 24 20:05:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 853245 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp4082366wrq; Tue, 24 Dec 2024 12:10:04 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUaBe8icOkcfrs7KXMBGpZzs7EUq7+iwvjTxCD6motTh9eH1099qTGnwZU6THOGym+SG9ONYg==@linaro.org X-Google-Smtp-Source: AGHT+IHF7wJP74BCpXFcMEDVGFEGC+v/qAMPf+/KxYbXk+AC8BI7wH9Ip1C8G64dT0sTe3S/epcg X-Received: by 2002:ac8:59ca:0:b0:467:8526:f280 with SMTP id d75a77b69052e-46a4a96b166mr273637081cf.41.1735071004746; Tue, 24 Dec 2024 12:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735071004; cv=none; d=google.com; s=arc-20240605; b=h5kw1WMLeyvzjZnpPBAA10MhAgxgwJE5fOo6CpOC62uOrmhJSTa2qWzeGQuM+bfMyg cbDgce5pjyY209sv4BcfrDafhqDe2CoueG3avu2uWeWvhRIaASIcsAdHrx3gw2h3lciv q66U6CE8jWhLtT0wZo8IrnTJoNZaB5vkSleUbPbWthiLTVbVeYrq1DdPU0+hw1FiqE1R W4gs497KNXTZJ2M1MCF6GoYL7Q8LkZvx6vDuPt4wwp4bozKiLddXmRopqLJvae3l3NNW dqTMHDGHKnmvnP6xorsGngE7BtDIE3BXqn/wbfOLPvRzLW8RGo3gtBpBcyE980xjn+8j xBVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MKoswZ0+HzjatCwvvzude3nDWSM8RUV02VuNA19m0ac=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=gVKEoQQwNNP3c6OPP2Ff0V2hAPIaoHlQDCfeEOmHWnF438+uLmR2fL4MWotl0///2p xubQwTBscVOZ1hIg6AW2Uf1Xi04idtzn5yUkJjtmggA8lX9y/xiH26nXO+TNyuuqDvcT dWOBNn7DcibKjUyCbdmwWdRTmV3wpdLFoydhro2obfGwNetGR2Xk1g4ffgivF3W+JcGF hVzrDxOCDJ+33KpYWvjjzu6GDU5CNFN3RGjLKUH6PeTx/IxwOyqqc3d6n+/uuKQPTeCX 4pRrLXik5Q+PiPj/cpkGpNiMWEJoWfgDJos0QhuujOj2RFvYdQdCJ4iwjed9P/DlxEsT lbZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kp847CNw; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac53e52esi1442855385a.634.2024.12.24.12.10.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Dec 2024 12:10:04 -0800 (PST) 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=kp847CNw; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQBDy-0001Wv-On; Tue, 24 Dec 2024 15:09:50 -0500 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 1tQBDT-0006dQ-QV for qemu-devel@nongnu.org; Tue, 24 Dec 2024 15:09:20 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQBDS-0002xz-4W for qemu-devel@nongnu.org; Tue, 24 Dec 2024 15:09:19 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2165cb60719so57760375ad.0 for ; Tue, 24 Dec 2024 12:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1735070956; x=1735675756; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MKoswZ0+HzjatCwvvzude3nDWSM8RUV02VuNA19m0ac=; b=kp847CNw7g5ZE2ZUZgWnGD8MT8kNil/Lh3RycQJn1/Lrn4UI9EuL81BR6k6j9TamFa 4A6OaE3xsd+rORv6FOriyyGWsBP+yQiYd/N9+ooy0r8aQt3lUDBiTajjbWJnRCCb33oz fasUEoCHmefLmMIfSqvudN3fLLwf50nT/BqOQduBe0PDlg7eVGgjmkr6xvPOVCv0v3bT MiBxYaX5tSQYXYhakAHI6fAci769Q6RZ9LoyV+9w0JgMdSIDrQXzpGIeV11eFE8gSNAO aWkjzg719+GMdQQW7tvhaXGp2vo6K7A8toHhAHjDl933T4YhJtTlT1e3yi6BaYB6f3uR EhYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735070956; x=1735675756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MKoswZ0+HzjatCwvvzude3nDWSM8RUV02VuNA19m0ac=; b=QPi1nKl1VvUvxXj7SSusa6T+xxXYu4rrshdjJTEanjQpz2j1gT10slk1XSYZOwXJli ErXbPdR/rKLdpGC7+wbDgXJfucyTA91QiNzkF8Kbh7+mk7r41Z2uQbvA9tOfKF+U3Cbv CH9Ym7LZNPN6WIWAMDiUo7skK2zbzaVcisoyo52Xz3KqraE4rA4wNAtET1oUQS9plc98 QDQjybB6HVH3o1a5cy2z1ZvoKQZueaSqt6DpCeEMA14E5Lupk1nMvBPIFJwGFFm05GJb dEptHo5sveDTyulmsoJY8AdVfCwfaWgVs+uZgLPM9y7LzqhLNl3KoEeDjPYSyDb81bPX DpZQ== X-Gm-Message-State: AOJu0YzqhaBngt8+bXeb9zhzOl39LQrfjdGow3YFVrBbPNIw3KVzhTja ccTKQbSZSKQV9VIi4B54AGw4L61E+fCYFrGNk4uvOAnc4d4U/8oPqIG6R3yG63TJfOCdNAyf8DG FKns= X-Gm-Gg: ASbGnctKio1B2n2FPkIsjV+0ZRZDT3crY8wUaQCCj9PRo7ZRpOlFTX7Q/1Qhv6HAeAR 2MG1enM4VfB1uYAjJ5++BypyskwYFjYSrQaMKBn4synOfKQ+z8Q/qVnq2S0OtYN+ShANS7xPfa6 IUTb845tJrX7QRsvSsFGdbBUEjVNXm3xD9FQptvehlhwa/Dww0hnrAwII9N3btUwmQp8gGIcpAT dXCZ335Aa+0u5/OZZDx3dS/8hnhSVEnFg7SifU+YSNEKoke2lcz4LytxlqD4g8IOq3iZJZsQlpZ 5dqQPuIFr0lVpZIagE2EPstFfg== X-Received: by 2002:a05:6a20:6a25:b0:1d9:6c9c:75ea with SMTP id adf61e73a8af0-1e5e0448930mr28347558637.5.1735070956205; Tue, 24 Dec 2024 12:09:16 -0800 (PST) Received: from stoup.. (syn-156-019-246-023.biz.spectrum.com. [156.19.246.23]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8309acsm10033521b3a.45.2024.12.24.12.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 12:09:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 56/72] target/arm: Use float*_muladd_scalbn Date: Tue, 24 Dec 2024 12:05:05 -0800 Message-ID: <20241224200521.310066-57-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241224200521.310066-1-richard.henderson@linaro.org> References: <20241224200521.310066-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62c.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 Use the scalbn interface instead of float_muladd_halve_result. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/tcg/helper-a64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/arm/tcg/helper-a64.c b/target/arm/tcg/helper-a64.c index 0e130501fd..3b226daee7 100644 --- a/target/arm/tcg/helper-a64.c +++ b/target/arm/tcg/helper-a64.c @@ -262,7 +262,7 @@ uint32_t HELPER(rsqrtsf_f16)(uint32_t a, uint32_t b, float_status *fpst) (float16_is_infinity(b) && float16_is_zero(a))) { return float16_one_point_five; } - return float16_muladd(a, b, float16_three, float_muladd_halve_result, fpst); + return float16_muladd_scalbn(a, b, float16_three, -1, 0, fpst); } float32 HELPER(rsqrtsf_f32)(float32 a, float32 b, float_status *fpst) @@ -275,7 +275,7 @@ float32 HELPER(rsqrtsf_f32)(float32 a, float32 b, float_status *fpst) (float32_is_infinity(b) && float32_is_zero(a))) { return float32_one_point_five; } - return float32_muladd(a, b, float32_three, float_muladd_halve_result, fpst); + return float32_muladd_scalbn(a, b, float32_three, -1, 0, fpst); } float64 HELPER(rsqrtsf_f64)(float64 a, float64 b, float_status *fpst) @@ -288,7 +288,7 @@ float64 HELPER(rsqrtsf_f64)(float64 a, float64 b, float_status *fpst) (float64_is_infinity(b) && float64_is_zero(a))) { return float64_one_point_five; } - return float64_muladd(a, b, float64_three, float_muladd_halve_result, fpst); + return float64_muladd_scalbn(a, b, float64_three, -1, 0, fpst); } /* Floating-point reciprocal exponent - see FPRecpX in ARM ARM */