-
Notifications
You must be signed in to change notification settings - Fork 573
Closed
Labels
Description
On both the 11.0 and 12.0 release, two tests fail on aarch64 due to floating point formatting:
br1029a: ==> Failed - output does not match gold file.
br1029b: ==> Failed - output does not match gold file.
- https://github.com/steveicarus/ivtest/blob/master/ivltests/br1029a.v
- https://github.com/steveicarus/ivtest/blob/master/ivltests/br1029b.v
Using the current 11.0 macos release installed through brew,
$ iverilog -v
Icarus Verilog version 11.0 (stable) ()
# ...
$ which iverilog
/opt/homebrew/bin/iverilog
$ iverilog source/ivtest/ivltests/br1029a.v
$ ./a.out
a: 0.4 0 0 0
b: 0.5 1 1 1
c: 0.6 1 1 1
d: 2.4 2 2 10
e: 2.5 3 3 11
f: 2.6 3 3 11
a: -0.4 -0 0 0
b: -0.5 -1 0 0
c: -0.6 -1 0 0
d: -2.4 -2 0 0
e: -2.5 -3 0 0
f: -2.6 -3 0 0
And using a fresh build of the 12.0 release through nix,
$ ./result/bin/iverilog source/ivtest/ivltests/br1029a.v
$ ./a.out
a: 0.4 0 0 0
b: 0.5 1 1 1
c: 0.6 1 1 1
d: 2.4 2 2 10
e: 2.5 3 3 11
f: 2.6 3 3 11
a: -0.4 -0 0 0
b: -0.5 -1 0 0
c: -0.6 -1 0 0
d: -2.4 -2 0 0
e: -2.5 -3 0 0
f: -2.6 -3 0 0In both cases the formatting of %0x and %0b differs from the spec file.
See our nixpkgs discussion.
Thanks, let me know if I'm missing something and I'm happy to provide more details as needed 🙂