Skip to content

Commit

Permalink
fuzzgen: Add FUZZGEN_ALLOWED_OPS docs
Browse files Browse the repository at this point in the history
  • Loading branch information
afonso360 committed Nov 1, 2023
1 parent ec18e69 commit 6076703
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fuzz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,15 @@ following steps to reproduce it locally:
to print the configuration and WebAssembly input used by the test case (see
uses of `log_wasm` in the `wasmtime-fuzzing` crate).

## Target specific options

### `cranelift-fuzzgen`

Fuzzgen supports passing the `FUZZGEN_ALLOWED_OPS` environment variable, which when available restricts the instructions that it will generate.

Running `FUZZGEN_ALLOWED_OPS=ineg,ishl cargo fuzz run cranelift-fuzzgen` will run fuzzgen but only generate `ineg` or `ishl` opcodes.

### `cranelift-icache`

The icache target also uses the fuzzgen library, thus also supports the `FUZZGEN_ALLOWED_OPS` enviornment variable as described in the `cranelift-fuzzgen` section above.

0 comments on commit 6076703

Please sign in to comment.