From patchwork Thu Jun 6 15:06:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandar Markovic X-Patchwork-Id: 10979759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9BD966C5 for ; Thu, 6 Jun 2019 15:09:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 89A1326256 for ; Thu, 6 Jun 2019 15:09:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E18428A18; Thu, 6 Jun 2019 15:09:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1867C26256 for ; Thu, 6 Jun 2019 15:09:39 +0000 (UTC) Received: from localhost ([127.0.0.1]:33702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYu1L-0001sQ-3e for patchwork-qemu-devel@patchwork.kernel.org; Thu, 06 Jun 2019 11:09:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYu04-0000it-6q for qemu-devel@nongnu.org; Thu, 06 Jun 2019 11:08:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYu02-0006Ca-5j for qemu-devel@nongnu.org; Thu, 06 Jun 2019 11:08:20 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:50884 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hYu00-0003wV-ET for qemu-devel@nongnu.org; Thu, 06 Jun 2019 11:08:17 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 2E4711A21FA; Thu, 6 Jun 2019 17:07:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 069D11A21F8; Thu, 6 Jun 2019 17:07:00 +0200 (CEST) From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 6 Jun 2019 17:06:36 +0200 Message-Id: <1559833603-29660-4-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559833603-29660-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1559833603-29660-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v2 03/10] target/mips: Outline places for future MSA helpers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Aleksandar Markovic Outline places for future MSA helpers to follow the same organization as in MSA tests. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-7-git-send-email-aleksandar.markovic@rt-rk.com> --- target/mips/msa_helper.c | 138 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c index 851450c..7b73e22 100644 --- a/target/mips/msa_helper.c +++ b/target/mips/msa_helper.c @@ -42,6 +42,144 @@ /* Element-by-element access macros */ #define DF_ELEMENTS(df) (MSA_WRLEN / DF_BITS(df)) + + +/* + * Bit Count + * --------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Bit move + * -------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Bit Set + * ------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Fixed Multiply + * -------------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Add + * ------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Average + * ----------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Compare + * ----------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Divide + * ---------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Dot Product + * --------------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Max Min + * ----------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Modulo + * ---------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Multiply + * ------------ + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Int Subtract + * ------------ + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Interleave + * ---------- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Logic + * ----- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Pack + * ---- + */ + +/* TODO: insert appropriate helpers here */ + + +/* + * Shift + * ----- + */ + +/* TODO: insert appropriate helpers here */ + + static inline void msa_move_v(wr_t *pwd, wr_t *pws) { uint32_t i;