summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler_test.h
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-10-20 20:38:22 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-10-20 20:38:22 +0000
commita59820dc247b220640a738ae7cb3803a4d89829c (patch)
tree81cb732e658ec1f836b11e6b3562b50f4899800e /compiler/utils/assembler_test.h
parenta30af1640a882924e57dd9a474797c07d7202a36 (diff)
parent3309c01e55821f693e3b9cec0ef24969edf2528f (diff)
Merge "MIPS: Introduce a few MSA instructions"
Diffstat (limited to 'compiler/utils/assembler_test.h')
-rw-r--r--compiler/utils/assembler_test.h18
1 files changed, 18 insertions, 0 deletions
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
@@ -650,6 +650,24 @@ class AssemblerTest : public testing::Test {
}
template <typename ImmType>
+ std::string RepeatRVIb(void (Ass::*f)(Reg, VecReg, ImmType),
+ int imm_bits,
+ const std::string& fmt,
+ int bias = 0,
+ int multiplier = 1) {
+ return RepeatTemplatedRegistersImmBits<Reg, VecReg, ImmType>(
+ f,
+ imm_bits,
+ GetRegisters(),
+ GetVectorRegisters(),
+ &AssemblerTest::GetRegName<RegisterView::kUsePrimaryName>,
+ &AssemblerTest::GetVecRegName,
+ fmt,
+ bias,
+ multiplier);
+ }
+
+ template <typename ImmType>
std::string RepeatVVIb(void (Ass::*f)(VecReg, VecReg, ImmType),
int imm_bits,
const std::string& fmt,