rtlil: Disallow 0-width chunks in SigSpec.
authorMarcelina Kościelnicka <mwk@0x04.net>
Tue, 9 Mar 2021 01:54:56 +0000 (02:54 +0100)
committerMarcelina Kościelnicka <mwk@0x04.net>
Mon, 15 Mar 2021 16:16:24 +0000 (17:16 +0100)
commitf965b3fa54eb38bf7f0246acc874087fc696f7f5
treedb91d25dddaeefcc94daed1f784f3f4199bd8cf6
parente178d0367a315213560514f827072595adfd4b4a
rtlil: Disallow 0-width chunks in SigSpec.

Among other problems, this also fixes equality comparisons between
SigSpec by enforcing a canonical form.

Also fix another minor issue with possible non-canonical SigSpec.

Fixes #2623.
kernel/rtlil.cc
tests/opt/bug2623.ys [new file with mode: 0644]