aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorazidar2015-08-20 14:21:51 -0700
committerazidar2015-08-20 14:21:51 -0700
commitc50afcbdd1a6a2835aaa97d28412d7b913193135 (patch)
treec10dfda6653a22232f5f0f14cb72597cf9a52f47 /test
parent5bf451acbe03ecfd6407d7376cbb782ac0dd0f11 (diff)
Added rsh test for const-prop
Diffstat (limited to 'test')
-rw-r--r--test/passes/const-prop/rsh.fir14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/passes/const-prop/rsh.fir b/test/passes/const-prop/rsh.fir
new file mode 100644
index 00000000..8c13e410
--- /dev/null
+++ b/test/passes/const-prop/rsh.fir
@@ -0,0 +1,14 @@
+; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
+
+;CHECK: Constant Propagation
+;CHECK: x := UInt("h1f")
+;CHECK: y := SInt("h20")
+;CHECK: Finished Constant Propagation
+
+circuit top :
+ module top :
+ output x : UInt
+ output y : SInt
+ x := shr(UInt(127),2)
+ y := shr(SInt(-128),2)
+