Skip to content

Commit 5b86b15

Browse files
LiedtkeV8-internal LUCI CQ
authored andcommitted
[wasm] Fix code generators for WasmSimd128IntegerTernaryOp
Bug: 427134596 Change-Id: I6674ecbb84303e8dc78d77d5d8eb1f391df0803c Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/8446897 Reviewed-by: Carl Smith <[email protected]> Commit-Queue: Carl Smith <[email protected]> Auto-Submit: Matthias Liedtke <[email protected]> Reviewed-by: Danylo Mocherniuk <[email protected]>
1 parent bd7e685 commit 5b86b15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Fuzzilli/CodeGen/WasmCodeGenerators.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ public let WasmCodeGenerators: [CodeGenerator] = [
10531053
},
10541054

10551055
CodeGenerator("WasmSimd128IntegerTernaryOpGenerator", inContext: .wasmFunction, inputs: .required(.wasmSimd128, .wasmSimd128, .wasmSimd128)) { b, left, mid, right in
1056-
let shape = chooseUniform(from: WasmSimd128Shape.allCases.filter{ $0.isFloat() } )
1056+
let shape = chooseUniform(from: WasmSimd128Shape.allCases.filter{ !$0.isFloat() } )
10571057
let ternaryOpKind = chooseUniform(from: WasmSimd128IntegerTernaryOpKind.allCases.filter{
10581058
$0.isValidForShape(shape: shape)
10591059
})

Sources/Fuzzilli/Mutators/OperationMutator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public class OperationMutator: BaseInstructionMutator {
377377
})
378378
newOp = WasmSimd128IntegerBinOp(shape: shape, binOpKind: binOpKind)
379379
case .wasmSimd128IntegerTernaryOp(_):
380-
let shape = chooseUniform(from: WasmSimd128Shape.allCases.filter { $0.isFloat() })
380+
let shape = chooseUniform(from: WasmSimd128Shape.allCases.filter { !$0.isFloat() })
381381
let ternaryOpKind = chooseUniform(from: WasmSimd128IntegerTernaryOpKind.allCases.filter {
382382
$0.isValidForShape(shape: shape)
383383
})

0 commit comments

Comments
 (0)