diff --git a/test/cctest/wasm/test-liftoff-for-fuzzing.cc b/test/cctest/wasm/test-liftoff-for-fuzzing.cc index 3843089dd8..ae168efda8 100644 --- a/test/cctest/wasm/test-liftoff-for-fuzzing.cc +++ b/test/cctest/wasm/test-liftoff-for-fuzzing.cc @@ -40,7 +40,7 @@ TEST(NondeterminismUnopF64) { CHECK(r.HasNondeterminism()); } -TEST(NondeterminismUnopF32x4AllNaN) { +TEST(NondeterminismUnopF32x4) { WasmRunner r(TestExecutionTier::kLiftoffForFuzzing); byte value = 0; @@ -55,21 +55,7 @@ TEST(NondeterminismUnopF32x4AllNaN) { CHECK(r.HasNondeterminism()); } -TEST(NondeterminismUnopF32x4OneNaN) { - for (byte lane = 0; lane < 4; ++lane) { - WasmRunner r(TestExecutionTier::kLiftoffForFuzzing); - BUILD(r, WASM_SIMD_F32x4_SPLAT(WASM_F32(0)), WASM_LOCAL_GET(0), - WASM_SIMD_OP(kExprF32x4ReplaceLane), lane, - WASM_SIMD_OP(kExprF32x4Ceil), kExprDrop, WASM_ONE); - CHECK(!r.HasNondeterminism()); - r.CheckCallViaJS(1, 0.0); - CHECK(!r.HasNondeterminism()); - r.CheckCallViaJS(1, std::nanf("")); - CHECK(r.HasNondeterminism()); - } -} - -TEST(NondeterminismUnopF64x2AllNaN) { +TEST(NondeterminismUnopF64x2) { WasmRunner r(TestExecutionTier::kLiftoffForFuzzing); byte value = 0; @@ -84,20 +70,6 @@ TEST(NondeterminismUnopF64x2AllNaN) { CHECK(r.HasNondeterminism()); } -TEST(NondeterminismUnopF64x2OneNaN) { - for (byte lane = 0; lane < 2; ++lane) { - WasmRunner r(TestExecutionTier::kLiftoffForFuzzing); - BUILD(r, WASM_SIMD_F64x2_SPLAT(WASM_F64(0)), WASM_LOCAL_GET(0), - WASM_SIMD_OP(kExprF64x2ReplaceLane), lane, - WASM_SIMD_OP(kExprF64x2Ceil), kExprDrop, WASM_ONE); - CHECK(!r.HasNondeterminism()); - r.CheckCallViaJS(1, 0.0); - CHECK(!r.HasNondeterminism()); - r.CheckCallViaJS(1, std::nan("")); - CHECK(r.HasNondeterminism()); - } -} - TEST(NondeterminismBinop) { WasmRunner r(TestExecutionTier::kLiftoffForFuzzing);