summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-06-25 14:15:46 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-24 06:22:45 +0000
commitfe6bfba3153ab55dab3ec0d644d628136e5ff0a4 (patch)
tree984d0609bf71e7705117e19eb836ddf203be6d01 /compiler/optimizing/codegen_test.cc
parent84691ba238225dd77c7b498a153db4dd306e9712 (diff)
parente61fd353c06f51f1b8ca5af69997d0185b7659b2 (diff)
Merge "Revert "Re-enable tests with the optimizing compiler.""
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r--compiler/optimizing/codegen_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc
index 7ec0c84167..fd534ced1f 100644
--- a/compiler/optimizing/codegen_test.cc
+++ b/compiler/optimizing/codegen_test.cc
@@ -52,6 +52,10 @@ static void Run(const InternalCodeAllocator& allocator, bool has_result, int32_t
typedef int32_t (*fptr)();
CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize());
fptr f = reinterpret_cast<fptr>(allocator.GetMemory());
+#if defined(__arm__)
+ // For thumb we need the bottom bit set.
+ f = reinterpret_cast<fptr>(reinterpret_cast<uintptr_t>(f) + 1);
+#endif
int32_t result = f();
if (has_result) {
CHECK_EQ(result, expected);