input: Check for int_pending while clearing input