From: Clifford Wolf Date: Wed, 1 May 2019 13:06:46 +0000 (+0200) Subject: Fix floating point exception in qwp, fixes #923 X-Git-Tag: yosys-0.9~163^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93b7fd77449ea385d12db71fd8205312441535d9;p=yosys.git Fix floating point exception in qwp, fixes #923 Signed-off-by: Clifford Wolf --- diff --git a/passes/cmds/qwp.cc b/passes/cmds/qwp.cc index 1c64a7b77..adbe89e31 100644 --- a/passes/cmds/qwp.cc +++ b/passes/cmds/qwp.cc @@ -291,7 +291,7 @@ struct QwpWorker // gaussian elimination for (int i = 0; i < N; i++) { - if (config.verbose && ((i+1) % (N/15)) == 0) + if (config.verbose && N > 15 && ((i+1) % (N/15)) == 0) log("> Solved %d%%: %d/%d\n", (100*(i+1))/N, i+1, N); // find best row