diff options
author | Claire Wolf <clifford@clifford.at> | 2020-05-02 11:20:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 11:20:02 +0200 |
commit | ca3fc3c882b9a454c48bee7d701fa5cb254ae671 (patch) | |
tree | 3650eb235d6bb48b4bd0ac395d806074225ae0c5 /tests | |
parent | bbde2419420a86635baf2b730ebe58ed6edca5bb (diff) | |
parent | 7f9ecddb7f868a083ace6c82f97d80c2dd72dd29 (diff) | |
download | yosys-ca3fc3c882b9a454c48bee7d701fa5cb254ae671.tar.gz yosys-ca3fc3c882b9a454c48bee7d701fa5cb254ae671.tar.bz2 yosys-ca3fc3c882b9a454c48bee7d701fa5cb254ae671.zip |
Merge pull request #2010 from YosysHQ/claire/fixopt
Fix "opt_expr -fine" bug introduced in 213a89558
Diffstat (limited to 'tests')
-rw-r--r-- | tests/opt/bug2010.ys | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/opt/bug2010.ys b/tests/opt/bug2010.ys new file mode 100644 index 000000000..cef820867 --- /dev/null +++ b/tests/opt/bug2010.ys @@ -0,0 +1,10 @@ +read_verilog <<EOT +module test ( + input signed [1:0] n, + output [3:0] dout +); + assign dout = n + 4'sd 4; +endmodule +EOT + +equiv_opt -assert opt -fine |