aboutsummaryrefslogtreecommitdiff
path: root/test/simple.fir
diff options
context:
space:
mode:
authorazidar2015-02-20 16:56:25 -0800
committerazidar2015-02-20 16:56:25 -0800
commit95dd261b4e65840ade351dcb00e4164a99daf654 (patch)
tree73f5fa894f5ebb3a61581dd2f29ae96e46d476e4 /test/simple.fir
parent8299c2ecae1701fa6060185a8aed25543e201eba (diff)
Rewrote the initialize-register pass, now correctly implemented
with a new IR construct - Null. LetRec is not implemented, but is marked with a TODO. Test cases for this pass are now located in test/passes/initialize-register
Diffstat (limited to 'test/simple.fir')
-rw-r--r--test/simple.fir11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/simple.fir b/test/simple.fir
new file mode 100644
index 00000000..d00f8f7a
--- /dev/null
+++ b/test/simple.fir
@@ -0,0 +1,11 @@
+; RUN: firrtl %s ab | tee %s.out | FileCheck %s
+
+circuit top :
+ module subtracter :
+ input x : UInt
+ input y : UInt
+ output z : UInt
+ z := sub-mod(x, y)
+; CHECK: output z : UInt
+; CHECK: port:z := sub-mod(port:x, port:y)
+