| 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 1d40e10048b02d79682bf43029075dddb326a0b8..aa1a91738e1eefd898684761470764fba83f0b65 100644
|
| --- a/test/cctest/wasm/test-run-wasm.cc
|
| +++ b/test/cctest/wasm/test-run-wasm.cc
|
| @@ -116,6 +116,23 @@ TEST(Run_WasmInt64Const_many) {
|
| }
|
| #endif
|
|
|
| +TEST(Run_WasmI32ConvertI64) {
|
| + FOR_INT64_INPUTS(i) {
|
| + WasmRunner<int32_t> r;
|
| + BUILD(r, WASM_I32_CONVERT_I64(WASM_I64(*i)));
|
| + CHECK_EQ(static_cast<int32_t>(*i), r.Call());
|
| + }
|
| +}
|
| +
|
| +TEST(Run_WasmI64AndConstants) {
|
| + FOR_INT64_INPUTS(i) {
|
| + FOR_INT64_INPUTS(j) {
|
| + WasmRunner<int32_t> r;
|
| + BUILD(r, WASM_I32_CONVERT_I64(WASM_I64_AND(WASM_I64(*i), WASM_I64(*j))));
|
| + CHECK_EQ(static_cast<int32_t>(*i & *j), r.Call());
|
| + }
|
| + }
|
| +}
|
|
|
| TEST(Run_WasmInt32Param0) {
|
| WasmRunner<int32_t> r(MachineType::Int32());
|
| @@ -216,7 +233,6 @@ void TestInt32Binop(WasmOpcode opcode, int32_t expected, int32_t a, int32_t b) {
|
| }
|
| }
|
|
|
| -
|
| TEST(Run_WasmInt32Binops) {
|
| TestInt32Binop(kExprI32Add, 88888888, 33333333, 55555555);
|
| TestInt32Binop(kExprI32Sub, -1111111, 7777777, 8888888);
|
|
|