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 d6661cce7b6abb5410c5285a330f0cbdf224488c..cb60b6c03f5e3bee9fd05d0b1c089c8938106c57 100644 |
--- a/test/unittests/wasm/wasm-macro-gen-unittest.cc |
+++ b/test/unittests/wasm/wasm-macro-gen-unittest.cc |
@@ -92,17 +92,8 @@ TEST_F(WasmMacroGenTest, MacroStatements) { |
EXPECT_SIZE(3, WASM_CONTINUE(0)); |
} |
- |
-TEST_F(WasmMacroGenTest, TableSwitch) { |
- EXPECT_SIZE(2, WASM_CASE(9)); |
- EXPECT_SIZE(2, WASM_CASE_BR(11)); |
- |
- EXPECT_SIZE(7, WASM_TABLESWITCH_OP(0, 1, WASM_CASE(7))); |
- EXPECT_SIZE(9, WASM_TABLESWITCH_OP(0, 2, WASM_CASE(7), WASM_CASE(8))); |
- |
- EXPECT_SIZE(4, WASM_TABLESWITCH_BODY(WASM_I8(88), WASM_I8(77))); |
- EXPECT_SIZE( |
- 6, WASM_TABLESWITCH_BODY(WASM_I8(33), WASM_I8(44), WASM_GET_LOCAL(0))); |
+TEST_F(WasmMacroGenTest, BrTable) { |
+ EXPECT_SIZE(7, WASM_BR_TABLE(WASM_ZERO, 1, BR_TARGET(1))); |
} |