From 601cd7ba5fef5e66b12f5578e57a061b7738a1ee Mon Sep 17 00:00:00 2001 From: nella Date: Wed, 10 Jun 2026 11:30:03 +0200 Subject: [PATCH] Add tests. --- tests/opt/opt_expr_sub_not.ys | 100 ++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 tests/opt/opt_expr_sub_not.ys diff --git a/tests/opt/opt_expr_sub_not.ys b/tests/opt/opt_expr_sub_not.ys new file mode 100644 index 000000000..459ec0f94 --- /dev/null +++ b/tests/opt/opt_expr_sub_not.ys @@ -0,0 +1,100 @@ +# Rewrite (2^k-1)-x into ~x when x is known to be smaller than 2^k + +read_verilog -icells <