aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unit/gcd.fir4
-rw-r--r--test/unit/simple.fir2
2 files changed, 5 insertions, 1 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 :
diff --git a/test/unit/simple.fir b/test/unit/simple.fir
index 01389604..d00f8f7a 100644
--- a/test/unit/simple.fir
+++ b/test/unit/simple.fir
@@ -1,4 +1,4 @@
-; RUN: firrtl %s | FileCheck %s
+; RUN: firrtl %s ab | tee %s.out | FileCheck %s
circuit top :
module subtracter :