diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2021-01-04 12:39:00 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2021-01-04 12:39:00 -0800 |
commit | eacda6029afc6c588d35db50f87b3cd8c3e94397 (patch) | |
tree | d115b52e97c3af0f635f4f77782582b40f784d6a /compiler/optimizing/codegen_test_utils.h | |
parent | 116fbc6ed70876411ed8bb0e5b45d53dd1c68376 (diff) | |
parent | be2232e2e69d2f40313eaca3bc6f42122c767997 (diff) |
Merge be2232e2e69d2f40313eaca3bc6f42122c767997 on remote branch
Change-Id: I8d7a261e5f72e9f33dff4dc4c26139d3a9ebc1ee
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
-rw-r--r-- | compiler/optimizing/codegen_test_utils.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/compiler/optimizing/codegen_test_utils.h b/compiler/optimizing/codegen_test_utils.h index f873e7514e..9d15f1f294 100644 --- a/compiler/optimizing/codegen_test_utils.h +++ b/compiler/optimizing/codegen_test_utils.h @@ -223,15 +223,12 @@ static void VerifyGeneratedCode(InstructionSet target_isa, Expected expected) { ASSERT_TRUE(CanExecute(target_isa)) << "Target isa is not executable."; - // Simulator cannot run without runtime, because it needs quick entrypoints. - if (Runtime::Current() != nullptr) { - // Verify on simulator. - CodeSimulatorContainer simulator(target_isa); - if (simulator.CanSimulate()) { - Expected result = SimulatorExecute<Expected>(simulator.Get(), f); - if (has_result) { - ASSERT_EQ(expected, result); - } + // Verify on simulator. + CodeSimulatorContainer simulator(target_isa); + if (simulator.CanSimulate()) { + Expected result = SimulatorExecute<Expected>(simulator.Get(), f); + if (has_result) { + ASSERT_EQ(expected, result); } } |