tests/opt: Add extra alumacc test

Checks equivalence when folding an `$lt` (or equivalently a `$gt`) into a `$sub`.
Currently failing, fix incoming.
This commit is contained in:
Krystine Sherwin 2026-07-24 17:37:03 +12:00
parent 30fe16c7f1
commit 66654d278d
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -31,3 +31,15 @@ proc
equiv_opt -assert alumacc
alumacc
select -assert-count 1 t:$alu
design -reset
read_verilog << EOT
module top(input signed a, b, output x, output [1:0] y);
assign y = $unsigned(a) - $unsigned(b);
assign x = a > b;
endmodule
EOT
hierarchy
wreduce
equiv_opt -assert alumacc