Add testcase for #2010
authorEddie Hung <eddie@fpgeh.com>
Fri, 1 May 2020 21:07:33 +0000 (14:07 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 1 May 2020 21:07:33 +0000 (14:07 -0700)
tests/opt/bug2010.ys [new file with mode: 0644]

diff --git a/tests/opt/bug2010.ys b/tests/opt/bug2010.ys
new file mode 100644 (file)
index 0000000..cef8208
--- /dev/null
@@ -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