Index: test/unittests/wasm/wasm-macro-gen-unittest.cc |
diff --git a/test/unittests/wasm/wasm-macro-gen-unittest.cc b/test/unittests/wasm/wasm-macro-gen-unittest.cc |
index c5bb5eca008464051ac6417118408d1580780ec4..f3f604b3edc77ee07d576fd2f8427fcad104f047 100644 |
--- a/test/unittests/wasm/wasm-macro-gen-unittest.cc |
+++ b/test/unittests/wasm/wasm-macro-gen-unittest.cc |
@@ -131,15 +131,25 @@ TEST_F(WasmMacroGenTest, Expressions) { |
EXPECT_SIZE(6, WASM_LOOP(3, WASM_NOP, WASM_NOP, WASM_ZERO)); |
} |
- |
-TEST_F(WasmMacroGenTest, FunctionCalls) { |
+TEST_F(WasmMacroGenTest, CallFunction) { |
EXPECT_SIZE(2, WASM_CALL_FUNCTION0(0)); |
EXPECT_SIZE(2, WASM_CALL_FUNCTION0(1)); |
EXPECT_SIZE(2, WASM_CALL_FUNCTION0(11)); |
EXPECT_SIZE(4, WASM_CALL_FUNCTION(0, WASM_ZERO)); |
EXPECT_SIZE(6, WASM_CALL_FUNCTION(1, WASM_ZERO, WASM_ZERO)); |
+} |
+ |
+TEST_F(WasmMacroGenTest, CallImport) { |
+ EXPECT_SIZE(2, WASM_CALL_IMPORT0(0)); |
+ EXPECT_SIZE(2, WASM_CALL_IMPORT0(1)); |
+ EXPECT_SIZE(2, WASM_CALL_IMPORT0(11)); |
+ |
+ EXPECT_SIZE(4, WASM_CALL_IMPORT(0, WASM_ZERO)); |
+ EXPECT_SIZE(6, WASM_CALL_IMPORT(1, WASM_ZERO, WASM_ZERO)); |
+} |
+TEST_F(WasmMacroGenTest, CallIndirect) { |
EXPECT_SIZE(4, WASM_CALL_INDIRECT0(0, WASM_ZERO)); |
EXPECT_SIZE(4, WASM_CALL_INDIRECT0(1, WASM_ZERO)); |
EXPECT_SIZE(4, WASM_CALL_INDIRECT0(11, WASM_ZERO)); |