Received: from eggs.gnu.org ([209.51.188.92]:34507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGmZ9-0000Kn-IV for qemu-devel@nongnu.org; Wed, 17 Apr 2019 11:33:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGmZ8-0004l5-9e for qemu-devel@nongnu.org; Wed, 17 Apr 2019 11:33:39 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:34544 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 1hGmZ7-0004jL-Eu for qemu-devel@nongnu.org; Wed, 17 Apr 2019 11:33:37 -0400 From: Mateja Marjanovic Date: Wed, 17 Apr 2019 17:33:20 +0200 Message-Id: <1555515206-9352-1-git-send-email-mateja.marjanovic@rt-rk.com> Subject: [Qemu-devel] [PATCH v7 0/6] target/mips: Optimize MSA interleave instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, philmd@redhat.com, richard.henderson@linaro.org, amarkovic@wavecomp.com, arikalo@wavecomp.com From: Mateja Marjanovic Optimize and refactor MSA instructions ILVEV., ILVOD., ILVL. and ILVR.. v7: - Use tcg constants, instead of uint64_t constants in ILVEV. and ILVOD. instructions. - Refactor gen_ilvod_b and gen_ilvod_h functions. Use the shared function gen_ilvod_bh, which has two extra arguments mask and shift, because mask and shift are the only differences in the implementation of those two functions. Same applies for gen_ilvev_b and gen_ilvev_h. - Use assigning uint64_t constant values to the bit mask, instead of shifting the bit mask, in ILVR. and ILVL. instructions. - Use only one helper for ILVEV.D and ILVR.D instructions, because they are equivalent. Same applies for ILVOD.D and ILVL.D. - Minor changes in the commit messages. v6: - Add ILVL. and ILVR. MSA instructions with mixed approaches (with helpers and with tcg registers). - Test the performance for ILVL. and ILVR. MSA instructions, with helpers, with tcg and with the mixed approach. - Use a tcg register instead of an int variable for storing a constant value of the mask (for logic operations). - Eliminate some unnecessary tcg_gen calls. - Changes in commit messages and the cover letter. v5: - Use tcg_gen_deposit function. - Added performance number for no-deposit and with-deposit cases of ILVEV.W. - Minor changes in commit messages and the cover letter. v4: - Clean up typing errors. - Change the commit message and the cover letter. - Fix bug for ILVEV.D, in case where the destination and one of the sources are the same register. v3: - Reduce the number of logic operations to a minimum. - Add comments. v2: - Minor changes in commit messages and the cover letter. Mateja Marjanovic (6): target/mips: Optimize ILVOD. MSA instructions target/mips: Optimize ILVEV. MSA instructions target/mips: Optimize ILVL. MSA instructions target/mips: Optimize ILVR. MSA instructions target/mips: Merge implementation of ILVEV.D and ILVR.D target/mips: Merge implementation of ILVOD.D and ILVL.D target/mips/helper.h | 7 +- target/mips/msa_helper.c | 82 +++++++---- target/mips/translate.c | 376 ++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 425 insertions(+), 40 deletions(-) -- 2.7.4