diff options
| author | van Hauser <vh@thc.org> | 2020-07-29 12:58:02 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-07-29 12:58:02 +0200 |
| commit | 22921c493fbf48b317354bb50f1af4a678fcfb55 (patch) | |
| tree | a381f9458a1f73713c220085ab7afef17d571984 /llvm_mode | |
| parent | f32811922ec8f363bdf46a019d984058dbeb06bf (diff) | |
| download | afl++-22921c493fbf48b317354bb50f1af4a678fcfb55.tar.gz | |
improve docs, enable laf compare if float is set
Diffstat (limited to 'llvm_mode')
| -rw-r--r-- | llvm_mode/README.laf-intel.md | 4 | ||||
| -rw-r--r-- | llvm_mode/afl-clang-fast.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm_mode/README.laf-intel.md b/llvm_mode/README.laf-intel.md index 2fa4bc26..f63ab2bb 100644 --- a/llvm_mode/README.laf-intel.md +++ b/llvm_mode/README.laf-intel.md @@ -35,8 +35,8 @@ bit_width may be 64, 32 or 16. A new experimental feature is splitting floating point comparisons into a series of sign, exponent and mantissa comparisons followed by splitting each of them into 8 bit comparisons when necessary. -It is activated with the `AFL_LLVM_LAF_SPLIT_FLOATS` setting, available only -when `AFL_LLVM_LAF_SPLIT_COMPARES` is set. +It is activated with the `AFL_LLVM_LAF_SPLIT_FLOATS` setting. +Note that setting this automatically activates `AFL_LLVM_LAF_SPLIT_COMPARES` You can also set `AFL_LLVM_LAF_ALL` and have all of the above enabled :-) diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c index 4d01e740..dca11bf3 100644 --- a/llvm_mode/afl-clang-fast.c +++ b/llvm_mode/afl-clang-fast.c @@ -268,7 +268,8 @@ static void edit_params(u32 argc, char **argv, char **envp) { } - if (getenv("LAF_SPLIT_COMPARES") || getenv("AFL_LLVM_LAF_SPLIT_COMPARES")) { + if (getenv("LAF_SPLIT_COMPARES") || getenv("AFL_LLVM_LAF_SPLIT_COMPARES") || + getenv("AFL_LLVM_LAF_SPLIT_FLOATS")) { cc_params[cc_par_cnt++] = "-Xclang"; cc_params[cc_par_cnt++] = "-load"; |
