Index: test/cctest/wasm/test-run-wasm.cc |
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc |
index 51a6f7da817cfbe132158569955cf34d6be5b33d..8b333be14cef82f1e7cc9ea671b588109241583a 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -1207,8 +1207,8 @@ WASM_EXEC_TEST(Block_empty_brif1) { |
} |
WASM_EXEC_TEST(Block_empty_brif2) { |
- WasmRunner<uint32_t> r(execution_mode, MachineType::Uint32(), |
- MachineType::Uint32()); |
+ WasmRunner<int32_t> r(execution_mode, MachineType::Uint32(), |
ahaas
2016/11/10 09:03:39
I think it would be better to not change the templ
ulan
2016/11/10 12:23:43
Done.
|
+ MachineType::Uint32()); |
BUILD(r, WASM_BLOCK(WASM_BR_IF(0, WASM_GET_LOCAL(1))), WASM_GET_LOCAL(0)); |
FOR_INT32_INPUTS(i) { CHECK_EQ(*i, r.Call(*i, *i + 1)); } |
} |
@@ -1234,7 +1234,7 @@ WASM_EXEC_TEST(Block_d) { |
WASM_EXEC_TEST(Block_br2) { |
WasmRunner<int32_t> r(execution_mode, MachineType::Int32()); |
BUILD(r, WASM_BLOCK_I(WASM_BRV(0, WASM_GET_LOCAL(0)))); |
- FOR_UINT32_INPUTS(i) { CHECK_EQ(*i, r.Call(*i)); } |
+ FOR_UINT32_INPUTS(i) { CHECK_EQ(*i, static_cast<uint32_t>(r.Call(*i))); } |
} |
WASM_EXEC_TEST(Block_If_P) { |
@@ -1596,7 +1596,7 @@ WASM_EXEC_TEST(LoadMemI32_const_oob_misaligned) { |
BUILD(r, |
WASM_LOAD_MEM_OFFSET(MachineType::Int32(), offset, WASM_I8(index))); |
- if ((offset + index) <= (kMemSize - sizeof(int32_t))) { |
+ if ((offset + index) <= static_cast<int>((kMemSize - sizeof(int32_t)))) { |
CHECK_EQ(module.raw_val_at<int32_t>(offset + index), r.Call()); |
} else { |
CHECK_TRAP(r.Call()); |
@@ -1618,7 +1618,7 @@ WASM_EXEC_TEST(LoadMemI32_const_oob) { |
BUILD(r, |
WASM_LOAD_MEM_OFFSET(MachineType::Int32(), offset, WASM_I8(index))); |
- if ((offset + index) <= (kMemSize - sizeof(int32_t))) { |
+ if ((offset + index) <= static_cast<int>((kMemSize - sizeof(int32_t)))) { |
CHECK_EQ(module.raw_val_at<int32_t>(offset + index), r.Call()); |
} else { |
CHECK_TRAP(r.Call()); |