aboutsummaryrefslogtreecommitdiffstats
path: root/tests/techmap/bug2332.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/techmap/bug2332.ys')
-rw-r--r--tests/techmap/bug2332.ys11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/techmap/bug2332.ys b/tests/techmap/bug2332.ys
new file mode 100644
index 000000000..ed6b35eb2
--- /dev/null
+++ b/tests/techmap/bug2332.ys
@@ -0,0 +1,11 @@
+read_verilog <<EOT
+module top(input [31:0] a, input signed [2:0] x, output [2:0] o);
+
+wire [5:0] t = x * 3;
+assign o = a >> t;
+
+endmodule
+EOT
+
+wreduce
+equiv_opt -assert peepopt