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 088f9fc9e35dc6127e0937c141c491d97ade0cfc..10152471e522e201711ef1fabd31080193f6ca5e 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); |