aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-05-01 14:07:33 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-01 14:07:33 -0700
commit7f9ecddb7f868a083ace6c82f97d80c2dd72dd29 (patch)
tree2ff15c9af52415713e2d00f8f2e1beab64bb37db /tests
parent8ee32adac324ff9bb705feddfa5e13089fc2801a (diff)
downloadyosys-7f9ecddb7f868a083ace6c82f97d80c2dd72dd29.tar.gz
yosys-7f9ecddb7f868a083ace6c82f97d80c2dd72dd29.tar.bz2
yosys-7f9ecddb7f868a083ace6c82f97d80c2dd72dd29.zip
Add testcase for #2010
Diffstat (limited to 'tests')
-rw-r--r--tests/opt/bug2010.ys10
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