aboutsummaryrefslogtreecommitdiff
path: root/test/passes/const-prop/rsh.fir
blob: 4159899fca958ec7456cab74c6a03d2a3489b779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)