From 062dbf2c9674ab046337279f5042445c4085ceb8 Mon Sep 17 00:00:00 2001 From: Adrian Parvin Ouano Date: Mon, 9 Oct 2023 00:36:22 +0800 Subject: [PATCH] alumacc: add signed-independent comparison tests --- tests/opt/alumacc.ys | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/opt/alumacc.ys diff --git a/tests/opt/alumacc.ys b/tests/opt/alumacc.ys new file mode 100644 index 000000000..043bdaaee --- /dev/null +++ b/tests/opt/alumacc.ys @@ -0,0 +1,33 @@ +read_verilog < rb; +assign sgt = $signed(ra) > $signed(rb); +assign lt = ra < rb; +assign slt = $signed(ra) < $signed(rb); + +assign ge = ra >= rb; +assign eq = ra == rb; +assign seq = $signed(ra) == $signed(rb); +assign ne = ra != rb; + +endmodule +EOT + +proc + +equiv_opt -assert alumacc +alumacc +select -assert-count 1 t:$alu