diff options
| author | azidar | 2015-08-20 14:21:51 -0700 |
|---|---|---|
| committer | azidar | 2015-08-20 14:21:51 -0700 |
| commit | c50afcbdd1a6a2835aaa97d28412d7b913193135 (patch) | |
| tree | c10dfda6653a22232f5f0f14cb72597cf9a52f47 | |
| parent | 5bf451acbe03ecfd6407d7376cbb782ac0dd0f11 (diff) | |
Added rsh test for const-prop
| -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) + |
