From 3309c01e55821f693e3b9cec0ef24969edf2528f Mon Sep 17 00:00:00 2001 From: Lena Djokic Date: Fri, 13 Oct 2017 14:34:32 +0200 Subject: MIPS: Introduce a few MSA instructions These instructions are needed for SIMD reduction. Also added assembler tests for each instruction. Test: mma test-art-host-gtest Change-Id: I0f02618a14b4cbcc3b81ce51dd2586fa4cdbfd18 --- compiler/utils/assembler_test.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'compiler/utils/assembler_test.h') diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index ae7636b106..ad84412ef5 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -649,6 +649,24 @@ class AssemblerTest : public testing::Test { multiplier); } + template + std::string RepeatRVIb(void (Ass::*f)(Reg, VecReg, ImmType), + int imm_bits, + const std::string& fmt, + int bias = 0, + int multiplier = 1) { + return RepeatTemplatedRegistersImmBits( + f, + imm_bits, + GetRegisters(), + GetVectorRegisters(), + &AssemblerTest::GetRegName, + &AssemblerTest::GetVecRegName, + fmt, + bias, + multiplier); + } + template std::string RepeatVVIb(void (Ass::*f)(VecReg, VecReg, ImmType), int imm_bits, -- cgit v1.2.3-59-g8ed1b