From 93ba0196dc2ba88e4e34346e5fbc105743a8eaa0 Mon Sep 17 00:00:00 2001 From: azidar Date: Sat, 2 May 2015 12:20:41 -0700 Subject: Now when expanding ConnectFrom/ToIndex, create a node for the index so it isn't duplicated for all the whens --- test/passes/expand-connect-indexed/bundle-vecs.fir | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/passes') diff --git a/test/passes/expand-connect-indexed/bundle-vecs.fir b/test/passes/expand-connect-indexed/bundle-vecs.fir index 35b45b6c..c8235ade 100644 --- a/test/passes/expand-connect-indexed/bundle-vecs.fir +++ b/test/passes/expand-connect-indexed/bundle-vecs.fir @@ -16,11 +16,13 @@ circuit top : ; CHECK: wire b$x : UInt<32> ; CHECK: wire b$y : UInt<32> ; CHECK: b$x := a$0$x - ; CHECK: when eq-uu(i, UInt(1)) : - ; CHECK: b$x := a$1$x + ; CHECK: node b$x#0 = i + ; CHECK: when eq-uu(b$x#0, UInt(1)) : + ; CHECK: b$x := a$1$x ; CHECK: a$0$y := b$y - ; CHECK: when eq-uu(i, UInt(1)) : - ; CHECK: a$1$y := b$y + ; CHECK: node b$y#0 = i + ; CHECK: when eq-uu(b$y#0, UInt(1)) : + ; CHECK: a$1$y := b$y j := b ; CHECK: Finished Expand Indexed Connects -- cgit v1.2.3