aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form
diff options
context:
space:
mode:
authorazidar2015-05-26 17:33:40 -0700
committerazidar2015-05-26 17:33:40 -0700
commitcf80ff9c83c2fedd42ec186a3e342520c89f91ab (patch)
treeebbf3455b91e8840d49057754585d567dacea384 /test/errors/high-form
parenteb125225cb96875f31a9af0db187406782b75223 (diff)
Added <>. Added additional checks for primops. Added new chisel3 files.
Diffstat (limited to 'test/errors/high-form')
-rw-r--r--test/errors/high-form/NegVecSize.fir7
-rw-r--r--test/errors/high-form/NegWidth.fir7
-rw-r--r--test/errors/high-form/NumArgs.fir11
3 files changed, 25 insertions, 0 deletions
diff --git a/test/errors/high-form/NegVecSize.fir b/test/errors/high-form/NegVecSize.fir
new file mode 100644
index 00000000..16fae565
--- /dev/null
+++ b/test/errors/high-form/NegVecSize.fir
@@ -0,0 +1,7 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+; CHECK: Vector type size cannot be negative
+
+circuit Top :
+ module Top :
+ wire x : UInt<3>[-5]
+
diff --git a/test/errors/high-form/NegWidth.fir b/test/errors/high-form/NegWidth.fir
new file mode 100644
index 00000000..3f305301
--- /dev/null
+++ b/test/errors/high-form/NegWidth.fir
@@ -0,0 +1,7 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+; CHECK: Width cannot be negative.
+
+circuit Top :
+ module Top :
+ wire x : UInt<-3>
+
diff --git a/test/errors/high-form/NumArgs.fir b/test/errors/high-form/NumArgs.fir
new file mode 100644
index 00000000..4dc8ad46
--- /dev/null
+++ b/test/errors/high-form/NumArgs.fir
@@ -0,0 +1,11 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+; CHECK: Primop mux requires 3 expression arguments.
+; CHECK: Primop add requires 2 expression arguments.
+; CHECK: Primop bits requires 2 integer arguments.
+
+circuit Top :
+ module Top :
+ node x = mux(UInt(1),UInt(1))
+ node y = add(SInt(1),UInt(1),UInt(1))
+ node z = bits(UInt(1),1,2,3)
+