From 7afcb72c98620adaace7cc9622c4d577668f9426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ko=C5=9Bcielnicka?= Date: Sun, 5 Jul 2020 00:55:38 +0200 Subject: opt_expr: Fix crash on $mul optimization with more zeros removed than Y has. Fixes #2221. --- tests/opt/bug2221.ys | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/opt/bug2221.ys (limited to 'tests/opt') diff --git a/tests/opt/bug2221.ys b/tests/opt/bug2221.ys new file mode 100644 index 000000000..8ac380243 --- /dev/null +++ b/tests/opt/bug2221.ys @@ -0,0 +1,16 @@ +read_verilog <