summaryrefslogtreecommitdiff
path: root/compiler/utils/assembler_test.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2014-11-18 23:06:35 +0000
committer Calin Juravle <calin@google.com> 2014-11-24 16:06:55 +0000
commit9aec02fc5df5518c16f1e5a9b6cb198a192db973 (patch)
treefe924b37f395af1bb50f55ee6c87c66b727f00af /compiler/utils/assembler_test.h
parent20032e512c003a8f42735c4e1eca19c1472bb95e (diff)
[optimizing compiler] Add shifts
Added SHL, SHR, USHR for arm, x86, x86_64. Change-Id: I971f594e270179457e6958acf1401ff7630df07e
Diffstat (limited to 'compiler/utils/assembler_test.h')
-rw-r--r--compiler/utils/assembler_test.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h
index 9d3fa01a9d..54c931dc93 100644
--- a/compiler/utils/assembler_test.h
+++ b/compiler/utils/assembler_test.h
@@ -223,6 +223,10 @@ class AssemblerTest : public testing::Test {
UNREACHABLE();
}
+ std::string GetRegisterName(const Reg& reg) {
+ return GetRegName<RegisterView::kUsePrimaryName>(reg);
+ }
+
protected:
explicit AssemblerTest() {}