Index: test/cctest/wasm/test-run-wasm-64.cc |
diff --git a/test/cctest/wasm/test-run-wasm-64.cc b/test/cctest/wasm/test-run-wasm-64.cc |
index fbd594845303cba68f3780c7ead6764e7cd1a555..671edf52d29853742bea213679ed4c6ce05859fd 100644 |
--- a/test/cctest/wasm/test-run-wasm-64.cc |
+++ b/test/cctest/wasm/test-run-wasm-64.cc |
@@ -23,8 +23,8 @@ |
#define asu64(x) static_cast<uint64_t>(x) |
-#define B2(a, b) kExprBlock, 2, a, b |
-#define B1(a) kExprBlock, 1, a |
+#define B2(a, b) kExprBlock, a, b, kExprEnd |
+#define B1(a) kExprBlock, a, kExprEnd |
// Can't bridge macro land with nested macros. |
#if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_X87 |
@@ -1109,12 +1109,16 @@ TEST(Run_Wasm_LoadStoreI64_sx) { |
byte* memory = module.AddMemoryElems<byte>(16); |
WasmRunner<int64_t> r(&module); |
- byte code[] = {kExprI64StoreMem, ZERO_ALIGNMENT, |
- ZERO_OFFSET, // -- |
- kExprI8Const, 8, // -- |
- loads[m], ZERO_ALIGNMENT, |
- ZERO_OFFSET, // -- |
- kExprI8Const, 0}; // -- |
+ byte code[] = { |
+ kExprI8Const, 8, // -- |
+ kExprI8Const, 0, // -- |
+ loads[m], // -- |
+ ZERO_ALIGNMENT, // -- |
+ ZERO_OFFSET, // -- |
+ kExprI64StoreMem, // -- |
+ ZERO_ALIGNMENT, // -- |
+ ZERO_OFFSET // -- |
+ }; |
r.Build(code, code + arraysize(code)); |