[GHC] #16351: Extend constant folding operations to bit manipulations