1
0
mirror of synced 2026-04-26 04:08:28 +00:00

Merge pull request #2333 from YosysHQ/mwk/peepopt-shiftmul-signed

peeopt.shiftmul: Add a signedness check.
This commit is contained in:
clairexen
2020-08-20 16:23:07 +02:00
committed by GitHub
2 changed files with 12 additions and 5 deletions

11
tests/techmap/bug2332.ys Normal file
View File

@@ -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