diff options
Diffstat (limited to 'test/passes/expand-whens/nested-whens.fir')
| -rw-r--r-- | test/passes/expand-whens/nested-whens.fir | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/passes/expand-whens/nested-whens.fir b/test/passes/expand-whens/nested-whens.fir index 0a45dac1..9a9d56d4 100644 --- a/test/passes/expand-whens/nested-whens.fir +++ b/test/passes/expand-whens/nested-whens.fir @@ -6,13 +6,13 @@ circuit top : input reset : UInt<1> wire p : UInt wire q : UInt - reg r : UInt, clk, reset wire a : UInt wire b : UInt wire x : UInt wire y : UInt wire z : UInt wire w : UInt + reg r : UInt, clk, reset, w p <= UInt(1) q <= UInt(1) a <= UInt(1) @@ -22,13 +22,11 @@ circuit top : z <= UInt(1) w <= UInt(1) - onreset r <= w when p : - onreset r <= x r <= a when q : - onreset r <= y r <= b r <= z -; CHECK: r <= mux(reset, mux(q, y, mux(p, x, w)), z) +; CHECK: r <= z ; CHECK: Finished Expand Whens +; CHECK: Done! |
