diff options
| -rw-r--r-- | test/passes/const-prop/rsh.fir | 14 |
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) + |
