| 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 ee532ae807174b823d49b75440f0794d353e9c3c..a16d28e389b8c027b68d2925a530f890fa20a16e 100644
|
| --- a/test/cctest/wasm/test-run-wasm.cc
|
| +++ b/test/cctest/wasm/test-run-wasm.cc
|
| @@ -1109,6 +1109,20 @@ WASM_EXEC_TEST(I32ReinterpretF32) {
|
| }
|
| }
|
|
|
| +WASM_EXEC_TEST(LoadMaxUint32Offset) {
|
| + TestingModule module(execution_mode);
|
| + module.AddMemoryElems<int32_t>(8);
|
| + WasmRunner<int32_t> r(&module);
|
| +
|
| + BUILD(r, kExprI8Const, 0, // index
|
| + static_cast<byte>(v8::internal::wasm::WasmOpcodes::LoadStoreOpcodeOf(
|
| + MachineType::Int32(), false)), // --
|
| + 0, // alignment
|
| + U32V_5(0xffffffff)); // offset
|
| +
|
| + CHECK_TRAP32(r.Call());
|
| +}
|
| +
|
| WASM_EXEC_TEST(LoadStoreLoad) {
|
| TestingModule module(execution_mode);
|
| int32_t* memory = module.AddMemoryElems<int32_t>(8);
|
|
|