From nobody Thu Nov 13 22:05:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@quicinc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1582910412; cv=none; d=zohomail.com; s=zohoarc; b=CWjX2S/M5cSLye63nZhMV+zRUwT0KP8ISkJbaqXyVpIX7k7p3SU+aRdwJYjf4XfP91E5JiFJQUUg+2qTDQLbygq1yKnKHYPyVviybSTK3B7zJw53AWL/ZNbn/PCaiNr63s2jLq/MOn2sOEd5Q7OZ3KRpRcFV/paIwYGR308/0q0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582910412; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zimOGde4GqV2wvJVLvI614WBNtqG6TBT/TyqREXlewQ=; b=EkVnryc8Xht3f/2kYAHBtqdSbKSEJW3Gme0LiWoM5A+Cf/7Eeapx4FjTxhVhLFe/KkE+3g4Fw+3pNrezSFOVmTWKCSKWI3nRZxujorKHc4m8WZaybow2G454KIH1PNN3nVzNyjCdeotdx1RFsYFZ/XFFYNBYl7Z0oFvGJ+esDmk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail header.i=@quicinc.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582910412601773.0075329812989; Fri, 28 Feb 2020 09:20:12 -0800 (PST) Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7jJ5-0008GM-By for importer@patchew.org; Fri, 28 Feb 2020 12:20:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7im0-0005Zr-Bz for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:46:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7ilz-000790-6v for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:46:00 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:27026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j7ilV-0005U4-Bb for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:45:59 -0500 Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 Feb 2020 08:44:33 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg04-sd.qualcomm.com with ESMTP; 28 Feb 2020 08:44:32 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id C0C5FFD8; Fri, 28 Feb 2020 10:44:31 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1582908329; x=1614444329; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zimOGde4GqV2wvJVLvI614WBNtqG6TBT/TyqREXlewQ=; b=FjHepxBPURgZFPWIRg4qjmk3ZYCD1optzLKYzIJWyRBED12JELHnNzmq zg+2Bz9+uZK6+y6khgmOvFylpQ1Y7DQaezKhJf318s8yhEZ88RZwAa6ZM GpxoqeQ4MoYtk4eeap3Rdmi2SJEQ1+CEmMw0XwbIrvYcJImvU2Fbkv+TT c=; From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [RFC PATCH v2 46/67] Hexagon TCG generation - step 08 Date: Fri, 28 Feb 2020 10:43:42 -0600 Message-Id: <1582908244-304-47-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582908244-304-1-git-send-email-tsimpson@quicinc.com> References: <1582908244-304-1-git-send-email-tsimpson@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 199.106.114.39 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, Taylor Simpson , philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Override mathematical operations with more than one definition Signed-off-by: Taylor Simpson --- target/hexagon/helper_overrides.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/target/hexagon/helper_overrides.h b/target/hexagon/helper_over= rides.h index 1ac363e..d18aea4 100644 --- a/target/hexagon/helper_overrides.h +++ b/target/hexagon/helper_overrides.h @@ -1200,4 +1200,34 @@ #define fWRAP_SL2_return_fnew(GENHLPR, SHORTCODE) \ fWRAP_COND_RETURN_SUBINSN(fLSBNEW0NOT) =20 +/* + * Mathematical operations with more than one definition require + * special handling + */ +/* + * Approximate reciprocal + * r3,p1 =3D sfrecipa(r0, r1) + */ +#define fWRAP_F2_sfrecipa(GENHLPR, SHORTCODE) \ + do { \ + gen_helper_sfrecipa_val(RdV, cpu_env, RsV, RtV); \ + gen_helper_sfrecipa_pred(PeV, cpu_env, RsV, RtV); \ + } while (0) + +/* + * Approximation of the reciprocal square root + * r1,p0 =3D sfinvsqrta(r0) + */ +#define fWRAP_F2_sfinvsqrta(GENHLPR, SHORTCODE) \ + do { \ + gen_helper_sfinvsqrta_val(RdV, cpu_env, RsV); \ + gen_helper_sfinvsqrta_pred(PeV, cpu_env, RsV); \ + } while (0) + +#define fWRAP_A5_ACS(GENHLPR, SHORTCODE) \ + do { \ + gen_helper_vacsh_val(RxxV, cpu_env, RxxV, RssV, RttV); \ + gen_helper_vacsh_pred(PeV, cpu_env, RxxV, RssV, RttV); \ + } while (0) + #endif --=20 2.7.4