[wasm-simd][fuzzer] Add v128 load32_zero and load64_zero to fuzzer
Bug: v8:11038 Change-Id: I21dc1bd048aa4d4d7068f7eba403a531a84849e1 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2501968 Reviewed-by: Bill Budge <bbudge@chromium.org> Commit-Queue: Zhi An Ng <zhin@chromium.org> Cr-Commit-Position: refs/heads/master@{#70812}
This commit is contained in:
parent
e6d96d2329
commit
4d600490ce
@ -281,6 +281,7 @@ class WasmGenerator {
|
||||
case kExprS128Load32x2S:
|
||||
case kExprS128Load32x2U:
|
||||
case kExprS128Load64Splat:
|
||||
case kExprS128Load64Zero:
|
||||
return 3;
|
||||
case kExprI32LoadMem:
|
||||
case kExprI64LoadMem32S:
|
||||
@ -308,6 +309,7 @@ class WasmGenerator {
|
||||
case kExprI64AtomicExchange32U:
|
||||
case kExprI64AtomicCompareExchange32U:
|
||||
case kExprS128Load32Splat:
|
||||
case kExprS128Load32Zero:
|
||||
return 2;
|
||||
case kExprI32LoadMem16S:
|
||||
case kExprI32LoadMem16U:
|
||||
@ -1548,7 +1550,10 @@ void WasmGenerator::Generate<ValueType::kS128>(DataRange* data) {
|
||||
&WasmGenerator::memop<kExprS128Load8Splat>,
|
||||
&WasmGenerator::memop<kExprS128Load16Splat>,
|
||||
&WasmGenerator::memop<kExprS128Load32Splat>,
|
||||
&WasmGenerator::memop<kExprS128Load64Splat>};
|
||||
&WasmGenerator::memop<kExprS128Load64Splat>,
|
||||
&WasmGenerator::memop<kExprS128Load32Zero>,
|
||||
&WasmGenerator::memop<kExprS128Load64Zero>,
|
||||
};
|
||||
|
||||
GenerateOneOf(alternatives, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user