aboutsummaryrefslogtreecommitdiff
path: root/test/unit/gcd.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/gcd.fir')
-rw-r--r--test/unit/gcd.fir4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/gcd.fir b/test/unit/gcd.fir
index 1d4d54af..1da09070 100644
--- a/test/unit/gcd.fir
+++ b/test/unit/gcd.fir
@@ -1,9 +1,12 @@
+; 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: port:z := sub-mod(port:x, port:y)
module gcd :
input a : UInt(16)
input b : UInt(16)
@@ -17,6 +20,7 @@ circuit top :
when greater(x, y) :
inst s of subtracter
s.x := x
+; CHECK: inst:s.x := reg:x
s.y := y
x := s.z
else :