From 81ca776ea44e126b3946fcdd076c2d2e4d2ab34d Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 19 Mar 2020 16:59:11 -0700 Subject: [PATCH] opt_expr: add $xor/$xnor/$_XOR_/$_XNOR_ tests --- tests/opt/opt_expr_xor.ys | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tests/opt/opt_expr_xor.ys diff --git a/tests/opt/opt_expr_xor.ys b/tests/opt/opt_expr_xor.ys new file mode 100644 index 000000000..a458c9a27 --- /dev/null +++ b/tests/opt/opt_expr_xor.ys @@ -0,0 +1,40 @@ +read_verilog < $_XOR_+$_NOT_ +select -assert-count 3 t:$_NOT_ + + +design -reset +read_verilog -icells < $_XOR_+$_NOT_ +select -assert-count 1 t:$_NOT_ -- 2.30.2