projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee32ad
)
Add testcase for #2010
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 1 May 2020 21:07:33 +0000
(14:07 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 1 May 2020 21:07:33 +0000
(14:07 -0700)
tests/opt/bug2010.ys
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/opt/bug2010.ys
b/tests/opt/bug2010.ys
new file mode 100644
(file)
index 0000000..
cef8208
--- /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