hw/intc/openpic: Avoid shifting left into sign bit