Fix display of huge double.
This commit is contained in:
parent
b97e1aa9fe
commit
897b9ccfe2
|
|
@ -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) \
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ scenarios(vlt => 1);
|
|||
|
||||
lint(
|
||||
verilator_flags2 => ["--lint-only --bbox-sys"],
|
||||
fails => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ scenarios(vlt => 1);
|
|||
|
||||
lint(
|
||||
verilator_flags2 => ["--lint-only --bbox-sys --bbox-unsup -Wall -Wno-DECLFILENAME"],
|
||||
fails => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ scenarios(vlt => 1);
|
|||
|
||||
lint(
|
||||
verilator_flags2 => ["--lint-only -Wall -Wno-DECLFILENAME"],
|
||||
fails => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ compile(
|
|||
|
||||
execute(
|
||||
expect_filename => $Self->{golden_filename},
|
||||
fails => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue