aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorazidar2015-08-19 17:15:57 -0700
committerazidar2015-08-19 17:15:57 -0700
commit2259089f6f6180b5ff3a3baf44e56bc26d12a024 (patch)
treef2c3fd939fe6b4c2116a28f82ab05ac0f75dc60d /test
parentb6997a242f72c9642f41fe6db99f258e5b8c5c65 (diff)
Added new const propagation test
Diffstat (limited to 'test')
-rw-r--r--test/passes/const-prop/bits.fir11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/passes/const-prop/bits.fir b/test/passes/const-prop/bits.fir
new file mode 100644
index 00000000..16d678b3
--- /dev/null
+++ b/test/passes/const-prop/bits.fir
@@ -0,0 +1,11 @@
+; RUN: firrtl -i %s -o %s.v -X verilog -p cT 2>&1 | tee %s.out | FileCheck %s
+
+;CHECK: Constant Propagation
+;CHECK: node x = UInt("h7")
+;CHECK: Finished Constant Propagation
+
+circuit top :
+ module top :
+ output out : UInt
+ node x = bits(UInt(127),2,0)
+ out := x