aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-whens/bundle-init.fir
diff options
context:
space:
mode:
authorazidar2015-07-30 11:50:54 -0700
committerazidar2015-07-30 11:50:54 -0700
commit9b2f96b8d0b6c7f4e6fefde918d7a335ccd7b7f3 (patch)
tree089578809d3ebe63ac5983ddda7fff7a6c00430a /test/passes/expand-whens/bundle-init.fir
parentd075e52e86648d345e89ae4a4c75fd3a98cc2788 (diff)
Updated lots of tests so they pass. Found one bug in expand whens
Diffstat (limited to 'test/passes/expand-whens/bundle-init.fir')
-rw-r--r--test/passes/expand-whens/bundle-init.fir14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/passes/expand-whens/bundle-init.fir b/test/passes/expand-whens/bundle-init.fir
index 10da47cf..7e366400 100644
--- a/test/passes/expand-whens/bundle-init.fir
+++ b/test/passes/expand-whens/bundle-init.fir
@@ -4,10 +4,10 @@ circuit top :
module top :
input clk : Clock
input reset : UInt<1>
- reg r : { x : UInt, flip y : UInt},clk,reset
+ reg r : { x : UInt, y : UInt},clk,reset
wire a : UInt
wire b : UInt
- wire w : { x : UInt, flip y : UInt}
+ wire w : { x : UInt, y : UInt}
a := UInt(1)
b := UInt(2)
@@ -17,11 +17,11 @@ circuit top :
r.y := b
onreset r := w
-; CHECK: when UInt(1) : r$x := mux(reset, w$x, a)
-; CHECK: when UInt(1) : r$y := b
-; CHECK: a := UInt(1)
-; CHECK: b := UInt(2)
+; CHECK: r$x := mux(reset, w$x, a)
+; CHECK: r$y := mux(reset, w$y, b)
+; CHECK: a := UInt("h00000001")
+; CHECK: b := UInt("h00000002")
; CHECK: w$x := b
-; CHECK: w$y := mux(reset, r$y, a)
+; CHECK: w$y := a
; CHECK: Finished Expand Whens