Message ID | 1582908244-304-47-git-send-email-tsimpson@quicinc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=5hto=4Q=nongnu.org=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4CDE13A4 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 28 Feb 2020 17:19:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ACB1F246A2 for <patchwork-qemu-devel@patchwork.kernel.org>; Fri, 28 Feb 2020 17:19:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FjHepxBP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACB1F246A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1j7jIk-0008GM-Os for patchwork-qemu-devel@patchwork.kernel.org; Fri, 28 Feb 2020 12:19:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <tsimpson@qualcomm.com>) 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 <tsimpson@qualcomm.com>) 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 <tsimpson@qualcomm.com>) id 1j7ilV-0005U4-Bb for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:45:59 -0500 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=; 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) From: Taylor Simpson <tsimpson@quicinc.com> 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: base64 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, Taylor Simpson <tsimpson@quicinc.com>, philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> |
Series |
Hexagon patch series
|
expand
|
diff --git a/target/hexagon/helper_overrides.h b/target/hexagon/helper_overrides.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) +/* + * Mathematical operations with more than one definition require + * special handling + */ +/* + * Approximate reciprocal + * r3,p1 = 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 = 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
Override mathematical operations with more than one definition Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> --- target/hexagon/helper_overrides.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)