3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Merge pull request #2014 from YosysHQ/claire/fixoptalu

Fix the other "opt_expr -fine" bug introduced in 213a89558
This commit is contained in:
Claire Wolf 2020-05-03 11:56:29 +02:00 committed by GitHub
commit 5c82c19b4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 7 deletions

12
tests/various/bug2014.ys Normal file
View file

@ -0,0 +1,12 @@
read_verilog <<EOT
module test (
input signed [1:0] n,
output [3:0] dout
);
assign dout = n + 4'sd 4;
endmodule
EOT
alumacc
select -assert-count 1 t:$alu
equiv_opt -assert opt -fine