Fix display of huge double.

This commit is contained in:
Wilson Snyder 2020-05-10 16:03:46 -04:00
parent b97e1aa9fe
commit 897b9ccfe2
6 changed files with 4 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#include <cstdarg>
#include <iomanip>
#define MAX_SPRINTF_DOUBLE_SIZE 100 // Maximum characters with a sprintf %e/%f/%g (probably < 30)
#define MAX_SPRINTF_DOUBLE_SIZE 1100 // Maximum characters with a sprintf %e/%f/%g (really 1079)
// Number operations build output in-place so can't call e.g. foo.opX(foo)
#define NUM_ASSERT_OP_ARGS1(arg1) \

View File

@ -12,7 +12,6 @@ scenarios(vlt => 1);
lint(
verilator_flags2 => ["--lint-only --bbox-sys"],
fails => 0,
);
ok(1);

View File

@ -12,7 +12,6 @@ scenarios(vlt => 1);
lint(
verilator_flags2 => ["--lint-only --bbox-sys --bbox-unsup -Wall -Wno-DECLFILENAME"],
fails => 0,
);
ok(1);

View File

@ -12,7 +12,6 @@ scenarios(vlt => 1);
lint(
verilator_flags2 => ["--lint-only -Wall -Wno-DECLFILENAME"],
fails => 0,
);
ok(1);

View File

@ -85,6 +85,9 @@ module t (/*AUTOARG*/
// bug
r = 32'bxz000_111; // 7 accoding to IEEE
if (r != 7) $stop;
// bug
b = 64'h7fe8000000000000;
$display("%6.3f", $bitstoreal(b));
end
// Test loop

View File

@ -16,7 +16,6 @@ compile(
execute(
expect_filename => $Self->{golden_filename},
fails => 0,
);
ok(1);