aboutsummaryrefslogtreecommitdiff
path: root/test/passes/lower-to-ground/nested-vec.fir
diff options
context:
space:
mode:
authorazidar2015-09-29 20:38:47 -0700
committerazidar2015-09-29 20:38:47 -0700
commit794e5ada06401a79ea5545e80fb7896bd61e9481 (patch)
treef970f08dc1e930276a337b4de5833ba8d71593d2 /test/passes/lower-to-ground/nested-vec.fir
parent2a9bd217e6d8e519bc78f66e44502d77fa9cdc1d (diff)
Fixed final bug. All tests pass. Accessors are a go.
Diffstat (limited to 'test/passes/lower-to-ground/nested-vec.fir')
-rw-r--r--test/passes/lower-to-ground/nested-vec.fir6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/passes/lower-to-ground/nested-vec.fir b/test/passes/lower-to-ground/nested-vec.fir
index d484a6dc..aa208b01 100644
--- a/test/passes/lower-to-ground/nested-vec.fir
+++ b/test/passes/lower-to-ground/nested-vec.fir
@@ -15,10 +15,8 @@ circuit top :
; CHECK: wire a{{[_$]+}}1{{[_$]+}}y : UInt<32>
infer accessor b = a[i]
- ; CHECK: wire b{{[_$]+}}x : UInt<32>
- ; CHECK: wire b{{[_$]+}}y : UInt<32>
- ; CHECK: b{{[_$]+}}x := (a{{[_$]+}}0{{[_$]+}}x a{{[_$]+}}1{{[_$]+}}x)[i]
- ; CHECK: (a{{[_$]+}}0{{[_$]+}}y a{{[_$]+}}1{{[_$]+}}y)[i] := b{{[_$]+}}y
+ ; CHECK: indexer b{{[_$]+}}x = (a{{[_$]+}}0{{[_$]+}}x a{{[_$]+}}1{{[_$]+}}x)[i] : UInt<32>
+ ; CHECK: indexer (a{{[_$]+}}0{{[_$]+}}y a{{[_$]+}}1{{[_$]+}}y)[i] = b{{[_$]+}}y : UInt<32>
j := b
cmem m : { x : UInt<32>, y : UInt<32> }[2],clk