Index: test/cctest/wasm/test-run-wasm-simd.cc |
diff --git a/test/cctest/wasm/test-run-wasm-simd.cc b/test/cctest/wasm/test-run-wasm-simd.cc |
index 02e86f37711eae2f0a13d8061c3f92cdf1af1964..bcf3f571d1d9e4f6f46daa510f9ccb746e18407b 100644 |
--- a/test/cctest/wasm/test-run-wasm-simd.cc |
+++ b/test/cctest/wasm/test-run-wasm-simd.cc |
@@ -741,7 +741,8 @@ WASM_EXEC_COMPILED_TEST(I16x8ReplaceLane) { |
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || |
// V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
-#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 |
+#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_MIPS || \ |
+ V8_TARGET_ARCH_MIPS64 |
WASM_EXEC_COMPILED_TEST(I8x16Splat) { |
FLAG_wasm_simd_prototype = true; |
@@ -859,7 +860,8 @@ WASM_EXEC_COMPILED_TEST(I8x16ReplaceLane) { |
CHECK_EQ(1, r.Call(1, 2)); |
} |
-#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 |
+#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_MIPS || |
+ // V8_TARGET_ARCH_MIPS64 |
#if V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET || V8_TARGET_ARCH_MIPS || \ |
V8_TARGET_ARCH_MIPS64 |
@@ -1242,7 +1244,8 @@ WASM_EXEC_COMPILED_TEST(I16x8SubSaturateS) { |
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || |
// V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
-#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET |
+#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || \ |
+ V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
WASM_EXEC_COMPILED_TEST(I16x8Mul) { RunI16x8BinOpTest(kExprI16x8Mul, Mul); } |
WASM_EXEC_COMPILED_TEST(I16x8MinS) { |
@@ -1295,9 +1298,11 @@ WASM_EXEC_COMPILED_TEST(I16x8Eq) { RunI16x8CompareOpTest(kExprI16x8Eq, Equal); } |
WASM_EXEC_COMPILED_TEST(I16x8Ne) { |
RunI16x8CompareOpTest(kExprI16x8Ne, NotEqual); |
} |
-#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET |
+#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || |
+ // V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
-#if V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET |
+#if V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET || V8_TARGET_ARCH_MIPS || \ |
+ V8_TARGET_ARCH_MIPS64 |
WASM_EXEC_COMPILED_TEST(I16x8LtS) { |
RunI16x8CompareOpTest(kExprI16x8LtS, Less); |
} |
@@ -1329,7 +1334,8 @@ WASM_EXEC_COMPILED_TEST(I16x8LtU) { |
WASM_EXEC_COMPILED_TEST(I16x8LeU) { |
RunI16x8CompareOpTest(kExprI16x8LeU, UnsignedLessEqual); |
} |
-#endif // V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET |
+#endif // V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET || V8_TARGET_ARCH_MIPS || |
+ // V8_TARGET_ARCH_MIPS64 |
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || \ |
V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
@@ -1362,7 +1368,7 @@ WASM_EXEC_COMPILED_TEST(I16x8ShrU) { |
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || SIMD_LOWERING_TARGET || |
// V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
-#if V8_TARGET_ARCH_ARM |
+#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
void RunI8x16UnOpTest(WasmOpcode simd_op, Int8UnOp expected_op) { |
FLAG_wasm_simd_prototype = true; |
WasmRunner<int32_t, int32_t, int32_t> r(kExecuteCompiled); |
@@ -1377,7 +1383,9 @@ void RunI8x16UnOpTest(WasmOpcode simd_op, Int8UnOp expected_op) { |
} |
WASM_EXEC_COMPILED_TEST(I8x16Neg) { RunI8x16UnOpTest(kExprI8x16Neg, Negate); } |
+#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
+#if V8_TARGET_ARCH_ARM |
// Tests both signed and unsigned conversion from I16x8 (packing). |
WASM_EXEC_COMPILED_TEST(I8x16ConvertI16x8) { |
FLAG_wasm_simd_prototype = true; |
@@ -1526,6 +1534,7 @@ WASM_EXEC_COMPILED_TEST(I8x16LtU) { |
WASM_EXEC_COMPILED_TEST(I8x16LeU) { |
RunI8x16CompareOpTest(kExprI8x16LeU, UnsignedLessEqual); |
} |
+#endif // V8_TARGET_ARCH_ARM |
void RunI8x16ShiftOpTest(WasmOpcode simd_op, Int8ShiftOp expected_op, |
int shift) { |
@@ -1542,6 +1551,7 @@ void RunI8x16ShiftOpTest(WasmOpcode simd_op, Int8ShiftOp expected_op, |
FOR_INT8_INPUTS(i) { CHECK_EQ(1, r.Call(*i, expected_op(*i, shift))); } |
} |
+#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
WASM_EXEC_COMPILED_TEST(I8x16Shl) { |
RunI8x16ShiftOpTest(kExprI8x16Shl, LogicalShiftLeft, 1); |
} |
@@ -1549,7 +1559,9 @@ WASM_EXEC_COMPILED_TEST(I8x16Shl) { |
WASM_EXEC_COMPILED_TEST(I8x16ShrS) { |
RunI8x16ShiftOpTest(kExprI8x16ShrS, ArithmeticShiftRight, 1); |
} |
+#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
+#if V8_TARGET_ARCH_ARM |
WASM_EXEC_COMPILED_TEST(I8x16ShrU) { |
RunI8x16ShiftOpTest(kExprI8x16ShrU, LogicalShiftRight, 1); |
} |
@@ -1596,11 +1608,13 @@ WASM_SIMD_SELECT_TEST(32x4) |
#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_MIPS || |
// V8_TARGET_ARCH_MIPS64 |
-#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 |
+#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_MIPS || \ |
+ V8_TARGET_ARCH_MIPS64 |
WASM_SIMD_SELECT_TEST(16x8) |
WASM_SIMD_SELECT_TEST(8x16) |
-#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 |
+#endif // V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_MIPS || |
+ // V8_TARGET_ARCH_MIPS64 |
#if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_X64 |
// Test binary ops with two lane test patterns, all lanes distinct. |