Commit 26f2f242 authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Fix simulator and re-enable wasm tests.

R=bradnelson@chromium.org, titzer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1567753002

Cr-Commit-Position: refs/heads/master@{#33140}
parent e62e2872
......@@ -3861,6 +3861,9 @@ void Simulator::CallInternal(byte* entry) {
set_pc(reinterpret_cast<intptr_t>(entry));
#endif
// Put target address in ip (for JS prologue).
set_register(r12, get_pc());
// Put down marker for end of simulation. The simulator will stop simulation
// when the PC reaches this value. By saving the "end simulation" value into
// the LR the simulation stops when returning to this call point.
......
......@@ -28,9 +28,6 @@ void TestModule(WasmModuleIndex* module, int32_t expected_result) {
} // namespace
// TODO(tizer): Figure out why this crashes with PPC.
#if !defined(V8_TARGET_ARCH_PPC) && !defined(V8_TARGET_ARCH_PPC64)
// A raw test that skips the WasmModuleBuilder.
TEST(Run_WasmModule_CallAdd_rev) {
static const byte data[] = {
......@@ -58,8 +55,6 @@ TEST(Run_WasmModule_CallAdd_rev) {
CHECK_EQ(99, result);
}
#endif
TEST(Run_WasmModule_Return114) {
static const int32_t kReturnValue = 114;
......@@ -76,9 +71,6 @@ TEST(Run_WasmModule_Return114) {
}
// TODO(tizer): Figure out why this crashes with PPC.
#if !defined(V8_TARGET_ARCH_PPC) && !defined(V8_TARGET_ARCH_PPC64)
TEST(Run_WasmModule_CallAdd) {
Zone zone;
WasmModuleBuilder* builder = new (&zone) WasmModuleBuilder(&zone);
......@@ -100,8 +92,6 @@ TEST(Run_WasmModule_CallAdd) {
TestModule(writer->WriteTo(&zone), 99);
}
#endif
TEST(Run_WasmModule_ReadLoadedDataSegment) {
static const byte kDataSegmentDest0 = 12;
......@@ -156,9 +146,7 @@ TEST(Run_WasmModule_CheckMemoryIsZero) {
#endif
#if !defined(V8_WITH_ASAN) && !defined(V8_TARGET_ARCH_PPC) && \
!defined(V8_TARGET_ARCH_PPC64)
// TODO(tizer): Figure out why this crashes with PPC.
#if !defined(V8_WITH_ASAN)
// TODO(bradnelson): Figure out why this crashes under asan.
TEST(Run_WasmModule_CallMain_recursive) {
Zone zone;
......@@ -184,9 +172,7 @@ TEST(Run_WasmModule_CallMain_recursive) {
#endif
#if !defined(V8_WITH_ASAN) && !defined(V8_TARGET_ARCH_PPC) && \
!defined(V8_TARGET_ARCH_PPC64)
// TODO(tizer): Figure out why this fails with PPC.
#if !defined(V8_WITH_ASAN)
// TODO(bradnelson): Figure out why this crashes under asan.
TEST(Run_WasmModule_Global) {
Zone zone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment