From 3f44403fb5b6c9c6176339ab5888e97d0b617746 Mon Sep 17 00:00:00 2001 From: Goran Jakovljevic Date: Fri, 31 Mar 2017 14:38:20 +0200 Subject: MIPS64: Add ldi.df MSA instruction Also fixes RepeatTemplatedRegisterImmBits template. Test: mma test-art-host-gtest Change-Id: Ib23f8a65ba924623f8c3a2d75d4ec4491d18feb0 --- compiler/utils/assembler_test.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'compiler/utils/assembler_test.h') diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index d265a44092..f655994bd3 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -309,7 +309,7 @@ class AssemblerTest : public testing::Test { template std::string RepeatTemplatedRegisterImmBits(void (Ass::*f)(RegType, ImmType), int imm_bits, - const std::vector registers, + const std::vector registers, std::string (AssemblerTest::*GetName)(const RegType&), const std::string& fmt, int bias) { @@ -572,6 +572,19 @@ class AssemblerTest : public testing::Test { fmt); } + template + std::string RepeatVIb(void (Ass::*f)(VecReg, ImmType), + int imm_bits, + std::string fmt, + int bias = 0) { + return RepeatTemplatedRegisterImmBits(f, + imm_bits, + GetVectorRegisters(), + &AssemblerTest::GetVecRegName, + fmt, + bias); + } + template std::string RepeatVRIb(void (Ass::*f)(VecReg, Reg, ImmType), int imm_bits, -- cgit v1.2.3-59-g8ed1b