From c50afcbdd1a6a2835aaa97d28412d7b913193135 Mon Sep 17 00:00:00 2001 From: azidar Date: Thu, 20 Aug 2015 14:21:51 -0700 Subject: Added rsh test for const-prop --- test/passes/const-prop/rsh.fir | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/passes/const-prop/rsh.fir 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) + -- cgit v1.2.3