diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-13 10:28:41 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-13 10:28:41 +0000 |
commit | 39d57e2de8ec7420f2395a28cd7bd51e658d57b8 (patch) | |
tree | 355feca4d3694cd1fd5afef99fe54d0db8886520 /compiler | |
parent | af7ec0e4efd43aaa58094d036c85736059d9f18d (diff) | |
download | art-39d57e2de8ec7420f2395a28cd7bd51e658d57b8.zip art-39d57e2de8ec7420f2395a28cd7bd51e658d57b8.tar.gz art-39d57e2de8ec7420f2395a28cd7bd51e658d57b8.tar.bz2 |
Fix non-{arm, x86} builds.
Change-Id: If4c13775f8e1fd0fd26b4a731f3011c77b0bfed1
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/optimizing/codegen_test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index a6ecdfb..5020dd0 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -57,14 +57,17 @@ static void TestCode(const uint16_t* data, bool has_result = false, int32_t expe typedef int32_t (*fptr)(); #if defined(__i386__) int32_t result = reinterpret_cast<fptr>(allocator.memory())(); + if (has_result) { + CHECK_EQ(result, expected); + } #endif CHECK(CodeGenerator::CompileGraph(graph, kArm, &allocator)); #if defined(__arm__) int32_t result = reinterpret_cast<fptr>(allocator.memory())(); -#endif if (has_result) { CHECK_EQ(result, expected); } +#endif } TEST(CodegenTest, ReturnVoid) { |