aboutsummaryrefslogtreecommitdiff
path: root/test/passes/lower-to-ground/accessor.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/lower-to-ground/accessor.fir
parentd075e52e86648d345e89ae4a4c75fd3a98cc2788 (diff)
Updated lots of tests so they pass. Found one bug in expand whens
Diffstat (limited to 'test/passes/lower-to-ground/accessor.fir')
-rw-r--r--test/passes/lower-to-ground/accessor.fir16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/passes/lower-to-ground/accessor.fir b/test/passes/lower-to-ground/accessor.fir
index 4858fafb..19b6ac96 100644
--- a/test/passes/lower-to-ground/accessor.fir
+++ b/test/passes/lower-to-ground/accessor.fir
@@ -8,27 +8,27 @@ circuit top :
wire j : UInt<32>
wire a : UInt<32>[4]
- ; CHECK: wire a_0 : UInt<32>
- ; CHECK: wire a_1 : UInt<32>
- ; CHECK: wire a_2 : UInt<32>
- ; CHECK: wire a_3 : UInt<32>
+ ; CHECK: wire a{{[_$]+}}0 : UInt<32>
+ ; CHECK: wire a{{[_$]+}}1 : UInt<32>
+ ; CHECK: wire a{{[_$]+}}2 : UInt<32>
+ ; CHECK: wire a{{[_$]+}}3 : UInt<32>
infer accessor b = a[i]
; CHECK: wire b : UInt<32>
- ; CHECK: b := (a_0 a_1 a_2 a_3)[i]
+ ; CHECK: b := (a{{[_$]+}}0 a{{[_$]+}}1 a{{[_$]+}}2 a{{[_$]+}}3)[i]
j := b
infer accessor c = a[i]
; CHECK: wire c : UInt<32>
- ; CHECK: (a_0 a_1 a_2 a_3)[i] := c
+ ; CHECK: (a{{[_$]+}}0 a{{[_$]+}}1 a{{[_$]+}}2 a{{[_$]+}}3)[i] := c
c := j
cmem p : UInt<32>[4],clk
infer accessor t = p[i]
- ; CHECK: accessor t = p[i]
+ ; CHECK: read accessor t = p[i]
j := t
infer accessor r = p[i]
- ; CHECK: accessor r = p[i]
+ ; CHECK: write accessor r = p[i]
r := j
; CHECK: Finished Lower To Ground