aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/features/Printf.fir17
-rw-r--r--test/features/Stop.fir13
-rw-r--r--test/parser/gcd.fir2
3 files changed, 17 insertions, 15 deletions
diff --git a/test/features/Printf.fir b/test/features/Printf.fir
index 8449825f..2f8dc985 100644
--- a/test/features/Printf.fir
+++ b/test/features/Printf.fir
@@ -5,15 +5,16 @@ circuit Top :
module Top :
input x : {y : UInt<1>}
input p : UInt<1>
- printf("Hello World!\n")
- printf("Hello World! %x\n", x.y)
+ input clk : Clock
+ printf(clk,"Hello World!\n")
+ printf(clk,"Hello World! %x\n", x.y)
when p :
- printf("In consequence\n")
+ printf(clk,"In consequence\n")
else :
- printf("In alternate\n")
+ printf(clk,"In alternate\n")
-;CHECK: printf("Hello World!\n")
-;CHECK: printf("Hello World! %x\n", x$y)
-;CHECK: when p : printf("In consequence\n")
-;CHECK: when not(p) : printf("In alternate\n")
+;CHECK: printf(clk, "Hello World!\n")
+;CHECK: printf(clk, "Hello World! %x\n", x$y)
+;CHECK: when p : printf(clk, "In consequence\n")
+;CHECK: when not(p) : printf(clk, "In alternate\n")
;CHECK: Done!
diff --git a/test/features/Stop.fir b/test/features/Stop.fir
index fc8869fa..16e25416 100644
--- a/test/features/Stop.fir
+++ b/test/features/Stop.fir
@@ -6,15 +6,16 @@ circuit Top :
module Top :
input p : UInt<1>
input q : UInt<1>
+ input clk : Clock
when p :
- stop(0)
+ stop(clk,0)
when q :
- stop(1)
- stop(3)
+ stop(clk,1)
+ stop(clk,3)
-;CHECK: when p : stop(0)
-;CHECK: when q : stop(1)
-;CHECK: stop(3)
+;CHECK: when p : stop(clk, 0)
+;CHECK: when q : stop(clk, 1)
+;CHECK: stop(clk, 3)
;CHECK: Done!
diff --git a/test/parser/gcd.fir b/test/parser/gcd.fir
index 4b068699..fad3b41d 100644
--- a/test/parser/gcd.fir
+++ b/test/parser/gcd.fir
@@ -47,6 +47,6 @@ circuit GCD :
; CHECK: x := a
; CHECK: y := b
; CHECK: z := x
-; CHECK: node T_20 = eq(y, UInt<1>("h0"))
+; CHECK: node T_20 = eq(y, UInt("h0"))
; CHECK: v := T_20