Index: test/unittests/wasm/ast-decoder-unittest.cc |
diff --git a/test/unittests/wasm/ast-decoder-unittest.cc b/test/unittests/wasm/ast-decoder-unittest.cc |
index 22326545aaf513a401df282e82e6688215a0bbc3..923c55460426079ffeebb68e13b2be036fa5a8f9 100644 |
--- a/test/unittests/wasm/ast-decoder-unittest.cc |
+++ b/test/unittests/wasm/ast-decoder-unittest.cc |
@@ -251,6 +251,9 @@ TEST_F(WasmDecoderTest, Int64Const) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, Float32Const) { |
byte code[] = {kExprF32Const, 0, 0, 0, 0}; |
float* ptr = reinterpret_cast<float*>(code + 1); |
@@ -270,6 +273,8 @@ TEST_F(WasmDecoderTest, Float64Const) { |
} |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, Int32Const_off_end) { |
byte code[] = {kExprI32Const, 0xaa, 0xbb, 0xcc, 0x44}; |
@@ -527,11 +532,16 @@ TEST_F(WasmDecoderTest, ExprBlock1b) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, ExprBlock1c) { |
static const byte code[] = {kExprBlock, 1, kExprF32Const, 0, 0, 0, 0}; |
EXPECT_VERIFIES(&env_f_ff, code); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, IfEmpty) { |
static const byte code[] = {kExprIf, kExprGetLocal, 0, kExprNop}; |
@@ -694,6 +704,9 @@ TEST_F(WasmDecoderTest, ReturnVoid2) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, ReturnVoid3) { |
EXPECT_VERIFIES_INLINE(&env_v_v, kExprI8Const, 0); |
EXPECT_VERIFIES_INLINE(&env_v_v, kExprI32Const, 0, 0, 0, 0); |
@@ -704,6 +717,8 @@ TEST_F(WasmDecoderTest, ReturnVoid3) { |
EXPECT_VERIFIES_INLINE(&env_v_i, kExprGetLocal, 0); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, Unreachable1) { |
EXPECT_VERIFIES_INLINE(&env_v_v, kExprUnreachable); |
@@ -866,6 +881,9 @@ TEST_F(WasmDecoderTest, MacrosStmt) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, MacrosBreak) { |
EXPECT_VERIFIES_INLINE(&env_v_v, WASM_LOOP(1, WASM_BREAK(0))); |
@@ -877,6 +895,8 @@ TEST_F(WasmDecoderTest, MacrosBreak) { |
WASM_LOOP(1, WASM_BREAKV(0, WASM_F64(0.0)))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, MacrosContinue) { |
EXPECT_VERIFIES_INLINE(&env_v_v, WASM_LOOP(1, WASM_CONTINUE(0))); |
@@ -1245,6 +1265,9 @@ TEST_F(WasmDecoderTest, CallsWithTooFewArguments) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, CallsWithSpilloverArgs) { |
static LocalType a_i_ff[] = {kAstI32, kAstF32, kAstF32}; |
FunctionSig sig_i_ff(1, 2, a_i_ff); |
@@ -1308,6 +1331,8 @@ TEST_F(WasmDecoderTest, CallsWithMismatchedSigs3) { |
EXPECT_FAILURE_INLINE(env, WASM_CALL_FUNCTION(1, WASM_F32(17.6))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, SimpleIndirectCalls) { |
FunctionEnv* env = &env_i_i; |
@@ -1550,6 +1575,9 @@ TEST_F(WasmDecoderTest, BreakNesting3) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, BreaksWithMultipleTypes) { |
EXPECT_FAILURE_INLINE( |
&env_i_i, |
@@ -1567,6 +1595,8 @@ TEST_F(WasmDecoderTest, BreaksWithMultipleTypes) { |
WASM_BRV_IF(0, WASM_ZERO, WASM_I8(11)))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, BreakNesting_6_levels) { |
for (int mask = 0; mask < 64; mask++) { |
@@ -1600,6 +1630,9 @@ TEST_F(WasmDecoderTest, BreakNesting_6_levels) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, ExprBreak_TypeCheck) { |
FunctionEnv* envs[] = {&env_i_i, &env_l_l, &env_f_ff, &env_d_dd}; |
for (size_t i = 0; i < arraysize(envs); i++) { |
@@ -1622,6 +1655,8 @@ TEST_F(WasmDecoderTest, ExprBreak_TypeCheck) { |
WASM_F64(1.2))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, ExprBreak_TypeCheckAll) { |
byte code1[] = {WASM_BLOCK(2, |
@@ -1796,6 +1831,9 @@ TEST_F(WasmDecoderTest, TableSwitch2) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, TableSwitch1b) { |
EXPECT_VERIFIES_INLINE(&env_i_i, WASM_TABLESWITCH_OP(1, 1, WASM_CASE(0)), |
WASM_TABLESWITCH_BODY(WASM_GET_LOCAL(0), WASM_ZERO)); |
@@ -1807,6 +1845,8 @@ TEST_F(WasmDecoderTest, TableSwitch1b) { |
WASM_TABLESWITCH_BODY(WASM_ZERO, WASM_F64(0.0))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, TableSwitch_br) { |
EXPECT_VERIFIES_INLINE(&env_i_i, WASM_TABLESWITCH_OP(0, 1, WASM_CASE_BR(0)), |
@@ -1840,12 +1880,17 @@ TEST_F(WasmDecoderTest, TableSwitch_invalid_case_ref) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, TableSwitch1_br) { |
EXPECT_VERIFIES_INLINE( |
&env_i_i, WASM_TABLESWITCH_OP(1, 1, WASM_CASE(0)), |
WASM_TABLESWITCH_BODY(WASM_GET_LOCAL(0), WASM_BRV(0, WASM_ZERO))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, TableSwitch2_br) { |
EXPECT_VERIFIES_INLINE( |
@@ -1869,6 +1914,9 @@ TEST_F(WasmDecoderTest, TableSwitch2x2) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, ExprBreakNesting1) { |
EXPECT_VERIFIES_INLINE(&env_v_v, WASM_BLOCK(1, WASM_BRV(0, WASM_ZERO))); |
EXPECT_VERIFIES_INLINE(&env_v_v, WASM_BLOCK(1, WASM_BR(0))); |
@@ -1886,6 +1934,8 @@ TEST_F(WasmDecoderTest, ExprBreakNesting1) { |
EXPECT_VERIFIES_INLINE(&env_v_v, WASM_LOOP(1, WASM_BR(1))); |
} |
+#endif |
+ |
TEST_F(WasmDecoderTest, Select) { |
EXPECT_VERIFIES_INLINE( |
@@ -1894,6 +1944,9 @@ TEST_F(WasmDecoderTest, Select) { |
} |
+// TODO(tizer): Fix on arm and reenable. |
+#if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 |
+ |
TEST_F(WasmDecoderTest, Select_TypeCheck) { |
EXPECT_FAILURE_INLINE(&env_i_i, WASM_SELECT(WASM_F32(9.9), WASM_GET_LOCAL(0), |
WASM_GET_LOCAL(0))); |
@@ -1905,6 +1958,8 @@ TEST_F(WasmDecoderTest, Select_TypeCheck) { |
&env_i_i, WASM_SELECT(WASM_F32(9.9), WASM_GET_LOCAL(0), WASM_I64(0))); |
} |
+#endif |
+ |
class WasmOpcodeLengthTest : public TestWithZone { |
public: |