diff --git a/tests/opt/opt_merge_basic.ys b/tests/opt/opt_merge_basic.ys index 082fdb0b8..9de320aaa 100644 --- a/tests/opt/opt_merge_basic.ys +++ b/tests/opt/opt_merge_basic.ys @@ -19,7 +19,7 @@ module top(A, B, C, X, Y); input [7:0] A, B, C; output [7:0] X, Y; assign X = A + B; -assign Y = A + C; +assign Y = A + C; // <- look here endmodule EOT # Reject on a different input @@ -45,10 +45,9 @@ select -assert-count 1 t:$reduce_xor design -reset read_verilog -icells < B; +assign Y = A > B; +endmodule +EOT +# Exercise the general case in hash_cell_inputs - accept +opt_expr +select -assert-count 2 t:$gt +equiv_opt -assert opt_merge +design -load postopt +select -assert-count 1 t:$gt + +design -reset +read_verilog < B; +assign Y = A > C; // <- look here +endmodule +EOT +# Exercise the general case in hash_cell_inputs - reject +opt_expr +select -assert-count 2 t:$gt +opt_merge +select -assert-count 2 t:$gt