Commit dee5e9fd authored by Schuyler Eldridge's avatar Schuyler Eldridge Committed by mergify-bot
Browse files

Fix dshl zero-width shift behavior (#2339)



* Fix dshl zero-width shift behavior

Add a special case for dshl handling in the ZeroWidths pass.  If one
expression is shifted by a second, zero-width expression, just return
the first expression.  This prevents a bug where the width will
incorrectly expand due to zero-widths introducing a 1-bit zero
expression.

Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@sifive.com>

* fixup! Fix dshl zero-width shift behavior

(cherry picked from commit cc80c631)
parent 899dab81
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment