noted that signed and unsigned division can be checked with the same function.  Changed parameter types for shl to match those taken by the corresponding APInt method.